using System.Collections.Generic; namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest.ResponseModels { /// The data model for an update manifest file. internal class UpdateManifestModel { /********* ** Accessors *********/ /// 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. public string Format { get; } /// The mod info in this update manifest. public IDictionary Mods { get; } /********* ** Public methods *********/ /// Construct an instance. /// The manifest format version. /// The mod info in this update manifest. public UpdateManifestModel(string format, IDictionary? mods) { this.Format = format; this.Mods = mods ?? new Dictionary(); } } }