using System; namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest.ResponseModels { /// The data model for a mod in an update manifest file. internal class UpdateManifestModModel { /********* ** Accessors *********/ /// The mod's name. public string? Name { get; } /// The mod page URL from which to download updates. public string? ModPageUrl { get; } /// The available versions for this mod. public UpdateManifestVersionModel[] Versions { get; } /********* ** Public methods *********/ /// Construct an instance. /// The mod's name. /// The mod page URL from which to download updates. /// The available versions for this mod. public UpdateManifestModModel(string? name, string? modPageUrl, UpdateManifestVersionModel[]? versions) { this.Name = name; this.ModPageUrl = modPageUrl; this.Versions = versions ?? Array.Empty(); } } }