-
Notifications
You must be signed in to change notification settings - Fork 2
/
clans_info.go
129 lines (125 loc) · 4.83 KB
/
clans_info.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
// Auto generated file!
package wgn
import (
"github.com/IceflowRE/go-wargaming/v3/wargaming/wgnTime"
)
type ClansInfoOptions struct {
// Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period
AccessToken *string `json:"access_token,omitempty"`
// Extra fields that will be added to the response. Valid values:
//
// "private.online_members"
Extra []string `json:"extra,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"`
// Name of the game to perform the clan search in. If the parameter is not specified, search will be executed across World of Tanks. Default is "wot". Valid values:
//
// "wot" - World of Tanks (by default)
// "wowp" - World of Warplanes
Game *string `json:"game,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"`
// This parameter changes members field type. Valid values:
//
// "id" - Members field will contain associative array with account_id indexing in response
MembersKey *string `json:"members_key,omitempty"`
}
type ClansInfo struct {
// Clan can invite players
AcceptsJoinRequests *bool `json:"accepts_join_requests,omitempty"`
// Clan ID
ClanId *int `json:"clan_id,omitempty"`
// Clan color in HEX #RRGGBB
Color *string `json:"color,omitempty"`
// Clan creation date
CreatedAt *wgnTime.UnixTime `json:"created_at,omitempty"`
// Clan creator ID
CreatorId *int `json:"creator_id,omitempty"`
// Clan creator's name
CreatorName *string `json:"creator_name,omitempty"`
// Clan description
Description *string `json:"description,omitempty"`
// Clan description in HTML
DescriptionHtml *string `json:"description_html,omitempty"`
// Information on clan emblems in games and on clan portal
Emblems *struct {
// List of links to 195x195 px emblems
X195 map[string]string `json:"x195,omitempty"`
// List of links to 24x24 px emblems
X24 map[string]string `json:"x24,omitempty"`
// List of links to 256x256 px emblems
X256 map[string]string `json:"x256,omitempty"`
// List of links to 32x32 px emblems
X32 map[string]string `json:"x32,omitempty"`
// List of links to 64x64 px emblems
X64 map[string]string `json:"x64,omitempty"`
} `json:"emblems,omitempty"`
// Game where clan was created
Game *string `json:"game,omitempty"`
// Clan has been deleted. The deleted clan data contains valid values for the following fields only: clan_id, is_clan_disbanded, updated_at.
IsClanDisbanded *bool `json:"is_clan_disbanded,omitempty"`
// Clan Commander ID
LeaderId *int `json:"leader_id,omitempty"`
// Commander's name
LeaderName *string `json:"leader_name,omitempty"`
// Information on clan members. Field format depends on members_key input parameter.
Members *struct {
// Player account ID
AccountId *int `json:"account_id,omitempty"`
// Player name
AccountName *string `json:"account_name,omitempty"`
// Date when player joined clan
JoinedAt *wgnTime.UnixTime `json:"joined_at,omitempty"`
// Technical position name
Role *string `json:"role,omitempty"`
// Position
RoleI18n *string `json:"role_i18n,omitempty"`
} `json:"members,omitempty"`
// Number of clan members
MembersCount *int `json:"members_count,omitempty"`
// Clan motto
Motto *string `json:"motto,omitempty"`
// Clan name
Name *string `json:"name,omitempty"`
// Old clan name
OldName *string `json:"old_name,omitempty"`
// Old clan tag
OldTag *string `json:"old_tag,omitempty"`
// Restricted clan information
Private *struct {
// Clan Treasury
ClanTreasury *struct {
// Amount of credits in the сlan Treasury
Credits *int `json:"credits,omitempty"`
// Number of bonds in the сlan Treasury
Crystal *int `json:"crystal,omitempty"`
// Amount of gold in the сlan Treasury
Gold *int `json:"gold,omitempty"`
} `json:"clan_treasury,omitempty"`
// List of clan members with an active game session in World of Tanks.
// An extra field.
OnlineMembers []int `json:"online_members,omitempty"`
// Amount of gold in the сlan Treasury
Treasury *int `json:"treasury,omitempty"`
} `json:"private,omitempty"`
// Time (UTC) when clan name was changed
RenamedAt *wgnTime.UnixTime `json:"renamed_at,omitempty"`
// Clan tag
Tag *string `json:"tag,omitempty"`
// Time when clan details were updated
UpdatedAt *wgnTime.UnixTime `json:"updated_at,omitempty"`
}