-
Notifications
You must be signed in to change notification settings - Fork 2
/
clanratings_clans.go
192 lines (188 loc) · 6.32 KB
/
clanratings_clans.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
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
// Auto generated file!
package wot
import (
"github.com/IceflowRE/go-wargaming/v3/wargaming/wgnTime"
)
type ClanratingsClansOptions struct {
// Ratings calculation date. Date in UNIX timestamp or ISO 8601 format. E.g.: 1376542800 or 2013-08-15T00:00:00
Date *wgnTime.UnixTime `json:"date,omitempty"`
// Response field. The fields are separated with commas. Embedded fields are separated with dots. To exclude a field, use "-" in front of its name. In case the parameter is not defined, the method returns all fields. Maximum limit: 100.
Fields []string `json:"fields,omitempty"`
// Localization language. Default is "en". Valid values:
//
// "en" - English (by default)
// "ru" - Русский
// "pl" - Polski
// "de" - Deutsch
// "fr" - Français
// "es" - Español
// "zh-cn" - 简体中文
// "zh-tw" - 繁體中文
// "tr" - Türkçe
// "cs" - Čeština
// "th" - ไทย
// "vi" - Tiếng Việt
// "ko" - 한국어
Language *string `json:"language,omitempty"`
}
type ClanratingsClans struct {
// Average number of battles
BattlesCountAvg *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"battles_count_avg,omitempty"`
// Average number of battles per day
BattlesCountAvgDaily *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"battles_count_avg_daily,omitempty"`
// Clan ID
ClanId *int `json:"clan_id,omitempty"`
// Clan name
ClanName *string `json:"clan_name,omitempty"`
// Clan tag
ClanTag *string `json:"clan_tag,omitempty"`
// Indicator of clan's performance.
Efficiency *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"efficiency,omitempty"`
// Reasons why specified rating categories were not calculated. Contains data in "key-value" format, where the key is category name and the value is reason.
// Possible reasons:
//
// inactivity - Inactivity for 28 days
// newbies_measure - Under 10 members in the clan
// limits - Rank conditions not met
// blocked - Clan blocked
// other - Technical reasons
ExcludeReasons map[string]string `json:"exclude_reasons,omitempty"`
// Weighted Elo rating achieved in the Stronghold mode
FbEloRating *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"fb_elo_rating,omitempty"`
// Elo rating achieved by the clan on Tier X vehicles in the Stronghold mode
FbEloRating10 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"fb_elo_rating_10,omitempty"`
// Elo rating achieved on Tier VI vehicles in the Stronghold mode
FbEloRating6 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"fb_elo_rating_6,omitempty"`
// Elo rating achieved on Tier VIII vehicles in the Stronghold mode
FbEloRating8 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"fb_elo_rating_8,omitempty"`
// Average global rating value
GlobalRatingAvg *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"global_rating_avg,omitempty"`
// Weighted average of global rating value
GlobalRatingWeightedAvg *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"global_rating_weighted_avg,omitempty"`
// Elo rating on the Global Map
GmEloRating *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"gm_elo_rating,omitempty"`
// Elo rating on the Global Map in Absolute division
GmEloRating10 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"gm_elo_rating_10,omitempty"`
// Elo rating on the Global Map in Medium division
GmEloRating6 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"gm_elo_rating_6,omitempty"`
// Elo rating on the Global Map in Champion division
GmEloRating8 *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *int `json:"value,omitempty"`
} `json:"gm_elo_rating_8,omitempty"`
// Rating in Battles for Stronghold
RatingFort *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"rating_fort,omitempty"`
// Average number of vehicles of Tier 10 per clan member
V10lAvg *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"v10l_avg,omitempty"`
// Average victory rate
WinsRatioAvg *struct {
// Position
Rank *int `json:"rank,omitempty"`
// Change of position in rating
RankDelta *int `json:"rank_delta,omitempty"`
// Absolute value
Value *float32 `json:"value,omitempty"`
} `json:"wins_ratio_avg,omitempty"`
}