namespace StardewModdingAPI.Web.Framework.Clients.CurseForge.ResponseModels
{
/// An mod from the CurseForge API.
public class ModModel
{
/*********
** Accessors
*********/
/// The mod's unique ID on CurseForge.
public int ID { get; }
/// The mod name.
public string Name { get; }
/// The web URL for the mod page.
public string WebsiteUrl { get; }
/// The available file downloads.
public ModFileModel[] LatestFiles { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod's unique ID on CurseForge.
/// The mod name.
/// The web URL for the mod page.
/// The available file downloads.
public ModModel(int id, string name, string websiteUrl, ModFileModel[] latestFiles)
{
this.ID = id;
this.Name = name;
this.WebsiteUrl = websiteUrl;
this.LatestFiles = latestFiles;
}
}
}