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