Skip to content

Commit

Permalink
fixed references model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Hill committed Jun 6, 2019
1 parent 7a7ecdd commit 7cd52e4
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,14 @@ type References struct {
}

type TeamReference struct {
ID *int `json:"id"`
City *string `json:"city"`
Name *string `json:"name"`
Abbreviation *string `json:"abbreviation"`
HomeVenue *HomeVenue `json:"homeVenue"`
ID *int `json:"id"`
City *string `json:"city"`
Name *string `json:"name"`
Abbreviation *string `json:"abbreviation"`
HomeVenue *HomeVenue `json:"homeVenue"`
TeamColoursHex []interface{} `json:"teamColoursHex"`
SocialMediaAccounts []interface{} `json:"socialMediaAccounts"`
OfficialLogoImageSrc interface{} `json:"officialLogoImageSrc"`
}

type HomeVenue struct {
Expand All @@ -169,10 +172,16 @@ type HomeVenue struct {
}

type VenueReference struct {
ID *int `json:"id"`
Name *string `json:"name"`
City *string `json:"city"`
Country *string `json:"country"`
ID *int `json:"id"`
Name *string `json:"name"`
City *string `json:"city"`
Country *string `json:"country"`
GeoCoordinates interface{} `json:"geoCoordinates"`
CapacitiesByEventType []interface{} `json:"capacitiesByEventType"`
PlayingSurface interface{} `json:"playingSurface"`
BaseballDimensions []interface{} `json:"baseballDimensions"`
HasRoof interface{} `json:"hasRoof"`
HasRetractableRoof interface{} `json:"hasRetractableRoof"`
}

type GameReference struct {
Expand Down

0 comments on commit 7cd52e4

Please sign in to comment.