namespace StardewModdingAPI.Web.ViewModels { /// The view model for the index page. public class IndexModel { /********* ** Accessors *********/ /// The latest SMAPI version. public string LatestVersion { get; set; } /// The Markdown description for the release. public string Description { get; set; } /// The main download URL. public string DownloadUrl { get; set; } /// The for-developers download URL. public string DevDownloadUrl { get; set; } /********* ** Public methods *********/ /// Construct an instance. public IndexModel() { } /// Construct an instance. /// The latest SMAPI version. /// The Markdown description for the release. /// The main download URL. /// The for-developers download URL. internal IndexModel(string latestVersion, string description, string downloadUrl, string devDownloadUrl) { this.LatestVersion = latestVersion; this.Description = description; this.DownloadUrl = downloadUrl; this.DevDownloadUrl = devDownloadUrl; } } }