Skip to content

Commit

Permalink
Merge pull request #12 from joelhill/add-external-source-on-player
Browse files Browse the repository at this point in the history
update the player model to include extra meta data
  • Loading branch information
joelhill authored Apr 9, 2021
2 parents cb4d903 + ffc5c73 commit 77703b2
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 77703b2

Please sign in to comment.