Skip to content

Commit

Permalink
Merge pull request #9 from joelhill/fix-current-contract-year-model
Browse files Browse the repository at this point in the history
fixes incorrect current contract year model.
  • Loading branch information
joelhill authored Jun 6, 2019
2 parents acac66c + cf7f6e3 commit 7a7ecdd
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ type GameLogGame struct {
}

type Player struct {
ID int `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Position string `json:"position"`
JerseyNumber *int `json:"jerseyNumber"`
CurrentTeam *Team `json:"currentTeam"`
CurrentRosterStatus *string `json:"currentRosterStatus"`
CurrentContractYear *bool `json:"currentContractYear"`
CurrentInjury *CurrentInjury `json:"currentInjury"`
ID int `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Position string `json:"position"`
JerseyNumber *int `json:"jerseyNumber"`
CurrentTeam *Team `json:"currentTeam"`
CurrentRosterStatus *string `json:"currentRosterStatus"`
CurrentContractYear *CurrentContractYear `json:"currentContractYear"`
CurrentInjury *CurrentInjury `json:"currentInjury"`
}

type Team struct {
Expand Down Expand Up @@ -557,3 +557,31 @@ type Rank struct {
Rank *int `json:"rank"`
GamesBack *float64 `json:"gamesBack"`
}

type CurrentContractYear struct {
SeasonStartYear int `json:"seasonStartYear"`
BaseSalary int `json:"baseSalary"`
MinorsSalary int `json:"minorsSalary"`
SigningBonus int `json:"signingBonus"`
OtherBonuses int `json:"otherBonuses"`
CapHit interface{} `json:"capHit"`
FullNoTradeClause bool `json:"fullNoTradeClause"`
ModifiedNoTradeClause bool `json:"modifiedNoTradeClause"`
NoMovementClause bool `json:"noMovementClause"`
OverallContract *OverallContract `json:"overallContract"`
}

type OverallContract struct {
SigningTeam *SigningTeam `json:"signingTeam"`
SignedOn interface{} `json:"signedOn"`
TotalYears int `json:"totalYears"`
TotalSalary int `json:"totalSalary"`
TotalBonuses int `json:"totalBonuses"`
ExpiryStatus interface{} `json:"expiryStatus"`
AnnualAverageSalary int `json:"annualAverageSalary"`
}

type SigningTeam struct {
ID int `json:"id"`
Abbreviation string `json:"abbreviation"`
}

0 comments on commit 7a7ecdd

Please sign in to comment.