summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-01-29 16:37:23 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-01-29 16:37:23 -0500
commit610e2722c6687591faacb942d6f752c5f3c620d7 (patch)
treee776cd491766bcd8e87774e5c80fd34eab9e0252 /src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs
parentd76964c5f381a5b8faba123646d851e7ae2c06f0 (diff)
downloadSMAPI-610e2722c6687591faacb942d6f752c5f3c620d7.tar.gz
SMAPI-610e2722c6687591faacb942d6f752c5f3c620d7.tar.bz2
SMAPI-610e2722c6687591faacb942d6f752c5f3c620d7.zip
rename & validate format version
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs b/src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs
index e213fbab..ff3dccbc 100644
--- a/src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs
+++ b/src/SMAPI.Web/Framework/Clients/UpdateManifest/ResponseModels/UpdateManifestModel.cs
@@ -9,8 +9,8 @@ namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest.ResponseModels
/*********
** Accessors
*********/
- /// <summary>The manifest format version.</summary>
- public string? ManifestVersion { get; }
+ /// <summary>The manifest format version. This is equivalent to the SMAPI version, and is used to parse older manifests correctly if later versions of SMAPI change the expected format.</summary>
+ public string Format { get; }
/// <summary>The mod info in this update manifest.</summary>
public IDictionary<string, UpdateManifestModModel>? Mods { get; }
@@ -20,11 +20,11 @@ namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest.ResponseModels
** Public methods
*********/
/// <summary>Construct an instance.</summary>
- /// <param name="manifestVersion">The manifest format version.</param>
+ /// <param name="format">The manifest format version.</param>
/// <param name="mods">The mod info in this update manifest.</param>
- public UpdateManifestModel(string manifestVersion, IDictionary<string, UpdateManifestModModel> mods)
+ public UpdateManifestModel(string format, IDictionary<string, UpdateManifestModModel> mods)
{
- this.ManifestVersion = manifestVersion;
+ this.Format = format;
this.Mods = mods;
}
}