ovrstat-api/structs.go

68 lines
1.9 KiB
Go
Raw Normal View History

2017-05-09 02:32:00 +00:00
package ovrstat
2017-05-28 01:23:12 +00:00
type OwApiResponse struct {
2017-05-09 02:32:00 +00:00
Icon string `json:"icon"`
Name string `json:"name"`
Level int `json:"level"`
LevelIcon string `json:"levelIcon"`
Prestige int `json:"prestige"`
PrestigeIcon string `json:"prestigeIcon"`
Rating string `json:"rating"`
2017-05-28 01:23:12 +00:00
RatingName string `json:"ratingName"`
2017-05-09 02:32:00 +00:00
RatingIcon string `json:"ratingIcon"`
GamesWon int `json:"gamesWon"`
QuickPlayStats *GameplayStats `json:"quickPlayStats"`
CompetitiveStats *GameplayStats `json:"competitiveStats"`
}
type GameplayStats struct {
EliminationsAvg float64 `json:"eliminationsAvg"`
DamageDoneAvg int `json:"damageDoneAvg"`
DeathsAvg float64 `json:"deathsAvg"`
FinalBlowsAvg float64 `json:"finalBlowsAvg"`
HealingDoneAvg int `json:"healingDoneAvg"`
ObjectiveKillsAvg float64 `json:"objectiveKillsAvg"`
ObjectiveTimeAvg string `json:"objectiveTimeAvg"`
SoloKillsAvg float64 `json:"soloKillsAvg"`
2017-05-28 01:23:12 +00:00
Games *GamesStats `json:"games"`
Awards *AwardsStats `json:"awards"`
CareerStats *CareerStats `json:"careerStats"`
2017-05-09 02:32:00 +00:00
}
2017-05-28 01:23:12 +00:00
type GamesStats struct {
Played int `json:"played"`
Won int `json:"won"`
}
type AwardsStats struct {
Cards int `json:"cards"`
Medals int `json:"medals"`
BronzeMedals int `json:"medalsBronze"`
SilverMedals int `json:"medalsSilver"`
GoldMedals int `json:"medalsGold"`
2017-05-09 02:32:00 +00:00
}
type HeroStat struct {
TimePlayed string `json:"timePlayed"`
GamesWon int `json:"gamesWon"`
WinPercentage int `json:"winPercentage"`
WeaponAccuracy int `json:"weaponAccuracy"`
EliminationsPerLife float64 `json:"eliminationsPerLife"`
2017-05-09 02:32:00 +00:00
MultiKillBest int `json:"multiKillBest"`
ObjectiveKillsAvg float64 `json:"objectiveKillsAvg"`
2017-05-28 01:23:12 +00:00
}
type CareerStats struct {
AllHeroes *CareerStat `json:"allHeroes"`
}
type CareerStat struct {
Assists *AssistStats `json:"assists"`
}
type AssistStats struct {
HealingDone int64 `json:"healingDone"`
OffensiveAssists int64 `json:"offensiveAssists"`
SelfHealing int64 `json:"offensiveAssists"`
TurretsDestroyed int64 `json:"turretsDestroyed"`
2017-05-09 02:32:00 +00:00
}