// Copyright 2022 Jamie Taylor using System; namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest { /// Data model for a Version in an update manifest. internal class UpdateManifestVersionModel { /// The semantic version string. 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; } /// Construct an instance. /// The semantic version string. /// 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; } } }