Skip to content

Commit

Permalink
Merge pull request #10 from joelhill/fix-references-model
Browse files Browse the repository at this point in the history
fixed references model.
  • Loading branch information
joelhill authored Jun 6, 2019
2 parents 7a7ecdd + 7cd52e4 commit 2d1e5fc
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 2d1e5fc

Please sign in to comment.