summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModel.cs
blob: 03f89726eff269ce71daf0ba4a9d8346c13e70b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 {
        /// <summary>The manifest format version.</summary>
        public string ManifestVersion { get; }

        /// <summary>The subkeys in this update manifest.</summary>
        public IDictionary<string, UpdateManifestModModel> Subkeys { get; }

        /// <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) {
            this.ManifestVersion = manifestVersion;
            this.Subkeys = subkeys;
        }
    }
}