namespace StardewModdingAPI.Web.ViewModels { /// The fields for a SMAPI version. public class IndexVersionModel { /********* ** Accessors *********/ /// The release version. public string Version { 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 (not applicable for prerelease versions). public string DevDownloadUrl { get; set; } /********* ** Public methods *********/ /// Construct an instance. public IndexVersionModel() { } /// Construct an instance. /// The release number. /// The Markdown description for the release. /// The main download URL. /// The for-developers download URL (not applicable for prerelease versions). internal IndexVersionModel(string version, string description, string downloadUrl, string devDownloadUrl) { this.Version = version; this.Description = description; this.DownloadUrl = downloadUrl; this.DevDownloadUrl = devDownloadUrl; } } }