summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs30
1 files changed, 19 insertions, 11 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs
index 03f89726..ad618022 100644
--- a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs
+++ b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs
@@ -1,23 +1,31 @@
// Copyright 2022 Jamie Taylor
-using System;
using System.Collections.Generic;
-namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest {
- /// <summary>Data model for an update manifest.</summary>
- internal class UpdateManifestModel {
+namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest
+{
+ /// <summary>The data model for an update manifest file.</summary>
+ internal class UpdateManifestModel
+ {
+ /*********
+ ** Accessors
+ *********/
/// <summary>The manifest format version.</summary>
- public string ManifestVersion { get; }
+ public string? ManifestVersion { get; }
- /// <summary>The subkeys in this update manifest.</summary>
- public IDictionary<string, UpdateManifestModModel> Subkeys { get; }
+ /// <summary>The mod info in this update manifest.</summary>
+ public IDictionary<string, UpdateManifestModModel>? Mods { get; }
+
+ /*********
+ ** Public methods
+ *********/
/// <summary>Construct an instance.</summary>
/// <param name="manifestVersion">The manifest format version.</param>
- /// <param name="subkeys">The subkeys in this update manifest.</param>
- public UpdateManifestModel(string manifestVersion, IDictionary<string, UpdateManifestModModel> subkeys) {
+ /// <param name="mods">The mod info in this update manifest.</param>
+ public UpdateManifestModel(string manifestVersion, IDictionary<string, UpdateManifestModModel> mods)
+ {
this.ManifestVersion = manifestVersion;
- this.Subkeys = subkeys;
+ this.Mods = mods;
}
}
}
-