Skip to content

Commit 2d1e5fc

Browse files
authored
Merge pull request #10 from joelhill/fix-references-model
fixed references model.
2 parents 7a7ecdd + 7cd52e4 commit 2d1e5fc

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

models.go

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,14 @@ type References struct {
156156
}
157157

158158
type TeamReference struct {
159-
ID *int `json:"id"`
160-
City *string `json:"city"`
161-
Name *string `json:"name"`
162-
Abbreviation *string `json:"abbreviation"`
163-
HomeVenue *HomeVenue `json:"homeVenue"`
159+
ID *int `json:"id"`
160+
City *string `json:"city"`
161+
Name *string `json:"name"`
162+
Abbreviation *string `json:"abbreviation"`
163+
HomeVenue *HomeVenue `json:"homeVenue"`
164+
TeamColoursHex []interface{} `json:"teamColoursHex"`
165+
SocialMediaAccounts []interface{} `json:"socialMediaAccounts"`
166+
OfficialLogoImageSrc interface{} `json:"officialLogoImageSrc"`
164167
}
165168

166169
type HomeVenue struct {
@@ -169,10 +172,16 @@ type HomeVenue struct {
169172
}
170173

171174
type VenueReference struct {
172-
ID *int `json:"id"`
173-
Name *string `json:"name"`
174-
City *string `json:"city"`
175-
Country *string `json:"country"`
175+
ID *int `json:"id"`
176+
Name *string `json:"name"`
177+
City *string `json:"city"`
178+
Country *string `json:"country"`
179+
GeoCoordinates interface{} `json:"geoCoordinates"`
180+
CapacitiesByEventType []interface{} `json:"capacitiesByEventType"`
181+
PlayingSurface interface{} `json:"playingSurface"`
182+
BaseballDimensions []interface{} `json:"baseballDimensions"`
183+
HasRoof interface{} `json:"hasRoof"`
184+
HasRetractableRoof interface{} `json:"hasRetractableRoof"`
176185
}
177186

178187
type GameReference struct {

0 commit comments

Comments
 (0)