using Newtonsoft.Json; namespace StardewModdingAPI.Web.Framework.Clients.Nexus { /// 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 latest file version. public ISemanticVersion LatestFileVersion { 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; /// A user-friendly error which indicates why fetching the mod info failed (if applicable). [JsonIgnore] public string Error { get; set; } } }