-
Notifications
You must be signed in to change notification settings - Fork 2
/
ratings_accounts.go
179 lines (175 loc) · 5.5 KB
/
ratings_accounts.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
// Auto generated file!
package wot
import (
"github.com/IceflowRE/go-wargaming/v4/wargaming/wgnTime"
)
type RatingsAccountsOptions struct {
// Battle types. Default is "default". Valid values:
//
// "company" - Tank Company Battles
// "random" - Random Battles
// "team" - Team Battles
// "default" - any battle type (by default)
BattleType *string `json:"battle_type,omitempty"`
// Ratings calculation date. Up to 7 days before the current date; default value: yesterday. 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 RatingsAccounts struct {
// Player account ID
AccountId *int `json:"account_id,omitempty"`
// Battles fought
BattlesCount *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:"battles_count,omitempty"`
// Number of battles left to be included in ratings
BattlesToPlay *int `json:"battles_to_play,omitempty"`
// Base capture points
CapturePoints *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:"capture_points,omitempty"`
// Average damage caused per battle
DamageAvg *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:"damage_avg,omitempty"`
// Total damage caused
DamageDealt *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:"damage_dealt,omitempty"`
// Average number of vehicles destroyed per battle
FragsAvg *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:"frags_avg,omitempty"`
// Vehicles destroyed
FragsCount *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:"frags_count,omitempty"`
// Personal rating
GlobalRating *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:"global_rating,omitempty"`
// Hit ratio
HitsRatio *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:"hits_ratio,omitempty"`
// Average number of vehicles spotted per battle
SpottedAvg *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:"spotted_avg,omitempty"`
// Vehicles spotted
SpottedCount *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:"spotted_count,omitempty"`
// Survive ratio
SurvivedRatio *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:"survived_ratio,omitempty"`
// Victories/Battles ratio
WinsRatio *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,omitempty"`
// Total experience
XpAmount *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:"xp_amount,omitempty"`
// Average experience per battle
XpAvg *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:"xp_avg,omitempty"`
// Maximum experience per battle
XpMax *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:"xp_max,omitempty"`
}