// Copyright 2022 Jamie Taylor namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest.ResponseModels { /// Data model for a Version in an update manifest. internal class UpdateManifestVersionModel { /********* ** Accessors *********/ /// The mod's semantic version. public string? Version { get; } /// The URL for this version's download page (if any). public string? DownloadPageUrl { get; } /// The URL for this version's direct file download (if any). public string? DownloadFileUrl { get; } /********* ** Public methods *********/ /// Construct an instance. /// The mod's semantic version. /// This version's download page URL, if any. /// This version's direct file download URL, if any. public UpdateManifestVersionModel(string version, string? downloadPageUrl, string? downloadFileUrl) { this.Version = version; this.DownloadPageUrl = downloadPageUrl; this.DownloadFileUrl = downloadFileUrl; } } }