// Copyright 2022 Jamie Taylor
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? Url { 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? url, UpdateManifestVersionModel[]? versions)
{
this.Name = name;
this.Url = url;
this.Versions = versions;
}
}
}