-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraidinghalloffame.go
67 lines (56 loc) · 2.01 KB
/
raidinghalloffame.go
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
package raideriogo
// ViewRaidingHallOfFameResponse defines the schema for a complete hall of fame response.
type ViewRaidingHallOfFameResponse struct {
HallOfFame HallOfFame `json:"hallOfFame"`
}
// HallOfFame defines the schema for the hall of fame.
type HallOfFame struct {
BossKills BossKills `json:"bossKills"`
WinningGuilds WinningGuilds `json:"winningGuilds"`
}
// BossSummary defines the schema for a boss summary.
type BossSummary struct {
EncounterID int `json:"encounterId"`
Name string `json:"name"`
Slug string `json:"slug"`
Ordinal int `json:"ordinal"`
WingID int `json:"wingId"`
IconURL string `json:"iconUrl"`
}
// DefeatedBy defines the schema for the guilds that have defeated a given boss.
type DefeatedBy struct {
TotalCount int `json:"totalCount"`
Guilds Guilds `json:"guilds"`
}
// Realm defines the schema for a realm.
type Realm struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
AltSlug string `json:"altSlug"`
Locale string `json:"locale"`
IsConnected bool `json:"isConnected"`
}
// GuildDefeat defines the schema for a boss defeat by a guild.
type GuildDefeat struct {
Guild Guild `json:"guild"`
DefeatedAt string `json:"defeatedAt"`
}
// WinningGuild defines the schema for a winning guild.
type WinningGuild struct {
Rank int `json:"rank"`
Guild Guild `json:"guild"`
EncountersDefeated []interface{} `json:"encountersDefeated"`
}
// BossKill defines the schema for a boss kill.
type BossKill struct {
Boss string `json:"boss"`
BossSummary BossSummary `json:"bossSummary"`
DefeatedBy DefeatedBy `json:"defeatedBy"`
}
// Guilds is a type definition for an array of GuildDefeat structs.
type Guilds []GuildDefeat
// WinningGuilds is a type definition for an array of WinningGuild structs.
type WinningGuilds []WinningGuild
// BossKills is a type definition for an array of BossKill structs.
type BossKills []BossKill