-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam.go
51 lines (47 loc) · 2.7 KB
/
team.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package vrmlgo
type TeamDetails struct {
Team *Team `json:"team"`
Season *Season `json:"season"`
SeasonTeam interface{} `json:"seasonTeam"`
SeasonPlayers interface{} `json:"seasonPlayers"`
SeasonStatsMaps []interface{} `json:"seasonStatsMaps"`
SeasonMatches []interface{} `json:"seasonMatches"`
ExMembers []*User `json:"exMembers"`
Context *Context `json:"context"`
}
func (t TeamDetails) ID() string {
return t.Team.ID
}
type Context struct {
UserTeamID string `json:"userTeamID"`
UserTeamIsTeamOwner bool `json:"userTeamIsTeamOwner"`
}
type Team struct {
ID string `json:"teamID"`
Regions []*Region `json:"regions"`
CurrentUserPlayerID string `json:"currentUserPlayerID"`
CurrentUserIsTeamOwner bool `json:"currentUserIsTeamOwner"`
CurrentUserIsTeamOwnerCaptainOrCoCaptain bool `json:"currentUserIsTeamOwnerCaptainOrCoCaptain"`
CurrentUserIsTeamStarter bool `json:"currentUserIsTeamStarter"`
CurrentUserHasScrimNotifications bool `json:"currentUserHasScrimNotifications"`
TournamentRegistrationFlag int64 `json:"tournamentRegistrationFlag"`
TournamentRegistered int64 `json:"tournamentRegistered"`
GameName string `json:"gameName"`
GameURL string `json:"gameUrl"`
LogoUpdate string `json:"logoUpdate"`
TeamMode string `json:"teamMode"`
IsActive bool `json:"isActive"`
IsRetired bool `json:"isRetired"`
IsDeleted bool `json:"isDeleted"`
IsRecruiting bool `json:"isRecruiting"`
IsBlockingRecruiting bool `json:"isBlockingRecruiting"`
ScheduleInfoWeekdaysFromUTC string `json:"scheduleInfoWeekdaysFromUTC"`
ScheduleInfoWeekdaysToUTC string `json:"scheduleInfoWeekdaysToUTC"`
ScheduleInfoWeekendsFromUTC string `json:"scheduleInfoWeekendsFromUTC"`
ScheduleInfoWeekendsToUTC string `json:"scheduleInfoWeekendsToUTC"`
Players []*Player `json:"players"`
TeamName string `json:"teamName"`
TeamLogo string `json:"teamLogo"`
RegionID string `json:"regionID"`
RegionName string `json:"regionName"`
}