using System; using Newtonsoft.Json; namespace Dewdrop.Models { public class NexusResponseModel : IModModel { /// /// The name of the mod. /// [JsonProperty("name")] public string Name { get; set; } /// /// The version of the mod. /// [JsonProperty("version")] public string Version { get; set; } /// /// The NexusMod ID for the mod. /// [JsonProperty("id")] public int Id { get; set; } /// /// The URL of the mod. /// [JsonProperty("mod_page_uri")] public string Url { get; set; } /// /// Return mod information about a Nexus mod /// /// public ModGenericModel ModInfo() { return new ModGenericModel { Id = Id, Version = Version, Name = Name, Url = Url, Vendor = "Nexus" }; } } }