diff options
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs index 55b6db61..90e054d8 100644 --- a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs +++ b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestVersionModel.cs @@ -1,10 +1,14 @@ // Copyright 2022 Jamie Taylor -using System; -namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest { +namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest +{ /// <summary>Data model for a Version in an update manifest.</summary> - internal class UpdateManifestVersionModel { - /// <summary>The semantic version string.</summary> - public string Version { get; } + internal class UpdateManifestVersionModel + { + /********* + ** Accessors + *********/ + /// <summary>The mod's semantic version.</summary> + public string? Version { get; } /// <summary>The URL for this version's download page (if any).</summary> public string? DownloadPageUrl { get; } @@ -12,15 +16,19 @@ namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest { /// <summary>The URL for this version's direct file download (if any).</summary> public string? DownloadFileUrl { get; } + + /********* + ** Public methods + *********/ /// <summary>Construct an instance.</summary> - /// <param name="version">The semantic version string.</param> - /// <param name="downloadPageUrl">This version's download page URL (if any).</param> - /// <param name="downloadFileUrl">This version's direct file download URL (if any).</param> - public UpdateManifestVersionModel(string version, string? downloadPageUrl, string? downloadFileUrl) { + /// <param name="version">The mod's semantic version.</param> + /// <param name="downloadPageUrl">This version's download page URL, if any.</param> + /// <param name="downloadFileUrl">This version's direct file download URL, if any.</param> + public UpdateManifestVersionModel(string version, string? downloadPageUrl, string? downloadFileUrl) + { this.Version = version; this.DownloadPageUrl = downloadPageUrl; this.DownloadFileUrl = downloadFileUrl; } } } - |