namespace StardewModdingAPI.Web.ViewModels { /// The view model for the index page. public class IndexModel { /********* ** Accessors *********/ /// The latest stable SMAPI version. public IndexVersionModel StableVersion { get; set; } /// The latest prerelease SMAPI version (if newer than ). public IndexVersionModel BetaVersion { get; set; } /// A short sentence shown under the beta download button, if any. public string BetaBlurb { get; set; } /********* ** Public methods *********/ /// Construct an instance. public IndexModel() { } /// Construct an instance. /// The latest stable SMAPI version. /// The latest prerelease SMAPI version (if newer than ). /// A short sentence shown under the beta download button, if any. internal IndexModel(IndexVersionModel stableVersion, IndexVersionModel betaVersion, string betaBlurb) { this.StableVersion = stableVersion; this.BetaVersion = betaVersion; this.BetaBlurb = betaBlurb; } } }