using Newtonsoft.Json; namespace StardewModdingAPI.Web.Framework.Clients.Nexus.ResponseModels { /// Mod metadata from Nexus Mods. internal class NexusMod { /********* ** Accessors *********/ /// 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; } /// The mod's publication status. [JsonIgnore] public NexusModStatus Status { get; set; } = NexusModStatus.Ok; /// The files available to download. [JsonIgnore] public IModDownload[] Downloads { get; set; } /// A custom user-friendly error which indicates why fetching the mod info failed (if applicable). [JsonIgnore] public string Error { get; set; } } }