-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLeagueAPIClassesForCSharp.cs
331 lines (296 loc) · 9.21 KB
/
LeagueAPIClassesForCSharp.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
using System.Collections.Generic;
namespace LeagueAPIForCSharp
{
/// <summary>
/// champion-v1.1
/// </summary>
#region champion
public class ChampionListDto
{
public List<ChampionDto> champions { get; set;}
}
public class ChampionDto
{
public bool botMmEnabled { get; set; }
public int defenseRank { get; set; }
public int attackRank { get; set; }
public int id { get; set; }
public bool rankedPlayEnabled { get; set; }
public string name { get; set; }
public bool botEnabled { get; set; }
public int difficultyRank { get; set; }
public bool active { get; set; }
public bool freeToPlay { get; set; }
public int magicRank { get; set; }
}
#endregion
/// <summary>
/// game-v1.1
/// </summary>
#region game
public class RecentGamesDto
{
public List<GameDto> games { get; set; }
public long summonerId { get; set; }
}
public class GameDto
{
public int championId { get; set; }
public long createDate { get; set; }
public string createDateStr { get; set; }
public List<PlayerDto> fellowPlayers { get; set; }
public long gameId { get; set; }
public string gameMode { get; set; }
public string gameType { get; set; }
public bool invalid { get; set; }
public int level { get; set; }
public int mapId { get; set; }
public int spell1 { get; set; }
public int spell2 { get; set; }
public List<RawStatDto> statistics { get; set; }
public string subType { get; set; }
public int teamId { get; set; }
}
public class PlayerDto
{
public int championId { get; set; }
public long summonerId { get; set; }
public int teamid { get; set; }
}
public class RawStatDto
{
public int id { get; set; }
public string name { get; set; }
public int value { get; set; }
}
#endregion
/// <summary>
/// league-v2.1
/// </summary>
#region league
public class LeagueDto
{
public List<LeagueItemDto> entries { get; set; }
public string name { get; set; }
public string queue { get; set; }
public string tier { get; set; }
public long timestamp { get; set; }
}
public class LeagueItemDto
{
public bool isFreshBlood { get; set; }
public bool isHotStreak { get; set; }
public bool isInactive { get; set; }
public bool isVeteran { get; set; }
public long lastPlayed { get; set; }
public string leagueName { get; set; }
public int leaguePoints { get; set; }
public int losses { get; set; }
public MiniSeriesDto miniSeries { get; set; }
public string playerOrTeamId { get; set; }
public string playerOrTeamName { get; set; }
public string queueType { get; set; }
public string rank { get; set; }
public string tier { get; set; }
public long timeUnitDecay { get; set; }
public int wins { get; set; }
}
public class MiniSeriesDto
{
public int losses { get; set; }
public List<characters> progress { get; set; }
public int target { get; set; }
public long tiemLeftToPlayMillis { get; set; }
public int wins { get; set; }
}
public class characters
{
public string character { get; set; }
}
#endregion
/// <summary>
/// stats-v1.1
/// </summary>
#region stats
public class PlayerStatsSummaryListDto
{
public List<PlayerStatsSummaryDto> playerStatSummaries { get; set; }
public long summonerId { get; set; }
}
public class PlayerStatsSummaryDto
{
public List<AggregatedStatDto> aggregatedStats { get; set; }
public int losses { get; set; }
public long modifyDate { get; set; }
public string modifyDateStr { get; set; }
public string playerStatSummaryType { get; set; }
public int wins { get; set; }
}
public class AggregatedStatDto
{
public int count { get; set; }
public int id { get; set; }
public string name { get; set; }
}
public class RankedStatsDto
{
public List<ChampionStatsDto> champions { get; set; }
public long modifyDate { get; set; }
public string modifyDateStr { get; set; }
public long sommonerId { get; set; }
}
public class ChampionStatsDto
{
public int id { get; set; }
public string name { get; set; }
public List<ChampionStatDto> stats { get; set; }
}
public class ChampionStatDto
{
public int count { get; set; }
public int id { get; set; }
public string name { get; set; }
public int value { get; set; }
}
#endregion
/// <summary>
/// summoner-v1.1
/// </summary>
#region summoner
public class MasteryPagesDto
{
public List<MasteryPageDto> pages { get; set; }
public long summonerId { get; set; }
}
public class MasteryPageDto
{
public bool current { get; set; }
public string name { get; set; }
public List<TalentDto> talents { get; set; }
}
public class TalentDto
{
public int id { get; set; }
public string name { get; set; }
public int rank { get; set; }
}
public class RunePagesDto
{
public List<RunePageDto> pages { get; set; }
public long summonerId { get; set; }
}
public class RunePageDto
{
public bool current { get; set; }
public long id { get; set; }
public string name { get; set; }
public List<RuneSlotDto> slots { get; set; }
}
public class RuneSlotDto
{
public RuneDto rune { get; set; }
public int runeSlotId { get; set; }
}
public class RuneDto
{
public string description { get; set; }
public int id { get; set; }
public string name { get; set; }
public int tier { get; set; }
}
public class SummonerDto
{
public long id { get; set; }
public string name { get; set; }
public int profileIconId { get; set; }
public long revisionDate { get; set; }
public string revisionDateStr { get; set; }
public long summonerLevel { get; set; }
}
public class SummonerNameListDto
{
public List<SummonerNameDto> summoners { get; set; }
}
public class SummonerNameDto
{
public long id { get; set; }
public string name { get; set; }
}
#endregion
/// <summary>
/// team-v2.1
/// </summary>
#region team
public class TeamDto
{
public string createDate { get; set; }
public string lastGameDate { get; set; }
public string lastJoinDate { get; set; }
public string lastJoinedRankedTeamQueueDate { get; set; }
public List<MatchHistorySummaryDto> matchHistory { get; set; }
public MessageOfDayDto messageofDat { get; set; }
public string modifyDate { get; set; }
public string name { get; set; }
public RosterDto roster { get; set; }
public string secondLastJoinDate { get; set; }
public string status { get; set; }
public string tag { get; set; }
public teamIdDto teamId { get; set; }
public TeamStatSummaryDto teamStatSummary { get; set; }
public string thirdLastJoinDate { get; set; }
public long timestamp { get; set; }
}
public class MatchHistorySummaryDto
{
public int assists { get; set; }
public long date { get; set; }
public int deaths { get; set; }
public long gameId { get; set; }
public string gameMode { get; set; }
public bool invalid { get; set; }
public int kills { get; set; }
public int mapId { get; set; }
public int opposingTeamKills { get; set; }
public string opposingTeamName { get; set; }
public bool win { get; set; }
}
public class MessageOfDayDto
{
public long createDate { get; set; }
public string message { get; set; }
public int version { get; set; }
}
public class RosterDto
{
public List<TeamMemberInfoDto> memberList { get; set; }
public long ownerId { get; set; }
}
public class teamIdDto
{
public string fullId { get; set; }
}
public class TeamStatSummaryDto
{
public teamIdDto teamId { get; set; }
public List<TeamStatDetailDto> teamStatDetails { get; set; }
}
public class TeamMemberInfoDto
{
public string inviteDate { get; set; }
public string joinDate { get; set; }
public long playerId { get; set; }
public string status { get; set; }
}
public class TeamStatDetailDto
{
public int averageGamesPlayed { get; set; }
public int losses { get; set; }
public int maxRating { get; set; }
public int rating { get; set; }
public int seedRating { get; set; }
public teamIdDto teamid { get; set; }
public string teamStatType { get; set; }
public int wins { get; set; }
}
#endregion
}