-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.go
29 lines (26 loc) · 946 Bytes
/
player.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
package cocwrapper
// CocPlayer is a player
type CocPlayer struct {
Tag string `json:"tag"`
Name string `json:"name"`
THLevel int `json:"townHallLevel"`
Level int `json:"expLevel"`
Trophies int `json:"trophies"`
TopTrophies int `json:"bestTrophies"`
WarStars int `json:"warStars"`
BHLevel int `json:"builderHallLevel"`
VersusTrophies int `json:"versusTrophies"`
BestVersusTrophies int `json:"bestVersusTrophies"`
Clan cocPlayerClan `json:"clan"`
}
type cocPlayerClan struct {
Tag string `json:"tag"`
Name string `json:"name"`
Level int `json:"clanLevel"`
Pic cocBadges `json:"badgeUrls"`
}
type cocLeague struct {
ID int `json:"id"`
Name string `json:"name"`
Pic cocBadges `json:"iconUrls"`
}