Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battle ¶
type Battle struct { Mode string `json:"mode"` Type string `json:"type"` Result BattleResult `json:"result"` // in seconds Duration int `json:"duration"` TrophyChange int `json:"trophyChange"` Teams [][]TeamMember `json:"teams"` }
type BattleBrawler ¶
type BattleItem ¶
type BattleList ¶
type BattleList struct {
Items []BattleItem `json:"items"`
}
type BattleResult ¶
type BattleResult string
const ( BattleVictory BattleResult = "victory" BattleDefeat BattleResult = "defeat" BattleDraw BattleResult = "draw" )
type BsApi ¶
type BsApi struct {
// contains filtered or unexported fields
}
func (BsApi) GetBattleList ¶
func (BsApi) GetClubStats ¶
type ClientError ¶
type ClientError struct { Reason string `json:"reason"` Message string `json:"message"` Type string `json:"type"` }
func (ClientError) Error ¶
func (ce ClientError) Error() string
type ClubMember ¶
type Player ¶
type Player struct { Club PlayerClub `json:"club"` TrioVictories int `json:"3vs3Victories"` SoloVictories int `json:"soloVictories"` DuoVictories int `json:"duoVictories"` Icon PlayerIcon `json:"icon"` ExpLevel int `json:"expLevel"` ExpPoints int `json:"expPoints"` Tag string `json:"tag"` Name string `json:"name"` Trophies int `json:"trophies"` HighestTrophies int `json:"highestTrophies"` NameColor string `json:"nameColor"` }
type PlayerClub ¶
type PlayerIcon ¶
type PlayerIcon struct {
Id int `json:"id"`
}
type TeamMember ¶
type TeamMember struct { Tag string `json:"tag"` Name string `json:"name"` Brawler BattleBrawler `json:"brawler"` }
Click to show internal directories.
Click to hide internal directories.