-
Notifications
You must be signed in to change notification settings - Fork 2
/
clans_info.go
102 lines (98 loc) · 3.52 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
// Auto generated file!
package wotb
import (
"github.com/IceflowRE/go-wargaming/v4/wargaming/wgnTime"
)
type ClansInfoOptions struct {
// Extra fields that will be added to the response. Valid values:
//
// "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"`
// 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 ClansInfo struct {
// Clan ID
ClanId *int `json:"clan_id,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"`
// Emblems set ID
EmblemSetId *int `json:"emblem_set_id,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"`
// Commander ID
LeaderId *int `json:"leader_id,omitempty"`
// Commander's name
LeaderName *string `json:"leader_name,omitempty"`
// Clan members.
// An extra field.
Members *struct {
// User 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"`
} `json:"members,omitempty"`
// Number of clan members
MembersCount *int `json:"members_count,omitempty"`
// List of clan players' IDs
MembersIds []int `json:"members_ids,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"`
// Threshold statistics values to join clan. Contains null if threshold values are not set.
RecruitingOptions *struct {
// Average number of battles per day
AverageBattlesPerDay *int `json:"average_battles_per_day,omitempty"`
// Average damage per battle
AverageDamage *int `json:"average_damage,omitempty"`
// Battles fought
Battles *int `json:"battles,omitempty"`
// Minimum vehicle Tier of player
VehiclesLevel *int `json:"vehicles_level,omitempty"`
// Victories/Battles ratio
WinsRatio *int `json:"wins_ratio,omitempty"`
} `json:"recruiting_options,omitempty"`
// Clan recruiting policy.
// Valid values:
//
// open - free to join, if statistics completely meet the required threshold values (by default)
// restricted - applications to join clan can be sent
RecruitingPolicy *string `json:"recruiting_policy,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"`
}