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; } /********* ** Public methods *********/ /// Construct an instance. public IndexModel() { } /// Construct an instance. /// The latest stable SMAPI version. /// The latest prerelease SMAPI version (if newer than ). internal IndexModel(IndexVersionModel stableVersion, IndexVersionModel betaVersion) { this.StableVersion = stableVersion; this.BetaVersion = betaVersion; } } }