summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Caching/Wiki/WikiMetadata.cs
blob: f53ea2014aaaf00404b543d952b0510d6f6f3f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace StardewModdingAPI.Web.Framework.Caching.Wiki
{
    /// <summary>The model for cached wiki metadata.</summary>
    internal class WikiMetadata
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The current stable Stardew Valley version.</summary>
        public string? StableVersion { get; }

        /// <summary>The current beta Stardew Valley version.</summary>
        public string? BetaVersion { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="stableVersion">The current stable Stardew Valley version.</param>
        /// <param name="betaVersion">The current beta Stardew Valley version.</param>
        public WikiMetadata(string? stableVersion, string? betaVersion)
        {
            this.StableVersion = stableVersion;
            this.BetaVersion = betaVersion;
        }
    }
}