Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchPlayerDto ¶
type MatchPlayerDto struct {
PlayerID string
MatchID int64 `json:"match_id"`
PlayerSlot int `json:"player_slot"`
RadiantWin bool `json:"radiant_win"`
Duration int `json:"duration"` // Seconds
GameMode int `json:"game_mode"`
LobbyType int `json:"lobby_type"`
HeroID int `json:"hero_id"`
StartTime int `json:"start_time"`
Version int `json:"version"`
Kills int `json:"kills"`
Deaths int `json:"deaths"`
Assists int `json:"assists"`
Skill *int `json:"skill"`
LeaverStatus int `json:"leaver_status"`
PartySize int `json:"party_size"`
}
func FromSubscriptionMatch ¶
func FromSubscriptionMatch(sm *ent.SubscriptionMatch) *MatchPlayerDto
func (MatchPlayerDto) DurationMinutes ¶
func (m MatchPlayerDto) DurationMinutes() int
func (MatchPlayerDto) IsWin ¶
func (m MatchPlayerDto) IsWin() bool
func (MatchPlayerDto) SkillString ¶
func (m MatchPlayerDto) SkillString() string
type SteamApiResult ¶
type SubscriptionDto ¶
func (SubscriptionDto) Name ¶
func (sp SubscriptionDto) Name() string
Click to show internal directories.
Click to hide internal directories.