-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgames.go
64 lines (58 loc) · 2.43 KB
/
games.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
52
53
54
55
56
57
58
59
60
61
62
63
64
package nba
type Game struct {
Clock string `json:"clock"`
EndTimeUTC string `json:"endTimeUTC"`
ExtendedStatusNum int64 `json:"extendedStatusNum"`
GameDuration GameDuration `json:"gameDuration"`
GameID string `json:"gameId"`
HasGameBookPDF bool `json:"hasGameBookPdf"`
IsGameActivated bool `json:"isGameActivated"`
IsBuzzerBeater bool `json:"isBuzzerBeater"`
IsPreviewArticleAvail bool `json:"isPreviewArticleAvail"`
IsRecapArticleAvail bool `json:"isRecapArticleAvail"`
IsStartTimeTBD bool `json:"isStartTimeTBD"`
SeasonStageID int64 `json:"seasonStageId"`
SeasonYear string `json:"seasonYear"`
StatusNum int64 `json:"statusNum"`
StartTimeEastern string `json:"startTimeEastern"`
StartTimeUTC string `json:"startTimeUTC"`
StartDateEastern string `json:"startDateEastern"`
Attendance string `json:"attendance"`
//Period Period `json:"period"`
VTeam GameTeam `json:"vTeam"`
HTeam GameTeam `json:"hTeam"`
}
type GameDuration struct {
Hours string `json:"hours"`
Minutes string `json:"minutes"`
}
type GameLinescore struct {
Score string `json:"score"`
}
type GameStats struct {
FastBreakPoints string `json:"fastBreakPoints"`
PointsInPaint string `json:"pointsInPaint"`
BiggestLead string `json:"biggestLead"`
SecondChancePoints string `json:"secondChancePoints"`
PointsOffTurnovers string `json:"pointsOffTurnovers"`
LongestRun string `json:"longestRun"`
Totals ActivePlayer `json:"totals"`
Leaders map[string]Leader `json:"leaders"`
}
type GamePeriod struct {
Current int64 `json:"current"`
Type int64 `json:"type"`
MaxRegular int64 `json:"maxRegular"`
IsHalftime bool `json:"isHalftime"`
IsEndOfPeriod bool `json:"isEndOfPeriod"`
}
type GameTeam struct {
Win string `json:"win"`
Linescore []GameLinescore `json:"linescore"`
Loss string `json:"loss"`
SeriesWin string `json:"seriesWin"`
SeriesLoss string `json:"seriesLoss"`
Score string `json:"score"`
TeamID string `json:"teamId"`
TriCode string `json:"triCode"`
}