Documentation ¶
Index ¶
- type AccountAchievements
- type AccountAchievementsOptions
- type AccountInfo2
- type AccountInfo2Options
- type AccountList
- type AccountListOptions
- type ClansAccountinfo
- type ClansAccountinfoOptions
- type ClansGlossary
- type ClansGlossaryOptions
- type ClansInfo
- type ClansInfoOptions
- type ClansList
- type ClansListOptions
- type EncyclopediaAchievements
- type EncyclopediaAchievementsOptions
- type EncyclopediaInfo
- type EncyclopediaPlaneinfo
- type EncyclopediaPlaneinfoOptions
- type EncyclopediaPlanemodules
- type EncyclopediaPlanemodulesOptions
- type EncyclopediaPlanes
- type EncyclopediaPlanesOptions
- type EncyclopediaPlanespecification
- type EncyclopediaPlanespecificationOptions
- type EncyclopediaPlaneupgrades
- type EncyclopediaPlaneupgradesOptions
- type PlanesAchievements
- type PlanesAchievementsOptions
- type PlanesStats
- type PlanesStatsOptions
- type RatingsAccounts
- type RatingsAccountsOptions
- type RatingsDates
- type RatingsDatesOptions
- type RatingsNeighbors
- type RatingsNeighborsOptions
- type RatingsTop
- type RatingsTopOptions
- type RatingsTypes
- type RatingsTypesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAchievements ¶
type AccountAchievements struct { // Player account ID AccountId *int `json:"account_id,omitempty"` // Achievements earned Achievements *struct { // Number Count *int `json:"count,omitempty"` // First time when an achievement was received FirstAt *wgnTime.UnixTime `json:"first_at,omitempty"` // Last time when an achievement was received LastAt *wgnTime.UnixTime `json:"last_at,omitempty"` // Most number MaxCount *int `json:"max_count,omitempty"` } `json:"achievements,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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type AccountInfo2 ¶
type AccountInfo2 struct { // Player account ID AccountId *int `json:"account_id,omitempty"` // Battles fought during Close Beta Test CbtGamesPlayed *int `json:"cbt_games_played,omitempty"` // Language selected in the game client ClientLanguage *string `json:"client_language,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"` // Battles fought during Open Beta Test ObtGamesPlayed *int `json:"obt_games_played,omitempty"` // Player's private data Private *struct { // Contact groups Contacts map[string]string `json:"contacts,omitempty"` // Credits Credits *int `json:"credits,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"` } `json:"private,omitempty"` // Player statistics Statistics *struct { // General player statistics All *struct { // Aerial targets AirTargets *struct { // Average number of aerial targets destroyed per sortie AvgKilledPerFlight *float32 `json:"avg_killed_per_flight,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` } `json:"air_targets,omitempty"` // Average number of combat points earned per battle AvgBattleScore *float32 `json:"avg_battle_score,omitempty"` // Average experience earned per battle AvgXp *float32 `json:"avg_xp,omitempty"` // Combat points BattleScore *int `json:"battle_score,omitempty"` // Battles fought Battles *int `json:"battles,omitempty"` // Bombers Bombers *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"bombers,omitempty"` // Number of times player's aircraft was destroyed Deaths *int `json:"deaths,omitempty"` // Air defense aircraft Defenders *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"defenders,omitempty"` // Air defense aircraft and bombers DefendersAndBombers *struct { // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` } `json:"defenders_and_bombers,omitempty"` // Draws Draws *int `json:"draws,omitempty"` // Battle performance by aircraft types EffByPlaneType map[string]string `json:"eff_by_plane_type,omitempty"` // Sortie duration FlightTime *int `json:"flight_time,omitempty"` // Number of sorties Flights *int `json:"flights,omitempty"` // Number of sorties by aircraft types FlightsByPlaneType map[string]string `json:"flights_by_plane_type,omitempty"` // Ground targets GroundObjects *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` // Average number of aerial targets destroyed per sortie AvgKilledPerFlight *float32 `json:"avg_killed_per_flight,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"ground_objects,omitempty"` // Defeats Losses *int `json:"losses,omitempty"` // Most combat points earned per battle MaxBattlesScore *int `json:"max_battles_score,omitempty"` // Players Players *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Number of aerial targets destroyed when defending sectors KilledInDefence *int `json:"killed_in_defence,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"players,omitempty"` // Grades for completing aircraft type-specific missions RanksByPlaneType map[string]string `json:"ranks_by_plane_type,omitempty"` // Victories Wins *int `json:"wins,omitempty"` // Total participations in capturing sectors ZoneCaptures *int `json:"zone_captures,omitempty"` } `json:"all,omitempty"` } `json:"statistics,omitempty"` // Date when player details were updated UpdatedAt *wgnTime.UnixTime `json:"updated_at,omitempty"` }
type AccountInfo2Options ¶
type AccountInfo2Options 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type AccountList ¶
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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 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 ClansAccountinfo ¶
type ClansAccountinfo struct { // User ID AccountId *int `json:"account_id,omitempty"` // Player name AccountName *string `json:"account_name,omitempty"` // Short info about clan. // An extra field. Clan *struct { // Clan ID ClanId *int `json:"clan_id,omitempty"` // Clan creation date CreatedAt *wgnTime.UnixTime `json:"created_at,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"` // 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type ClansGlossary ¶
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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type ClansInfo ¶
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"` // 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 Name Name *string `json:"name,omitempty"` // Old clan name OldName *string `json:"old_name,omitempty"` // Old clan tag OldTag *string `json:"old_tag,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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type ClansList ¶
type ClansList struct { // Clan ID ClanId *int `json:"clan_id,omitempty"` // Clan creation date CreatedAt *wgnTime.UnixTime `json:"created_at,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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 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 by which clan is searched for. Minimum 2 characters Search *string `json:"search,omitempty"` }
type EncyclopediaAchievements ¶
type EncyclopediaAchievements struct { // Achievement ID AchievementId *int `json:"achievement_id,omitempty"` // Achievement description Description *string `json:"description,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Achievement name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Sort order Order *int `json:"order,omitempty"` // Section Section *int `json:"section,omitempty"` // Localized section name SectionI18n *string `json:"section_i18n,omitempty"` // ID of achievement type Type *int `json:"type,omitempty"` // Localized type field TypeI18n *string `json:"type_i18n,omitempty"` }
type EncyclopediaAchievementsOptions ¶
type EncyclopediaAchievementsOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type EncyclopediaInfo ¶
type EncyclopediaPlaneinfo ¶
type EncyclopediaPlaneinfo struct { // Crew Crew *struct { // Number Count *int `json:"count,omitempty"` // Qualification of crew member Role *string `json:"role,omitempty"` // Localized role field RoleI18n *string `json:"role_i18n,omitempty"` } `json:"crew,omitempty"` // Localized description of aircraft Description *string `json:"description,omitempty"` // Calculation of specifications Features *struct { // Average time to turn 360 deg AverageTurnTime *float32 `json:"average_turn_time,omitempty"` // Controllability Controllability *int `json:"controllability,omitempty"` // Maximum dive speed DiveSpeed *int `json:"dive_speed,omitempty"` // Firepower Dps *int `json:"dps,omitempty"` // Hit points Hp *int `json:"hp,omitempty"` // Maneuverability Maneuverability *int `json:"maneuverability,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Top speed at best altitude MaxSpeed *int `json:"max_speed,omitempty"` // Optimum altitude OptimalHeight *int `json:"optimal_height,omitempty"` // Optimum airspeed OptimalManeuverSpeed *int `json:"optimal_maneuver_speed,omitempty"` // Rate of climb RateOfClimbing *float32 `json:"rate_of_climbing,omitempty"` // Rate of roll RollManeuverability *int `json:"roll_maneuverability,omitempty"` // Number of slots SlotsCount *int `json:"slots_count,omitempty"` // Top speed at sea level SpeedAtTheGround *int `json:"speed_at_the_ground,omitempty"` // Airspeed SpeedFactor *int `json:"speed_factor,omitempty"` // Stall speed StallSpeed *int `json:"stall_speed,omitempty"` } `json:"features,omitempty"` // Aircraft images Images *struct { // URL to 408 x 252 px image of aircraft Large *string `json:"large,omitempty"` // URL to 102 x 63 px image of aircraft Medium *string `json:"medium,omitempty"` // URL to 51 x 31 px image of aircraft Small *string `json:"small,omitempty"` } `json:"images,omitempty"` // Indicates if the aircraft was a gift IsGift *bool `json:"is_gift,omitempty"` // Indicates if the aircraft is Premium aircraft IsPremium *bool `json:"is_premium,omitempty"` // Tier Level *int `json:"level,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Nation Nation *string `json:"nation,omitempty"` // Localized nation field NationI18n *string `json:"nation_i18n,omitempty"` // Descendants of the vehicle first generation NextPlanes []int `json:"next_planes,omitempty"` // Aircraft ID PlaneId *int `json:"plane_id,omitempty"` // Ancestors of the vehicle first generation PrevPlanes []int `json:"prev_planes,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Purchase cost in gold PriceGold *int `json:"price_gold,omitempty"` // Localized short name of aircraft ShortName18n *string `json:"short_name_18n,omitempty"` // Localized short name of aircraft ShortNameI18n *string `json:"short_name_i18n,omitempty"` // Type Type *string `json:"type,omitempty"` }
type EncyclopediaPlaneinfoOptions ¶
type EncyclopediaPlaneinfoOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type EncyclopediaPlanemodules ¶
type EncyclopediaPlanemodules struct { // Bomb Bomb *struct { // Bomb ID BombId *int `json:"bomb_id,omitempty"` // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Damage ExplosionDamageMax *int `json:"explosion_damage_max,omitempty"` // Damage radius ExplosionRadius *int `json:"explosion_radius,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` } `json:"bomb,omitempty"` // Airframe Construction *struct { // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Airframe ID ConstructionId *int `json:"construction_id,omitempty"` // Hit points Hp *int `json:"hp,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` } `json:"construction,omitempty"` // Engine Engine *struct { // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Engine ID EngineId *int `json:"engine_id,omitempty"` // Type EquipmentType *string `json:"equipment_type,omitempty"` // Localized equipment_type field EquipmentTypeI18n *string `json:"equipment_type_i18n,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Power Power *int `json:"power,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` // Thrust Thrust *int `json:"thrust,omitempty"` } `json:"engine,omitempty"` // Autocannon Gun *struct { // Muzzle velocity BulletVelocity *int `json:"bullet_velocity,omitempty"` // Caliber Caliber *float32 `json:"caliber,omitempty"` // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Damage Dps *int `json:"dps,omitempty"` // Gun ID GunId *int `json:"gun_id,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` // Rate of fire Rpm *int `json:"rpm,omitempty"` // Type Type *string `json:"type,omitempty"` // Localized type field TypeI18n *string `json:"type_i18n,omitempty"` } `json:"gun,omitempty"` // Rocket Rocket *struct { // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Damage ExplosionDamageMax *int `json:"explosion_damage_max,omitempty"` // Damage radius ExplosionRadius *int `json:"explosion_radius,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` // Rocket ID RocketId *int `json:"rocket_id,omitempty"` } `json:"rocket,omitempty"` // Rear gun Turret *struct { // Muzzle velocity BulletVelocity *int `json:"bullet_velocity,omitempty"` // Caliber Caliber *float32 `json:"caliber,omitempty"` // List of compatible aircraft CompatibleVehicles []int `json:"compatible_vehicles,omitempty"` // Damage Dps *int `json:"dps,omitempty"` // URL to image Image *string `json:"image,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Tier Level *int `json:"level,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Purchase cost in credits PriceCredit *int `json:"price_credit,omitempty"` // Research cost PriceXp *int `json:"price_xp,omitempty"` // Rate of fire Rpm *int `json:"rpm,omitempty"` // Rear gun ID TurretId *int `json:"turret_id,omitempty"` // Autocannon WeaponCount *int `json:"weapon_count,omitempty"` } `json:"turret,omitempty"` }
type EncyclopediaPlanemodulesOptions ¶
type EncyclopediaPlanemodulesOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Configuration. Default is "engine, bomb, rocket, turret, turretfront, turretupper, turretlower, gun, construction". Maximum limit: 100. Valid values: // // "engine" - engine // "bomb" - bomb // "rocket" - rocket // "turret" - rear gun // "turretfront" - Передняя турель // "turretupper" - Верхняя турель // "turretlower" - Нижняя турель // "gun" - autocannon // "construction" - airframe Type []string `json:"type,omitempty"` }
type EncyclopediaPlanes ¶
type EncyclopediaPlanes struct { // Aircraft images Images *struct { // URL to 408 x 252 px image of aircraft Large *string `json:"large,omitempty"` // URL to 102 x 63 px image of aircraft Medium *string `json:"medium,omitempty"` // URL to 51 x 31 px image of aircraft Small *string `json:"small,omitempty"` } `json:"images,omitempty"` // Indicates if the aircraft was a gift IsGift *bool `json:"is_gift,omitempty"` // Indicates if the aircraft is Premium aircraft IsPremium *bool `json:"is_premium,omitempty"` // Tier Level *int `json:"level,omitempty"` // Name Name *string `json:"name,omitempty"` // Localized name field NameI18n *string `json:"name_i18n,omitempty"` // Nation Nation *string `json:"nation,omitempty"` // Localized nation field NationI18n *string `json:"nation_i18n,omitempty"` // Aircraft ID PlaneId *int `json:"plane_id,omitempty"` // Type Type *string `json:"type,omitempty"` }
type EncyclopediaPlanesOptions ¶
type EncyclopediaPlanesOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Nation. Maximum limit: 100. Valid values: // // "ussr" - U.S.S.R. // "germany" - Germany // "usa" - U.S.A. // "france" - France // "uk" - U.K. // "china" - China // "japan" - Japan Nation []string `json:"nation,omitempty"` // Type. Maximum limit: 100. Valid values: // // "fighter" - Fighter // "fighterHeavy" - Heavy Fighter // "assault" - Attack Aircraft // "navy" - Multirole Fighter // "bomber" - Bomber Type []string `json:"type,omitempty"` }
type EncyclopediaPlanespecification ¶
type EncyclopediaPlanespecification struct { // Slots and modules Slots *struct { // ID of unique bind of slot and module BindId *int `json:"bind_id,omitempty"` // Standard module IsDefault *bool `json:"is_default,omitempty"` // Module ID ModuleId *int `json:"module_id,omitempty"` // Slot name SlotName *string `json:"slot_name,omitempty"` // Localized slot_name field SlotNameI18n *string `json:"slot_name_i18n,omitempty"` } `json:"slots,omitempty"` // Aircraft specifications Specification *struct { // Average time to turn 360 deg AverageTurnTime *float32 `json:"average_turn_time,omitempty"` // Controllability Controllability *int `json:"controllability,omitempty"` // Maximum dive speed DiveSpeed *int `json:"dive_speed,omitempty"` // Firepower Dps *int `json:"dps,omitempty"` // Hit points Hp *int `json:"hp,omitempty"` // Maneuverability Maneuverability *int `json:"maneuverability,omitempty"` // Weight Mass *float32 `json:"mass,omitempty"` // Top speed at best altitude MaxSpeed *int `json:"max_speed,omitempty"` // Optimum altitude OptimalHeight *int `json:"optimal_height,omitempty"` // Optimum airspeed OptimalManeuverSpeed *int `json:"optimal_maneuver_speed,omitempty"` // Rate of climb RateOfClimbing *float32 `json:"rate_of_climbing,omitempty"` // Rate of roll RollManeuverability *int `json:"roll_maneuverability,omitempty"` // Top speed at sea level SpeedAtTheGround *int `json:"speed_at_the_ground,omitempty"` // Airspeed SpeedFactor *int `json:"speed_factor,omitempty"` // Stall speed StallSpeed *int `json:"stall_speed,omitempty"` } `json:"specification,omitempty"` }
type EncyclopediaPlanespecificationOptions ¶
type EncyclopediaPlanespecificationOptions struct { // ID of unique bind of slot and module. Maximum limit: 100. BindId []int `json:"bind_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"` // Localization language. Default is "en". Valid values: // // "en" - English (by default) // "ru" - Русский // "pl" - Polski // "de" - Deutsch // "fr" - Français // "es" - Español // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Module ID. Maximum limit: 100. ModuleId []int `json:"module_id,omitempty"` }
type EncyclopediaPlaneupgrades ¶
type EncyclopediaPlaneupgrades struct { // Modules available Modules *struct { // ID of unique bind of slot and module BindId *int `json:"bind_id,omitempty"` // Incompatible modules Conflicts []string `json:"conflicts,omitempty"` // Number of installed modules Count *int `json:"count,omitempty"` // List of IDs of incompatible modules IncompatibleModules []int `json:"incompatible_modules,omitempty"` // Indicates if the module is standard IsDefault *bool `json:"is_default,omitempty"` // Module ID ModuleId *int `json:"module_id,omitempty"` // Module name Name *string `json:"name,omitempty"` // Aircraft ID to be opened with module research NextPlaneId *int `json:"next_plane_id,omitempty"` // Name of parent module in Tech Tree Parent *string `json:"parent,omitempty"` // Parent module ID in Tech Tree ParentId *int `json:"parent_id,omitempty"` } `json:"modules,omitempty"` // Slot name SlotName *string `json:"slot_name,omitempty"` // Localized slot_name field SlotNameI18n *string `json:"slot_name_i18n,omitempty"` }
type EncyclopediaPlaneupgradesOptions ¶
type EncyclopediaPlaneupgradesOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type PlanesAchievements ¶
type PlanesAchievements struct { // Player account ID AccountId *int `json:"account_id,omitempty"` // Achievements earned Achievements *struct { // Number Count *int `json:"count,omitempty"` // First time when an achievement was received FirstAt *wgnTime.UnixTime `json:"first_at,omitempty"` // Last time when an achievement was received LastAt *wgnTime.UnixTime `json:"last_at,omitempty"` // Most number MaxCount *int `json:"max_count,omitempty"` } `json:"achievements,omitempty"` // Aircraft ID PlaneId *int `json:"plane_id,omitempty"` }
type PlanesAchievementsOptions ¶
type PlanesAchievementsOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Aircraft ID. Maximum limit: 100. PlaneId []int `json:"plane_id,omitempty"` }
type PlanesStats ¶
type PlanesStats struct { // Player account ID AccountId *int `json:"account_id,omitempty"` // General statistics All *struct { // Aerial targets AirTargets *struct { // Average damage caused per sortie AvgDamageDealtPerFlight *float32 `json:"avg_damage_dealt_per_flight,omitempty"` // Average number of aerial targets destroyed per sortie AvgKilledPerFlight *float32 `json:"avg_killed_per_flight,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per sortie MaxKilledPerFlight *int `json:"max_killed_per_flight,omitempty"` } `json:"air_targets,omitempty"` // Average number of combat points earned per battle AvgBattleScore *float32 `json:"avg_battle_score,omitempty"` // Average sortie duration AvgFlightTime *float32 `json:"avg_flight_time,omitempty"` // Average experience earned per battle AvgXp *float32 `json:"avg_xp,omitempty"` // Combat points BattleScore *int `json:"battle_score,omitempty"` // Battles fought Battles *int `json:"battles,omitempty"` // Bombers Bombers *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"bombers,omitempty"` // Number of times that an aircraft was selected during a battle Chosen *int `json:"chosen,omitempty"` // Number of times that an aircraft was selected in the Hangar ChosenFirst *int `json:"chosen_first,omitempty"` // Number of times player's aircraft was destroyed Deaths *int `json:"deaths,omitempty"` // Air defense aircraft Defenders *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"defenders,omitempty"` // Air defense aircraft and bombers DefendersAndBombers *struct { // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` } `json:"defenders_and_bombers,omitempty"` // Draws Draws *int `json:"draws,omitempty"` // Sortie duration FlightTime *int `json:"flight_time,omitempty"` // Number of sorties Flights *int `json:"flights,omitempty"` // Ground targets GroundObjects *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Average damage caused per sortie AvgDamageDealtPerFlight *float32 `json:"avg_damage_dealt_per_flight,omitempty"` // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` // Average number of aerial targets destroyed per sortie AvgKilledPerFlight *float32 `json:"avg_killed_per_flight,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` // Most aerial targets destroyed per sortie MaxKilledPerFlight *int `json:"max_killed_per_flight,omitempty"` } `json:"ground_objects,omitempty"` // Defeats Losses *int `json:"losses,omitempty"` // Most combat points earned per battle MaxBattlesScore *int `json:"max_battles_score,omitempty"` // Players Players *struct { // Number of assists Assisted *int `json:"assisted,omitempty"` // Average number of aerial targets destroyed per battle AvgKilled *float32 `json:"avg_killed,omitempty"` // Damage caused DamageDealt *float32 `json:"damage_dealt,omitempty"` // Number of destroyed aerial targets Killed *int `json:"killed,omitempty"` // Number of aerial targets destroyed when defending sectors KilledInDefence *int `json:"killed_in_defence,omitempty"` // Most damage caused per battle MaxDamageDealt *float32 `json:"max_damage_dealt,omitempty"` // Most aerial targets destroyed per battle MaxKilled *int `json:"max_killed,omitempty"` // Most aerial targets destroyed when defending sectors MaxKilledInDefence *int `json:"max_killed_in_defence,omitempty"` } `json:"players,omitempty"` // Victories Wins *int `json:"wins,omitempty"` // Total participations in capturing sectors ZoneCaptures *int `json:"zone_captures,omitempty"` } `json:"all,omitempty"` // Aircraft ID PlaneId *int `json:"plane_id,omitempty"` // Private data on the player's aircraft Private *struct { // Aircraft availability in the Hangar InGarage *bool `json:"in_garage,omitempty"` // Last time when the information about the availability of aircraft in the Hangar was updated InGarageUpdatedAt *wgnTime.UnixTime `json:"in_garage_updated_at,omitempty"` } `json:"private,omitempty"` // Date when details on aircraft were updated UpdatedAt *wgnTime.UnixTime `json:"updated_at,omitempty"` }
type PlanesStatsOptions ¶
type PlanesStatsOptions 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 aircraft availability in the Hangar. If the parameter is not specified, all aircraft are returned. Parameter processing requires a valid access_token for the specified account_id. Valid values: // // "1" - Return aircraft available in the Hangar. // "0" - Return aircraft that are no longer available in the Hangar. 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Aircraft ID. Maximum limit: 100. PlaneId []int `json:"plane_id,omitempty"` }
type RatingsAccounts ¶
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"` // Total damage caused to aircraft 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"` // Total damage caused to targets DamageDealtGround *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_ground,omitempty"` // Enemy aircraft 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"` // Total number of targets destroyed FragsCountGround *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_ground,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"` // 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"` }
type RatingsAccountsOptions ¶
type RatingsAccountsOptions struct { // 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" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type RatingsDates ¶
type RatingsDatesOptions ¶
type RatingsDatesOptions struct { // Player account ID. Maximum limit: 100. AccountId []int `json:"account_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"` // Localization language. Default is "en". Valid values: // // "en" - English (by default) // "ru" - Русский // "pl" - Polski // "de" - Deutsch // "fr" - Français // "es" - Español // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
type RatingsNeighbors ¶
type RatingsNeighbors 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"` // Total damage caused to aircraft 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"` // Total damage caused to targets DamageDealtGround *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_ground,omitempty"` // Enemy aircraft 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"` // Total number of targets destroyed FragsCountGround *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_ground,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"` // 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"` }
type RatingsNeighborsOptions ¶
type RatingsNeighborsOptions struct { // 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" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Maximum number of adjacent positions in rating. Default is 5. Min value is 1. Maximum value: 50. Limit *int `json:"limit,omitempty"` }
type RatingsTop ¶
type RatingsTop 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"` // Total damage caused to aircraft 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"` // Total damage caused to targets DamageDealtGround *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_ground,omitempty"` // Enemy aircraft 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"` // Total number of targets destroyed FragsCountGround *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_ground,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"` // 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"` }
type RatingsTopOptions ¶
type RatingsTopOptions struct { // 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" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` // Maximum number of top players on the list. Default is 10. Min value is 1. Maximum value: 1000. Limit *int `json:"limit,omitempty"` // Result page number. Default is 1. Min value is 1. PageNo *int `json:"page_no,omitempty"` }
type RatingsTypes ¶
type RatingsTypesOptions ¶
type RatingsTypesOptions 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 // "zh-cn" - 简体中文 // "tr" - Türkçe // "cs" - Čeština // "th" - ไทย // "vi" - Tiếng Việt // "ko" - 한국어 Language *string `json:"language,omitempty"` }
Source Files ¶
- account_achievements.go
- account_info2.go
- account_list.go
- clans_accountinfo.go
- clans_glossary.go
- clans_info.go
- clans_list.go
- encyclopedia_achievements.go
- encyclopedia_info.go
- encyclopedia_planeinfo.go
- encyclopedia_planemodules.go
- encyclopedia_planes.go
- encyclopedia_planespecification.go
- encyclopedia_planeupgrades.go
- planes_achievements.go
- planes_stats.go
- ratings_accounts.go
- ratings_dates.go
- ratings_neighbors.go
- ratings_top.go
- ratings_types.go
Click to show internal directories.
Click to hide internal directories.