Skip to content

Commit

Permalink
update the player model to include extra meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Hill committed Apr 9, 2021
1 parent cb4d903 commit ffc5c73
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,22 @@ type Player struct {
ID int `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Position string `json:"position"`
PrimaryPosition string `json:"primaryPosition"`
AlternatePositions interface{} `json:"alternatePositions"`
JerseyNumber *int `json:"jerseyNumber"`
CurrentTeam *Team `json:"currentTeam"`
CurrentRosterStatus *string `json:"currentRosterStatus"`
CurrentContractYear *CurrentContractYear `json:"currentContractYear"`
CurrentInjury *CurrentInjury `json:"currentInjury"`
Height *string `json:"height"`
Weight *string `json:"weight"`
Age *int `json:"age"`
Rookie *bool `json:"rookie"`
Handedness interface{} `json:"handedness"`
OfficialImageSrc *string `json:"officialImageSrc"`
SocialMediaAccounts interface{} `json:"socialMediaAccounts"`
CurrentContractYear *CurrentContractYear `json:"currentContractYear"`
Drafted Drafted `json:"drafted"`
ExternalMappings interface{} `json:"externalMappings"`
}

type Team struct {
Expand Down

0 comments on commit ffc5c73

Please sign in to comment.