blob: fa663910c5e5cb8c7ea07157bfd6485e7d63ef6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using Newtonsoft.Json;
namespace Dewdrop.Models
{
/// <summary>A mod metadata response from Nexus Mods.</summary>
public class NexusResponseModel : IModModel
{
/*********
** Accessors
*********/
/// <summary>The unique mod ID.</summary>
public int ID { get; set; }
/// <summary>The mod name.</summary>
public string Name { get; set; }
/// <summary>The mod's semantic version number.</summary>
public string Version { get; set; }
/// <summary>The mod's web URL.</summary>
[JsonProperty("mod_page_uri")]
public string Url { get; set; }
/*********
** Public methods
*********/
/// <summary>Get basic mod metadata.</summary>
public ModGenericModel ModInfo()
{
return new ModGenericModel
{
ID = this.ID,
Version = this.Version,
Name = this.Name,
Url = this.Url,
Vendor = "Nexus"
};
}
}
}
|