using Newtonsoft.Json;
namespace StardewModdingAPI.Web.Models
{
/// A mod metadata response from Nexus Mods.
public class NexusResponseModel : IModModel
{
/*********
** Accessors
*********/
/// The unique mod ID.
public int ID { get; set; }
/// The mod name.
public string Name { get; set; }
/// The mod's semantic version number.
public string Version { get; set; }
/// The mod's web URL.
[JsonProperty("mod_page_uri")]
public string Url { get; set; }
/*********
** Public methods
*********/
/// Get basic mod metadata.
public ModGenericModel ModInfo()
{
return new ModGenericModel
{
ID = this.ID,
Version = this.Version,
Name = this.Name,
Url = this.Url,
Vendor = "Nexus"
};
}
}
}