wotx

package
v4.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAchievements

type AccountAchievements struct {
	// Achievements earned
	Achievements map[string]string `json:"achievements,omitempty"`
	// Maximum values of achievement series
	MaxSeries map[string]string `json:"max_series,omitempty"`
	// Ribbons earned
	Ribbons map[string]string `json:"ribbons,omitempty"`
}

type AccountAchievementsOptions

type AccountAchievementsOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type AccountInfo

type AccountInfo struct {
	// Player account ID
	AccountId *int `json:"account_id,omitempty"`
	// Date when player's account was created
	CreatedAt *wgnTime.UnixTime `json:"created_at,omitempty"`
	// Personal rating
	GlobalRating *int `json:"global_rating,omitempty"`
	// Last battle time
	LastBattleTime *wgnTime.UnixTime `json:"last_battle_time,omitempty"`
	// Player name
	Nickname *string `json:"nickname,omitempty"`
	// Player's private data
	Private *struct {
		// Account ban details
		BanInfo *string `json:"ban_info,omitempty"`
		// End time of account ban
		BanTime *wgnTime.UnixTime `json:"ban_time,omitempty"`
		// Total time of destruction
		BattleLifeTime *wgnTime.UnixTime `json:"battle_life_time,omitempty"`
		// Credits
		Credits *int `json:"credits,omitempty"`
		// Number of slots available in the Garage
		EmptySlots *int `json:"empty_slots,omitempty"`
		// Free Experience
		FreeXp *int `json:"free_xp,omitempty"`
		// Gold
		Gold *int `json:"gold,omitempty"`
		// Indicates if the account is Premium Account
		IsPremium *bool `json:"is_premium,omitempty"`
		// Premium Account expiration time
		PremiumExpiresAt *wgnTime.UnixTime `json:"premium_expires_at,omitempty"`
		// Account restrictions
		Restrictions *struct {
			// End time of chat ban
			ChatBanTime *wgnTime.UnixTime `json:"chat_ban_time,omitempty"`
		} `json:"restrictions,omitempty"`
		// Number of slots in the Garage
		Slots *int `json:"slots,omitempty"`
	} `json:"private,omitempty"`
	// Player statistics
	Statistics *struct {
		// Overall Statistics
		All *struct {
			// Battles fought
			Battles *int `json:"battles,omitempty"`
			// Base capture points
			CapturePoints *int `json:"capture_points,omitempty"`
			// Damage caused
			DamageDealt *int `json:"damage_dealt,omitempty"`
			// Damage received
			DamageReceived *int `json:"damage_received,omitempty"`
			// Base defense points
			DroppedCapturePoints *int `json:"dropped_capture_points,omitempty"`
			// Vehicles destroyed
			Frags *int `json:"frags,omitempty"`
			// Hits
			Hits *int `json:"hits,omitempty"`
			// Defeats
			Losses *int `json:"losses,omitempty"`
			// Shots fired
			Shots *int `json:"shots,omitempty"`
			// Enemies spotted
			Spotted *int `json:"spotted,omitempty"`
			// Battles survived
			SurvivedBattles *int `json:"survived_battles,omitempty"`
			// Victories
			Wins *int `json:"wins,omitempty"`
			// Total experience
			Xp *int `json:"xp,omitempty"`
		} `json:"all,omitempty"`
		// Tank Company battles statistics
		Company *struct {
			// Battles fought
			Battles *int `json:"battles,omitempty"`
			// Base capture points
			CapturePoints *int `json:"capture_points,omitempty"`
			// Damage caused
			DamageDealt *int `json:"damage_dealt,omitempty"`
			// Damage received
			DamageReceived *int `json:"damage_received,omitempty"`
			// Base defense points
			DroppedCapturePoints *int `json:"dropped_capture_points,omitempty"`
			// Vehicles destroyed
			Frags *int `json:"frags,omitempty"`
			// Hits
			Hits *int `json:"hits,omitempty"`
			// Defeats
			Losses *int `json:"losses,omitempty"`
			// Shots fired
			Shots *int `json:"shots,omitempty"`
			// Enemies spotted
			Spotted *int `json:"spotted,omitempty"`
			// Battles survived
			SurvivedBattles *int `json:"survived_battles,omitempty"`
			// Victories
			Wins *int `json:"wins,omitempty"`
			// Total experience
			Xp *int `json:"xp,omitempty"`
		} `json:"company,omitempty"`
		// Average damage upon your spotting. Value is calculated starting from version 1.3.
		DamageAssistedRadio *int `json:"damage_assisted_radio,omitempty"`
		// Average damage upon your destroying a track. Value is calculated starting from version 1.3.
		DamageAssistedTrack *int `json:"damage_assisted_track,omitempty"`
		// Average damage upon your shooting the wheel.
		DamageAssistedWheel *int `json:"damage_assisted_wheel,omitempty"`
		// Direct hits received. Value is calculated starting from version 1.10.
		DirectHitsReceived *int `json:"direct_hits_received,omitempty"`
		// Hits on enemy as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHits *int `json:"explosion_hits,omitempty"`
		// Hits received as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHitsReceived *int `json:"explosion_hits_received,omitempty"`
		// Number and models of vehicles destroyed by a player. Player's private data.
		Frags map[string]string `json:"frags,omitempty"`
		// Maximum damage caused in a battle
		MaxDamage *int `json:"max_damage,omitempty"`
		// Vehicle used to cause maximum damage
		MaxDamageTankId *int `json:"max_damage_tank_id,omitempty"`
		// Maximum destroyed in battle
		MaxFrags *int `json:"max_frags,omitempty"`
		// Vehicle, in which maximum number of enemy vehicles was destroyed
		MaxFragsTankId *int `json:"max_frags_tank_id,omitempty"`
		// Maximum experience per battle
		MaxXp *int `json:"max_xp,omitempty"`
		// Vehicle, in which maximum experience per battle was earned
		MaxXpTankId *int `json:"max_xp_tank_id,omitempty"`
		// Direct hits received that caused no damage. Value is calculated starting from version 1.10.
		NoDamageDirectHitsReceived *int `json:"no_damage_direct_hits_received,omitempty"`
		// Penetrations. Value is calculated starting from version 1.10.
		Piercings *int `json:"piercings,omitempty"`
		// Penetrations received. Value is calculated starting from version 1.10.
		PiercingsReceived *int `json:"piercings_received,omitempty"`
		// Trees knocked down
		TreesCut *int `json:"trees_cut,omitempty"`
	} `json:"statistics,omitempty"`
	// Date when player details were updated
	UpdatedAt *wgnTime.UnixTime `json:"updated_at,omitempty"`
}

type AccountInfoOptions

type AccountInfoOptions 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"`
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type AccountList

type AccountList struct {
	// Player ID
	AccountId *int `json:"account_id,omitempty"`
	// Player name
	Nickname *string `json:"nickname,omitempty"`
}

type AccountListOptions

type AccountListOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Number of returned entries (fewer can be returned, but not more than 100). If the limit sent exceeds 100, a limit of None is applied (by default).
	Limit *int `json:"limit,omitempty"`
	// Search type. Default is "startswith". Valid values:
	//
	// "startswith" - Search by initial characters of player name. Minimum length: 3 characters. Maximum length: 24 characters. (by default)
	// "exact" - Search by exact match of player name. Case insensitive. You can enter several names, separated with commas (up to 100).
	Type *string `json:"type,omitempty"`
}

type AccountPsninfo

type AccountPsninfo struct {
	// Account ID
	AccountId *int `json:"account_id,omitempty"`
	// Play Station UID
	Psnid *string `json:"psnid,omitempty"`
}

type AccountXuidinfo

type AccountXuidinfo struct {
	// Player account ID
	AccountId *int `json:"account_id,omitempty"`
	// Player Microsoft XUID
	Xuid *int `json:"xuid,omitempty"`
}

type AuthLogin

type AuthLogin struct {
	// URL where user is redirected for authentication.
	// This URL is returned only if parameter nofollow=1 is passed in.
	Location *string `json:"location,omitempty"`
}

type AuthLoginOptions

type AuthLoginOptions struct {
	// Layout for mobile applications. Valid values:
	//
	// "page" - Page
	// "popup" - Popup window
	// "touch" - Mobile view
	Display *string `json:"display,omitempty"`
	// Access_token expiration time in UNIX. Delta can also be specified in seconds.
	// Expiration time and delta must not exceed two weeks from the current time.
	ExpiresAt *wgnTime.UnixTime `json:"expires_at,omitempty"`
	// Authentication form localization language. Default is "en". Valid values:
	//
	// "cs" - Czech
	// "de" - German
	// "en" - English (by default)
	// "es" - Spanish
	// "es-ar" - Argentinian Spanish
	// "fr" - French
	// "ja" - Japanese
	// "pl" - Polish
	// "pt-br" - Brazilian Portuguese
	// "ru" - Russian
	// "th" - Thai
	// "tr" - Turkish
	// "vi" - Vietnamese
	// "zh-tw" - Traditional Chinese
	// "zh-cn" - Simplified Chinese
	Language *string `json:"language,omitempty"`
	// If parameter nofollow=1 is passed in, the user is not redirected. URL is returned in response. Default is 0. Min value is 0. Maximum value: 1.
	Nofollow *int `json:"nofollow,omitempty"`
	// URL where user is redirected after authentication.
	// By default: api-console.worldoftanks.com/wotx	//blank/
	RedirectUri *string `json:"redirect_uri,omitempty"`
}

type AuthProlongate

type AuthProlongate struct {
	// Access token is passed to all methods requiring authorization.
	AccessToken *string `json:"access_token,omitempty"`
	// Player account ID
	AccountId *int `json:"account_id,omitempty"`
	// Access_token expiration time
	ExpiresAt *wgnTime.UnixTime `json:"expires_at,omitempty"`
}

type AuthProlongateOptions

type AuthProlongateOptions struct {
	// Access_token expiration time in UNIX. Delta can also be specified in seconds.
	// Expiration time and delta must not exceed two weeks from the current time.
	ExpiresAt *wgnTime.UnixTime `json:"expires_at,omitempty"`
}

type ClansAccountinfo

type ClansAccountinfo struct {
	// User ID
	AccountId *int `json:"account_id,omitempty"`
	// Player name
	AccountName *string `json:"account_name,omitempty"`
	// Brief clan details.
	// An extra field.
	Clan *struct {
		// 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"`
		// Emblems set ID
		EmblemSetId *int `json:"emblem_set_id,omitempty"`
		// Number of clan members
		MembersCount *int `json:"members_count,omitempty"`
		// Clan name
		Name *string `json:"name,omitempty"`
		// Clan tag
		Tag *string `json:"tag,omitempty"`
	} `json:"clan,omitempty"`
	// Clan ID
	ClanId *int `json:"clan_id,omitempty"`
	// Cooldown for leaving the clan
	InClanCooldownTill *wgnTime.UnixTime `json:"in_clan_cooldown_till,omitempty"`
	// Date when player joined clan
	JoinedAt *wgnTime.UnixTime `json:"joined_at,omitempty"`
	// Technical position name
	Role *string `json:"role,omitempty"`
}

type ClansAccountinfoOptions

type ClansAccountinfoOptions struct {
	// Extra fields that will be added to the response. Valid values:
	//
	// "clan"
	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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type ClansGlossary

type ClansGlossary struct {
	// Available clan positions
	ClansRoles map[string]string `json:"clans_roles,omitempty"`
	// Available emblems
	Emblems *struct {
		// Link to 195x195 emblem
		X195 *string `json:"x195,omitempty"`
		// Link to 24x24 emblem
		X24 *string `json:"x24,omitempty"`
		// Link to 256x256 emblem
		X256 *string `json:"x256,omitempty"`
		// Link to 32x32 emblem
		X32 *string `json:"x32,omitempty"`
		// Link to 64x64 emblem
		X64 *string `json:"x64,omitempty"`
	} `json:"emblems,omitempty"`
	// Clan settings
	Settings *struct {
		// Application expiry date
		ApplicationLifetime *int `json:"application_lifetime,omitempty"`
		// Clan creation cost in gold
		CreateFeeGold *int `json:"create_fee_gold,omitempty"`
		// Role received after joining the clan
		DefaultAccountRole *string `json:"default_account_role,omitempty"`
		// Invitation expiry date
		InviteLifetime *int `json:"invite_lifetime,omitempty"`
		// Role received after retirement as the clan commander
		LeaderRoleAfterRetirement *string `json:"leader_role_after_retirement,omitempty"`
		// Cooldown peroid after leaving the clan (in seconds)
		LeaveCooldown *int `json:"leave_cooldown,omitempty"`
		// Maximum number of applications
		MaxApplicationsPerAccount *int `json:"max_applications_per_account,omitempty"`
		// Maximum number of invitations
		MaxInvitesPerClan *int `json:"max_invites_per_clan,omitempty"`
		// Max number of clan members
		MaxMembersCount *int `json:"max_members_count,omitempty"`
		// Minimum battles required to create clan
		MinBattlesCount *int `json:"min_battles_count,omitempty"`
		// Cooldown for clan renaming (in seconds)
		RenameCooldown *int `json:"rename_cooldown,omitempty"`
		// Clan renaming cost in gold
		RenameFeeGold *int `json:"rename_fee_gold,omitempty"`
	} `json:"settings,omitempty"`
}

type ClansGlossaryOptions

type ClansGlossaryOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type ClansInfo

type ClansInfo struct {
	// 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 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"`
	// Threshold statistics values to join clan. Contains null if threshold values are not set.
	JoiningOptions *struct {
		// Battles fought
		Battles *int `json:"battles,omitempty"`
		// Average number of battles per day
		BattlesPerDay *float32 `json:"battles_per_day,omitempty"`
		// Battles survived
		BattlesSurvived *int `json:"battles_survived,omitempty"`
		// Average damage per battle
		DamagePerBattle *float32 `json:"damage_per_battle,omitempty"`
		// Hit ratio
		HitsRatio *float32 `json:"hits_ratio,omitempty"`
		// Victories/Battles ratio
		WinsRatio *float32 `json:"wins_ratio,omitempty"`
		// Average experience per battle
		XpPerBattle *float32 `json:"xp_per_battle,omitempty"`
	} `json:"joining_options,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"`
	// 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
	// closed - applications to join clan cannot 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"`
}

type ClansInfoOptions

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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type ClansList

type ClansList struct {
	// 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 emblems set ID
	EmblemSetId *int `json:"emblem_set_id,omitempty"`
	// Number of clan members
	MembersCount *int `json:"members_count,omitempty"`
	// Clan name
	Name *string `json:"name,omitempty"`
	// Clan tag
	Tag *string `json:"tag,omitempty"`
}

type ClansListOptions

type ClansListOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Number of returned entries (fewer can be returned, but not more than 100). If the limit sent exceeds 100, a limit of 100 is applied (by default).
	Limit *int `json:"limit,omitempty"`
	// Page number. Default is 1. Min value is 1.
	PageNo *int `json:"page_no,omitempty"`
	// Part of name or tag for clan search. Minimum 2 characters
	Search *string `json:"search,omitempty"`
}

type EncyclopediaAchievements

type EncyclopediaAchievements struct {
	// Award category
	Category *string `json:"category,omitempty"`
	// Condition
	Condition *string `json:"condition,omitempty"`
	// Award description
	Description *string `json:"description,omitempty"`
	// Historical reference
	HeroInfo *string `json:"hero_info,omitempty"`
	// Award image link
	Image *string `json:"image,omitempty"`
	// Award name
	Name *string `json:"name,omitempty"`
	// Award classes (for mastery badges)
	Options *struct {
		// Achievement description
		Description *string `json:"description,omitempty"`
		// Award image link
		Image *string `json:"image,omitempty"`
		// Award name
		Name *string `json:"name,omitempty"`
		// Information about nation emblems
		NationImages *struct {
			// List of links to 200x200 px emblems
			X200 map[string]string `json:"x200,omitempty"`
		} `json:"nation_images,omitempty"`
	} `json:"options,omitempty"`
	// Award section
	Section *string `json:"section,omitempty"`
	// Award type
	Type *string `json:"type,omitempty"`
	// Award priority value (used to determine place of award in award list)
	Weight *int `json:"weight,omitempty"`
}

type EncyclopediaAchievementsOptions

type EncyclopediaAchievementsOptions struct {
	// Filter by award category. Maximum limit: 100. Valid values:
	//
	// "achievements" - Achievements
	// "ribbons" - Ribbons
	Category []string `json:"category,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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type EncyclopediaArenas

type EncyclopediaArenas struct {
	// Map ID
	ArenaId *string `json:"arena_id,omitempty"`
	// Map type
	CamouflageType *string `json:"camouflage_type,omitempty"`
	// Short map description
	Description *string `json:"description,omitempty"`
	// Localized map name
	NameI18n *string `json:"name_i18n,omitempty"`
}

type EncyclopediaArenasOptions

type EncyclopediaArenasOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type EncyclopediaCrewroles

type EncyclopediaCrewroles struct {
	// Crew member qualification
	Name *string `json:"name,omitempty"`
	// Crew skills and perks
	Skills *struct {
		// Description of skill or perk
		Description *string `json:"description,omitempty"`
		// Images of skills and perks
		Images *struct {
			// Link to large image
			Large *string `json:"large,omitempty"`
		} `json:"images,omitempty"`
		// Indicates whether a skill or a perk is dealt with
		IsPerk *bool `json:"is_perk,omitempty"`
		// Name of skill or perk
		Name *string `json:"name,omitempty"`
	} `json:"skills,omitempty"`
}

type EncyclopediaCrewrolesOptions

type EncyclopediaCrewrolesOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type EncyclopediaInfo

type EncyclopediaInfo struct {
	// Award sections
	AchievementSections *struct {
		// Award section name
		Name *string `json:"name,omitempty"`
		// Award section order
		Order *int `json:"order,omitempty"`
	} `json:"achievement_sections,omitempty"`
	// Game client version
	GameVersion *string `json:"game_version,omitempty"`
	// Nations available
	VehicleNations map[string]string `json:"vehicle_nations,omitempty"`
	// Available vehicle types
	VehicleTypes map[string]string `json:"vehicle_types,omitempty"`
}

type EncyclopediaInfoOptions

type EncyclopediaInfoOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type EncyclopediaModules

type EncyclopediaModules struct {
	// Basic technical characteristics of module.
	// An extra field.
	DefaultProfile *struct {
		// Engine characteristics
		Engine *struct {
			// Chance of engine fire
			FireChance *float32 `json:"fire_chance,omitempty"`
			// Engine Power (hp)
			Power *int `json:"power,omitempty"`
		} `json:"engine,omitempty"`
		// Gun characteristics
		Gun *struct {
			// Aiming time (s)
			AimTime *float32 `json:"aim_time,omitempty"`
			// Gun shells characteristics
			Ammo *struct {
				// Damage (hp), a list of values: min, avg, max
				Damage []int `json:"damage,omitempty"`
				// Penetration (mm), a list of values: min, avg, max
				Penetration []int `json:"penetration,omitempty"`
				// Stun characteristics
				Stun *struct {
					// Stun duration (s) caused by this shell type, a list of values: min, max
					Duration *struct {
					} `json:"duration,omitempty"`
				} `json:"stun,omitempty"`
				// Shell type
				Type *string `json:"type,omitempty"`
			} `json:"ammo,omitempty"`
			// Dispersion at 100 m (m)
			Dispersion *float32 `json:"dispersion,omitempty"`
			// Rate of fire (rounds/min)
			FireRate *float32 `json:"fire_rate,omitempty"`
			// Grouping number on multi gun turrets
			GunGroupNumber *int `json:"gun_group_number,omitempty"`
			// Number of shells
			MaxAmmo *int `json:"max_ammo,omitempty"`
			// Depression angle (deg)
			MoveDownArc *int `json:"move_down_arc,omitempty"`
			// Elevation angle (deg)
			MoveUpArc *int `json:"move_up_arc,omitempty"`
			// Reload time (s)
			ReloadTime *float32 `json:"reload_time,omitempty"`
			// Traverse speed (deg/s)
			TraverseSpeed *int `json:"traverse_speed,omitempty"`
		} `json:"gun,omitempty"`
		// Radio characteristics
		Radio *struct {
			// Signal range
			SignalRange *int `json:"signal_range,omitempty"`
		} `json:"radio,omitempty"`
		// Suspension characteristics
		Suspension *struct {
			// Load limit (kg)
			LoadLimit *int `json:"load_limit,omitempty"`
			// Traverse speed (deg/s)
			TraverseSpeed *int `json:"traverse_speed,omitempty"`
		} `json:"suspension,omitempty"`
		// Turret characteristics
		Turret *struct {
			// Armor: front (mm)
			ArmorFront *int `json:"armor_front,omitempty"`
			// Armor: rear (mm)
			ArmorRear *int `json:"armor_rear,omitempty"`
			// Armor: sides (mm)
			ArmorSides *int `json:"armor_sides,omitempty"`
			// Number of guns
			GunsForSlot *int `json:"guns_for_slot,omitempty"`
			// Hit points
			Hp *int `json:"hp,omitempty"`
			// Traverse speed (deg/s)
			TraverseSpeed *int `json:"traverse_speed,omitempty"`
			// View range (m)
			ViewRange *int `json:"view_range,omitempty"`
		} `json:"turret,omitempty"`
	} `json:"default_profile,omitempty"`
	// Era
	Era *string `json:"era,omitempty"`
	// Image link
	Image *string `json:"image,omitempty"`
	// Module ID
	ModuleId *int `json:"module_id,omitempty"`
	// Module name
	Name *string `json:"name,omitempty"`
	// Nation
	Nation *string `json:"nation,omitempty"`
	// Cost in credits
	PriceCredit *int `json:"price_credit,omitempty"`
	// Vehicles compatible with module
	Tanks []int `json:"tanks,omitempty"`
	// Tier
	Tier *int `json:"tier,omitempty"`
	// Module type
	Type *string `json:"type,omitempty"`
	// Weight (kg)
	Weight *int `json:"weight,omitempty"`
}

type EncyclopediaModulesOptions

type EncyclopediaModulesOptions struct {
	// Extra fields that will be added to the response. Valid values:
	//
	// "default_profile"
	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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Number of returned entries (fewer can be returned, but not more than 100). If the limit sent exceeds 100, a limit of 100 is applied (by default).
	Limit *int `json:"limit,omitempty"`
	// Module ID. Maximum limit: 100.
	ModuleId []int `json:"module_id,omitempty"`
	// Nation. Maximum limit: 100.
	Nation []string `json:"nation,omitempty"`
	// Result page number
	PageNo *int `json:"page_no,omitempty"`
	// Module type. Maximum limit: 100. Valid values:
	//
	// "vehicleRadio" - Radio
	// "vehicleEngine" - Engines
	// "vehicleGun" - Gun
	// "vehicleChassis" - Suspension
	// "vehicleTurret" - Turret
	Type []string `json:"type,omitempty"`
}

type EncyclopediaVehicleprofile

type EncyclopediaVehicleprofile struct {
	// Gun shells characteristics
	Ammo *struct {
		// Damage (hp), a list of values: min, avg, max
		Damage []int `json:"damage,omitempty"`
		// Penetration (mm), a list of values: min, avg, max
		Penetration []int `json:"penetration,omitempty"`
		// Stun characteristics
		Stun *struct {
			// Stun duration (s) caused by this shell type, a list of values: min, max
			Duration *struct {
			} `json:"duration,omitempty"`
		} `json:"stun,omitempty"`
		// Shell type
		Type *string `json:"type,omitempty"`
	} `json:"ammo,omitempty"`
	// Armor
	Armor *struct {
		// Hull armor
		Hull *struct {
			// Front (mm)
			Front *int `json:"front,omitempty"`
			// Rear (mm)
			Rear *int `json:"rear,omitempty"`
			// Sides (mm)
			Sides *int `json:"sides,omitempty"`
		} `json:"hull,omitempty"`
		// Turret armor
		Turret *struct {
			// Front (mm)
			Front *int `json:"front,omitempty"`
			// Rear (mm)
			Rear *int `json:"rear,omitempty"`
			// Sides (mm)
			Sides *int `json:"sides,omitempty"`
		} `json:"turret,omitempty"`
	} `json:"armor,omitempty"`
	// Vehicle characteristics in autosiege mode
	Autosiege *struct {
		// Switch off speed (km/h)
		AutoswitchOffSpeed *int `json:"autoswitch_off_speed,omitempty"`
		// Switch on speed (km/h)
		AutoswitchOnSpeed *int `json:"autoswitch_on_speed,omitempty"`
		// Time needed to switch on the Siege mode
		SwitchOffTime *float32 `json:"switch_off_time,omitempty"`
		// Time required to switch to Siege mode
		SwitchOnTime *float32 `json:"switch_on_time,omitempty"`
	} `json:"autosiege,omitempty"`
	// Engine characteristics
	Engine *struct {
		// Chance of engine fire
		FireChance *float32 `json:"fire_chance,omitempty"`
		// Module name
		Name *string `json:"name,omitempty"`
		// Engine Power (hp)
		Power *int `json:"power,omitempty"`
		// Module tag
		Tag *string `json:"tag,omitempty"`
		// Tier
		Tier *int `json:"tier,omitempty"`
		// Weight (kg)
		Weight *int `json:"weight,omitempty"`
	} `json:"engine,omitempty"`
	// Gun characteristics
	Gun *struct {
		// Aiming time (s)
		AimTime *float32 `json:"aim_time,omitempty"`
		// Caliber (mm)
		Caliber *int `json:"caliber,omitempty"`
		// Dispersion at 100 m (m)
		Dispersion *float32 `json:"dispersion,omitempty"`
		// Rate of fire (rounds/min)
		FireRate *float32 `json:"fire_rate,omitempty"`
		// Depression angle (deg)
		MoveDownArc *int `json:"move_down_arc,omitempty"`
		// Elevation angle (deg)
		MoveUpArc *int `json:"move_up_arc,omitempty"`
		// Module name
		Name *string `json:"name,omitempty"`
		// Reload time (s)
		ReloadTime *float32 `json:"reload_time,omitempty"`
		// Module tag
		Tag *string `json:"tag,omitempty"`
		// Tier
		Tier *int `json:"tier,omitempty"`
		// Traverse speed (deg/s)
		TraverseSpeed *int `json:"traverse_speed,omitempty"`
		// Weight (kg)
		Weight *int `json:"weight,omitempty"`
	} `json:"gun,omitempty"`
	// Hit points
	Hp *int `json:"hp,omitempty"`
	// Hull HP
	HullHp *int `json:"hull_hp,omitempty"`
	// Hull weight (kg)
	HullWeight *int `json:"hull_weight,omitempty"`
	// Standard configuration
	IsDefault *bool `json:"is_default,omitempty"`
	// Ammunition
	MaxAmmo *int `json:"max_ammo,omitempty"`
	// Load limit (kg)
	MaxWeight *int `json:"max_weight,omitempty"`
	// Mounted modules
	Modules *struct {
		// Engine ID
		EngineId *int `json:"engine_id,omitempty"`
		// Gun ID
		GunId *int `json:"gun_id,omitempty"`
		// Radio ID
		RadioId *int `json:"radio_id,omitempty"`
		// Suspension ID
		SuspensionId *int `json:"suspension_id,omitempty"`
		// Turret ID
		TurretId *int `json:"turret_id,omitempty"`
	} `json:"modules,omitempty"`
	// Multi turret vehicle characteristics
	MultiTurret *struct {
		// List of vehicle turrets
		Turrets []int `json:"turrets,omitempty"`
	} `json:"multi_turret,omitempty"`
	// Multi weapon vehicle characteristics
	MultiWeapon *struct {
		// Grouping number on multi gun turrets
		GunGroupNumber *int `json:"gun_group_number,omitempty"`
		// List of turret guns per group number
		Guns []int `json:"guns,omitempty"`
		// Turret ID
		TurretId *int `json:"turret_id,omitempty"`
	} `json:"multi_weapon,omitempty"`
	// Vehicle Configuration ID
	ProfileId *string `json:"profile_id,omitempty"`
	// Radio characteristics
	Radio *struct {
		// Module name
		Name *string `json:"name,omitempty"`
		// Signal range
		SignalRange *int `json:"signal_range,omitempty"`
		// Module tag
		Tag *string `json:"tag,omitempty"`
		// Tier
		Tier *int `json:"tier,omitempty"`
		// Weight (kg)
		Weight *int `json:"weight,omitempty"`
	} `json:"radio,omitempty"`
	// Vehicle characteristics in Rapid mode (for wheeled vehicles)
	Rapid *struct {
		// Top reverse speed (km/h)
		SpeedBackward *int `json:"speed_backward,omitempty"`
		// Top speed (km/h)
		SpeedForward *int `json:"speed_forward,omitempty"`
		// Maximum wheel turning angle
		SuspensionSteeringLockAngle *int `json:"suspension_steering_lock_angle,omitempty"`
		// Time required to switch to Cruise mode
		SwitchOffTime *float32 `json:"switch_off_time,omitempty"`
		// Time required to switch to Rapid mode
		SwitchOnTime *float32 `json:"switch_on_time,omitempty"`
		// Traverse speed (deg/s)
		TurretTraverseSpeed *int `json:"turret_traverse_speed,omitempty"`
	} `json:"rapid,omitempty"`
	// Vehicle characteristics in Siege mode
	Siege *struct {
		// Aiming time (s)
		AimTime *float32 `json:"aim_time,omitempty"`
		// Dispersion at 100 m (m)
		Dispersion *float32 `json:"dispersion,omitempty"`
		// Top reverse speed (km/h)
		SpeedBackward *int `json:"speed_backward,omitempty"`
		// Top speed (km/h)
		SpeedForward *int `json:"speed_forward,omitempty"`
		// Time needed to switch on the Siege mode
		SwitchOffTime *float32 `json:"switch_off_time,omitempty"`
		// Time required to switch to Siege mode
		SwitchOnTime *float32 `json:"switch_on_time,omitempty"`
	} `json:"siege,omitempty"`
	// Top reverse speed (km/h)
	SpeedBackward *int `json:"speed_backward,omitempty"`
	// Top speed (km/h)
	SpeedForward *int `json:"speed_forward,omitempty"`
	// Suspension characteristics
	Suspension *struct {
		// Load limit (kg)
		LoadLimit *int `json:"load_limit,omitempty"`
		// Module name
		Name *string `json:"name,omitempty"`
		// Maximum wheel turning angle (for wheeled vehicles)
		SteeringLockAngle *int `json:"steering_lock_angle,omitempty"`
		// Module tag
		Tag *string `json:"tag,omitempty"`
		// Tier
		Tier *int `json:"tier,omitempty"`
		// Traverse speed (deg/s)
		TraverseSpeed *int `json:"traverse_speed,omitempty"`
		// Weight (kg)
		Weight *int `json:"weight,omitempty"`
	} `json:"suspension,omitempty"`
	// Vehicle ID
	TankId *int `json:"tank_id,omitempty"`
	// Vehicle characteristics in turbo mode
	Turbo *struct {
		// Aiming time (s)
		AimTime *float32 `json:"aim_time,omitempty"`
		// Top reverse speed (km/h)
		SpeedBackward *int `json:"speed_backward,omitempty"`
		// Top speed (km/h)
		SpeedForward *int `json:"speed_forward,omitempty"`
		// Time needed to switch on the Siege mode
		SwitchOffTime *float32 `json:"switch_off_time,omitempty"`
		// Time required to switch to Siege mode
		SwitchOnTime *float32 `json:"switch_on_time,omitempty"`
	} `json:"turbo,omitempty"`
	// Turret characteristics
	Turret *struct {
		// Hit points
		Hp *int `json:"hp,omitempty"`
		// Module name
		Name *string `json:"name,omitempty"`
		// Module tag
		Tag *string `json:"tag,omitempty"`
		// Tier
		Tier *int `json:"tier,omitempty"`
		// Traverse angle, left (deg)
		TraverseLeftArc *int `json:"traverse_left_arc,omitempty"`
		// Traverse angle, right (deg)
		TraverseRightArc *int `json:"traverse_right_arc,omitempty"`
		// Traverse speed (deg/s)
		TraverseSpeed *int `json:"traverse_speed,omitempty"`
		// View range (m)
		ViewRange *int `json:"view_range,omitempty"`
		// Weight (kg)
		Weight *int `json:"weight,omitempty"`
	} `json:"turret,omitempty"`
	// Weight (kg)
	Weight *int `json:"weight,omitempty"`
}

type EncyclopediaVehicleprofileOptions

type EncyclopediaVehicleprofileOptions struct {
	// Engine ID. If module is not specified, standard module is used by default.
	EngineId *int `json:"engine_id,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"`
	// Gun ID. If module is not specified, standard module is used by default.
	GunId *int `json:"gun_id,omitempty"`
	// Localization language. Default is "en". Valid values:
	//
	// "en" - English (by default)
	// "ru" - Русский
	// "pl" - Polski
	// "de" - Deutsch
	// "fr" - Français
	// "es" - Español
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Configuration ID. If specified, parameters of IDs of separate modules are ignored.
	ProfileId *string `json:"profile_id,omitempty"`
	// Radio ID. If module is not specified, standard module is used by default.
	RadioId *int `json:"radio_id,omitempty"`
	// Suspension ID. If module is not specified, standard module is used by default.
	SuspensionId *int `json:"suspension_id,omitempty"`
	// Turret ID. If module is not specified, standard module is used by default.
	TurretId *int `json:"turret_id,omitempty"`
}

type EncyclopediaVehicles

type EncyclopediaVehicles struct {
	// Vehicle description
	Description *string `json:"description,omitempty"`
	// Era
	Era *string `json:"era,omitempty"`
	// Vehicle has multiple weapons
	HasMultiWeapon *bool `json:"has_multi_weapon,omitempty"`
	// Image links
	Images *struct {
		// URL to 160 x 100 px image of vehicle
		BigIcon *string `json:"big_icon,omitempty"`
	} `json:"images,omitempty"`
	// Indicates if the vehicle is Premium vehicle
	IsPremium *bool `json:"is_premium,omitempty"`
	// Module research information
	ModulesTree *struct {
		// Indicates if the module is basic
		IsDefault *bool `json:"is_default,omitempty"`
		// Module ID
		ModuleId *int `json:"module_id,omitempty"`
		// Module name
		Name *string `json:"name,omitempty"`
		// List of module IDs available after research of the module
		NextModules []int `json:"next_modules,omitempty"`
		// List of vehicle IDs available after research of the module
		NextTanks []int `json:"next_tanks,omitempty"`
		// Cost in credits
		PriceCredit *int `json:"price_credit,omitempty"`
		// Research cost
		PriceXp *int `json:"price_xp,omitempty"`
		// Module type
		Type *string `json:"type,omitempty"`
	} `json:"modules_tree,omitempty"`
	// Vehicle name
	Name *string `json:"name,omitempty"`
	// Nation
	Nation *string `json:"nation,omitempty"`
	// List of vehicles available for research in form of pairs:
	//
	// researched vehicle ID
	// cost of research in XP
	NextTanks map[string]string `json:"next_tanks,omitempty"`
	// Cost in credits
	PriceCredit *int `json:"price_credit,omitempty"`
	// Cost in gold
	PriceGold *int `json:"price_gold,omitempty"`
	// List of research costs in form of pairs:
	//
	// parent vehicle ID
	// cost of research in XP
	PricesXp map[string]string `json:"prices_xp,omitempty"`
	// Vehicle short name
	ShortName *string `json:"short_name,omitempty"`
	// Vehicle tag
	Tag *string `json:"tag,omitempty"`
	// Vehicle ID
	TankId *int `json:"tank_id,omitempty"`
	// Tier
	Tier *int `json:"tier,omitempty"`
	// Number of turrets
	TotalTurrets *int `json:"total_turrets,omitempty"`
	// Vehicle type
	Type *string `json:"type,omitempty"`
}

type EncyclopediaVehiclesOptions

type EncyclopediaVehiclesOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Number of returned entries (fewer can be returned, but not more than 100). If the limit sent exceeds 100, a limit of 100 is applied (by default).
	Limit *int `json:"limit,omitempty"`
	// Nation. Maximum limit: 100.
	Nation []string `json:"nation,omitempty"`
	// Result page number
	PageNo *int `json:"page_no,omitempty"`
	// Vehicle ID. Maximum limit: 100.
	TankId []int `json:"tank_id,omitempty"`
	// Tier. Maximum limit: 100.
	Tier []int `json:"tier,omitempty"`
}

type EncyclopediaVehicleupgrades

type EncyclopediaVehicleupgrades struct {
	// List of compatible consumables
	Consumables *struct {
		// Consumable ID
		ConsumableId *int `json:"consumable_id,omitempty"`
		// Achievement description
		Description *string `json:"description,omitempty"`
		// URL to image
		Image *string `json:"image,omitempty"`
		// Vehicle name
		Name *string `json:"name,omitempty"`
		// Cost in credits
		PriceCredit *int `json:"price_credit,omitempty"`
		// Cost in gold
		PriceGold *int `json:"price_gold,omitempty"`
	} `json:"consumables,omitempty"`
	// List of compatible equipment
	Equipment *struct {
		// Achievement description
		Description *string `json:"description,omitempty"`
		// Equipment ID
		EquipmentId *int `json:"equipment_id,omitempty"`
		// URL to image
		Image *string `json:"image,omitempty"`
		// Vehicle name
		Name *string `json:"name,omitempty"`
		// Cost in credits
		PriceCredit *int `json:"price_credit,omitempty"`
		// Cost in gold
		PriceGold *int `json:"price_gold,omitempty"`
	} `json:"equipment,omitempty"`
}

type EncyclopediaVehicleupgradesOptions

type EncyclopediaVehicleupgradesOptions struct {
	// 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
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
}

type TanksAchievements

type TanksAchievements struct {
	// Player account ID
	AccountId *int `json:"account_id,omitempty"`
	// Achievements earned
	Achievements map[string]string `json:"achievements,omitempty"`
	// Maximum values of achievement series
	MaxSeries map[string]string `json:"max_series,omitempty"`
	// Ribbons earned
	Ribbons map[string]string `json:"ribbons,omitempty"`
	// Current values of Achievement Series
	Series map[string]string `json:"series,omitempty"`
	// Vehicle ID
	TankId *int `json:"tank_id,omitempty"`
}

type TanksAchievementsOptions

type TanksAchievementsOptions 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"`
	// 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"`
	// Filter by vehicle availability in the Garage. If the parameter is not specified, all vehicles are returned. Parameter processing requires a valid access_token for the specified account_id. Valid values:
	//
	// "1" - Return vehicles available in the Garage.
	// "0" - Return vehicles that are no longer in the Garage.
	InGarage *string `json:"in_garage,omitempty"`
	// Localization language. Default is "en". Valid values:
	//
	// "en" - English (by default)
	// "ru" - Русский
	// "pl" - Polski
	// "de" - Deutsch
	// "fr" - Français
	// "es" - Español
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Player's vehicle ID. Maximum limit: 100.
	TankId []int `json:"tank_id,omitempty"`
}

type TanksStats

type TanksStats struct {
	// Player account ID
	AccountId *int `json:"account_id,omitempty"`
	// Overall Statistics
	All *struct {
		// Battles fought
		Battles *int `json:"battles,omitempty"`
		// Base capture points
		CapturePoints *int `json:"capture_points,omitempty"`
		// Average damage upon your spotting. Value is calculated starting from version 1.3.
		DamageAssistedRadio *int `json:"damage_assisted_radio,omitempty"`
		// Average damage upon your destroying a track. Value is calculated starting from version 1.3.
		DamageAssistedTrack *int `json:"damage_assisted_track,omitempty"`
		// Average damage upon your shooting the wheel.
		DamageAssistedWheel *int `json:"damage_assisted_wheel,omitempty"`
		// Damage caused
		DamageDealt *int `json:"damage_dealt,omitempty"`
		// Damage received
		DamageReceived *int `json:"damage_received,omitempty"`
		// Direct hits received. Value is calculated starting from version 1.10.
		DirectHitsReceived *int `json:"direct_hits_received,omitempty"`
		// Base defense points
		DroppedCapturePoints *int `json:"dropped_capture_points,omitempty"`
		// Hits on enemy as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHits *int `json:"explosion_hits,omitempty"`
		// Hits received as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHitsReceived *int `json:"explosion_hits_received,omitempty"`
		// Vehicles destroyed
		Frags *int `json:"frags,omitempty"`
		// Hits
		Hits *int `json:"hits,omitempty"`
		// Defeats
		Losses *int `json:"losses,omitempty"`
		// Maximum damage caused in a battle.
		MaxDamage *int `json:"max_damage,omitempty"`
		// Direct hits received that caused no damage. Value is calculated starting from version 1.10.
		NoDamageDirectHitsReceived *int `json:"no_damage_direct_hits_received,omitempty"`
		// Penetrations. Value is calculated starting from version 1.10.
		Piercings *int `json:"piercings,omitempty"`
		// Penetrations received. Value is calculated starting from version 1.10.
		PiercingsReceived *int `json:"piercings_received,omitempty"`
		// Shots fired
		Shots *int `json:"shots,omitempty"`
		// Enemies spotted
		Spotted *int `json:"spotted,omitempty"`
		// Battles survived
		SurvivedBattles *int `json:"survived_battles,omitempty"`
		// Victories
		Wins *int `json:"wins,omitempty"`
		// Total experience
		Xp *int `json:"xp,omitempty"`
	} `json:"all,omitempty"`
	// Total time of destruction
	BattleLifeTime *wgnTime.UnixTime `json:"battle_life_time,omitempty"`
	// Tank Company battles statistics
	Company *struct {
		// Battles fought
		Battles *int `json:"battles,omitempty"`
		// Base capture points
		CapturePoints *int `json:"capture_points,omitempty"`
		// Average damage upon your spotting. Value is calculated starting from version 1.3.
		DamageAssistedRadio *int `json:"damage_assisted_radio,omitempty"`
		// Average damage upon your destroying a track. Value is calculated starting from version 1.3.
		DamageAssistedTrack *int `json:"damage_assisted_track,omitempty"`
		// Average damage upon your shooting the wheel.
		DamageAssistedWheel *int `json:"damage_assisted_wheel,omitempty"`
		// Damage caused
		DamageDealt *int `json:"damage_dealt,omitempty"`
		// Damage received
		DamageReceived *int `json:"damage_received,omitempty"`
		// Direct hits received. Value is calculated starting from version 1.10.
		DirectHitsReceived *int `json:"direct_hits_received,omitempty"`
		// Base defense points
		DroppedCapturePoints *int `json:"dropped_capture_points,omitempty"`
		// Hits on enemy as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHits *int `json:"explosion_hits,omitempty"`
		// Hits received as a result of splash damage. Value is calculated starting from version 1.10.
		ExplosionHitsReceived *int `json:"explosion_hits_received,omitempty"`
		// Vehicles destroyed
		Frags *int `json:"frags,omitempty"`
		// Hits
		Hits *int `json:"hits,omitempty"`
		// Defeats
		Losses *int `json:"losses,omitempty"`
		// Maximum damage caused in a battle.
		MaxDamage *int `json:"max_damage,omitempty"`
		// Direct hits received that caused no damage. Value is calculated starting from version 1.10.
		NoDamageDirectHitsReceived *int `json:"no_damage_direct_hits_received,omitempty"`
		// Penetrations. Value is calculated starting from version 1.10.
		Piercings *int `json:"piercings,omitempty"`
		// Penetrations received. Value is calculated starting from version 1.10.
		PiercingsReceived *int `json:"piercings_received,omitempty"`
		// Shots fired
		Shots *int `json:"shots,omitempty"`
		// Enemies spotted
		Spotted *int `json:"spotted,omitempty"`
		// Battles survived
		SurvivedBattles *int `json:"survived_battles,omitempty"`
		// Victories
		Wins *int `json:"wins,omitempty"`
		// Total experience
		Xp *int `json:"xp,omitempty"`
	} `json:"company,omitempty"`
	// Details on vehicles destroyed. This data requires a valid access_token for the specified account.
	Frags map[string]string `json:"frags,omitempty"`
	// Availability of vehicle in the Garage. This data requires a valid access_token for the specified account.
	InGarage *bool `json:"in_garage,omitempty"`
	// Time of status update. This data requires a valid access_token for the specified account.
	InGarageUpdated *wgnTime.UnixTime `json:"in_garage_updated,omitempty"`
	// Last battle time
	LastBattleTime *wgnTime.UnixTime `json:"last_battle_time,omitempty"`
	// Mastery Badges:
	//
	// 0 - None
	// 1 - 3rd Class
	// 2 - 2nd Class
	// 3 - 1st Class
	// 4 - Ace Tanker
	MarkOfMastery *int `json:"mark_of_mastery,omitempty"`
	// Number of battles for markOfMastery achievement
	MarkOfMasteryBattlesCount *int `json:"mark_of_mastery_battles_count,omitempty"`
	// Marks on gun
	MarksOnGun *int `json:"marks_on_gun,omitempty"`
	// Number of battles for marksOnGun achievement
	MarksOnGunBattlesCount *int `json:"marks_on_gun_battles_count,omitempty"`
	// Maximum destroyed in battle
	MaxFrags *int `json:"max_frags,omitempty"`
	// Maximum experience per battle
	MaxXp *int `json:"max_xp,omitempty"`
	// Vehicle ID
	TankId *int `json:"tank_id,omitempty"`
	// Trees knocked down
	TreesCut *int `json:"trees_cut,omitempty"`
}

type TanksStatsOptions

type TanksStatsOptions 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"`
	// 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"`
	// Filter by vehicle availability in the Garage. If the parameter is not specified, all vehicles are returned. Parameter processing requires a valid access_token for the specified account_id. Valid values:
	//
	// "1" - Return vehicles available in the Garage.
	// "0" - Return vehicles that are no longer in the Garage.
	InGarage *string `json:"in_garage,omitempty"`
	// Localization language. Default is "en". Valid values:
	//
	// "en" - English (by default)
	// "ru" - Русский
	// "pl" - Polski
	// "de" - Deutsch
	// "fr" - Français
	// "es" - Español
	// "tr" - Türkçe
	Language *string `json:"language,omitempty"`
	// Player's vehicle ID. Maximum limit: 100.
	TankId []int `json:"tank_id,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL