-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNuGetPackageInfo.cs
173 lines (144 loc) · 4.46 KB
/
NuGetPackageInfo.cs
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MikeFactorial.XTB.PPCLIx
{
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class CatalogEntry
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
public string authors { get; set; }
public List<DependencyGroup> dependencyGroups { get; set; }
public string description { get; set; }
public string iconUrl { get; set; }
public string language { get; set; }
public string licenseExpression { get; set; }
public string licenseUrl { get; set; }
public bool listed { get; set; }
public string minClientVersion { get; set; }
public string packageContent { get; set; }
public string projectUrl { get; set; }
public DateTime published { get; set; }
public bool requireLicenseAcceptance { get; set; }
public string summary { get; set; }
public List<string> tags { get; set; }
public string title { get; set; }
public string version { get; set; }
public string readmeUrl { get; set; }
}
public class CommitId
{
[JsonProperty("@id")]
public string id { get; set; }
}
public class CommitTimeStamp
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
}
public class Count
{
[JsonProperty("@id")]
public string id { get; set; }
}
public class Dependencies
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@container")]
public string container { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
public string range { get; set; }
public string registration { get; set; }
}
public class DependencyGroup
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
public string targetFramework { get; set; }
[JsonProperty("@container")]
public string container { get; set; }
}
public class Item
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
public string commitId { get; set; }
public DateTime commitTimeStamp { get; set; }
public int count { get; set; }
public List<Item> items { get; set; }
public string parent { get; set; }
public string lower { get; set; }
public string upper { get; set; }
public CatalogEntry catalogEntry { get; set; }
public string packageContent { get; set; }
public string registration { get; set; }
[JsonProperty("@container")]
public string container { get; set; }
}
public class PackageContent
{
[JsonProperty("@type")]
public string type { get; set; }
}
public class PackageTargetFrameworks
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@container")]
public string container { get; set; }
}
public class Parent
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
}
public class Published
{
[JsonProperty("@type")]
public string type { get; set; }
}
public class Reasons
{
[JsonProperty("@container")]
public string container { get; set; }
}
public class Registration
{
[JsonProperty("@type")]
public string type { get; set; }
}
public class NuGetPackageInfo
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@type")]
public List<string> type { get; set; }
public string commitId { get; set; }
public DateTime commitTimeStamp { get; set; }
public int count { get; set; }
public List<Item> items { get; set; }
}
public class Tags
{
[JsonProperty("@id")]
public string id { get; set; }
[JsonProperty("@container")]
public string container { get; set; }
}
}