diff --git a/controller/GameDataController.go b/controller/GameDataController.go index 73d8ae9a..49841bd4 100644 --- a/controller/GameDataController.go +++ b/controller/GameDataController.go @@ -135,22 +135,24 @@ func GetHomeAndAwayTeamData(w http.ResponseWriter, r *http.Request) { } func GetNFLHomeAndAwayTeamData(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "application/json; charset=utf-8") + vars := mux.Vars(r) gameID := vars["gameID"] - gameChan := make(chan structs.NFLGame) - go func() { - g := managers.GetNFLGameByGameID(gameID) - gameChan <- g - }() - game := <-gameChan - close(gameChan) + g := managers.GetNFLGameByGameID(gameID) + if g.ID == 0 { + w.WriteHeader(http.StatusNotFound) + _ = json.NewEncoder(w).Encode(map[string]string{"error": "game not found"}) + return + } responseModel := models.NFLSimGameDataResponse{ - GameID: int(game.ID), - WeekID: game.WeekID, - SeasonID: game.SeasonID, + GameID: int(g.ID), + WeekID: g.WeekID, + SeasonID: g.SeasonID, } + var waitgroup sync.WaitGroup waitgroup.Add(2) var rosterGroup sync.WaitGroup @@ -177,13 +179,13 @@ func GetNFLHomeAndAwayTeamData(w http.ResponseWriter, r *http.Request) { go func() { defer waitgroup.Done() - ht := managers.GetNFLTeamByTeamIDForSim(strconv.Itoa(game.HomeTeamID)) + ht := managers.GetNFLTeamByTeamIDForSim(strconv.Itoa(g.HomeTeamID)) homeTeamChan <- ht }() go func() { defer waitgroup.Done() - at := managers.GetNFLTeamByTeamIDForSim(strconv.Itoa(game.AwayTeamID)) + at := managers.GetNFLTeamByTeamIDForSim(strconv.Itoa(g.AwayTeamID)) awayTeamChan <- at }() @@ -191,7 +193,7 @@ func GetNFLHomeAndAwayTeamData(w http.ResponseWriter, r *http.Request) { awayTeam := <-awayTeamChan homeTeamID := strconv.Itoa(int(homeTeam.ID)) awayTeamID := strconv.Itoa(int(awayTeam.ID)) - stadiumID := strconv.Itoa(int(game.StadiumID)) + stadiumID := strconv.Itoa(int(g.StadiumID)) go func() { defer rosterGroup.Done() @@ -241,9 +243,9 @@ func GetNFLHomeAndAwayTeamData(w http.ResponseWriter, r *http.Request) { awayTeamResponse.Map(awayTeam, awayDCResponse) responseModel.AssignHomeTeam(homeTeamResponse, homeTeamRoster) responseModel.AssignAwayTeam(awayTeamResponse, awayTeamRoster) - responseModel.AssignWeather(game.GameTemp, game.Cloud, game.Precip, game.WindCategory, game.WindSpeed) + responseModel.AssignWeather(g.GameTemp, g.Cloud, g.Precip, g.WindCategory, g.WindSpeed) responseModel.AssignStadium(stadium) - responseModel.AssignPostSeasonStatus(game.IsConferenceChampionship || game.IsSuperBowl || game.IsPlayoffGame, game.IsNeutral) + responseModel.AssignPostSeasonStatus(g.IsConferenceChampionship || g.IsSuperBowl || g.IsPlayoffGame, g.IsNeutral) json.NewEncoder(w).Encode(responseModel) } diff --git a/data/defaultOffensiveSchemes.json b/data/defaultOffensiveSchemes.json index aac1ea01..308c5cd8 100644 --- a/data/defaultOffensiveSchemes.json +++ b/data/defaultOffensiveSchemes.json @@ -55,12 +55,13 @@ "InvertedOptionRight": 13, "TripleOptionLeft": 12, "TripleOptionRight": 13, - "PassQuick": 10, - "PassShort": 15, + "PassQuick": 0, + "PassShort": 10, + "PassMedium": 15, "PassLong": 15, "PassDeep": 5, "PassScreen": 5, - "PassPAShort": 25, + "PassPAMedium": 25, "PassPALong": 20, "PassPADeep": 5, "LeftVsRight": 50, @@ -153,7 +154,7 @@ "PassLong": 20, "PassDeep": 5, "PassScreen": 5, - "PassPAShort": 10, + "PassPAMedium": 10, "PassPALong": 15, "PassPADeep": 5, "LeftVsRight": 50, @@ -246,7 +247,7 @@ "PassLong": 5, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 10, + "PassPAMedium": 10, "PassPALong": 5, "PassPADeep": 5, "LeftVsRight": 50, @@ -339,7 +340,7 @@ "PassLong": 15, "PassDeep": 5, "PassScreen": 5, - "PassPAShort": 20, + "PassPAMedium": 20, "PassPALong": 15, "PassPADeep": 5, "LeftVsRight": 50, @@ -432,7 +433,7 @@ "PassLong": 20, "PassDeep": 5, "PassScreen": 15, - "PassPAShort": 10, + "PassPAMedium": 10, "PassPALong": 5, "PassPADeep": 5, "LeftVsRight": 50, @@ -525,7 +526,7 @@ "PassLong": 10, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 5, + "PassPAMedium": 5, "PassPALong": 5, "PassPADeep": 5, "LeftVsRight": 50, @@ -618,7 +619,7 @@ "PassLong": 15, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 20, + "PassPAMedium": 20, "PassPALong": 5, "PassPADeep": 5, "LeftVsRight": 50, @@ -711,7 +712,7 @@ "PassLong": 5, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 20, + "PassPAMedium": 20, "PassPALong": 15, "PassPADeep": 5, "LeftVsRight": 50, @@ -804,7 +805,7 @@ "PassLong": 15, "PassDeep": 5, "PassScreen": 5, - "PassPAShort": 25, + "PassPAMedium": 25, "PassPALong": 20, "PassPADeep": 5, "LeftVsRight": 50, @@ -897,7 +898,7 @@ "PassLong": 15, "PassDeep": 5, "PassScreen": 5, - "PassPAShort": 25, + "PassPAMedium": 25, "PassPALong": 20, "PassPADeep": 5, "LeftVsRight": 50, @@ -990,7 +991,7 @@ "PassLong": 15, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 20, + "PassPAMedium": 20, "PassPALong": 5, "PassPADeep": 5, "LeftVsRight": 50, @@ -1083,7 +1084,7 @@ "PassLong": 5, "PassDeep": 5, "PassScreen": 10, - "PassPAShort": 30, + "PassPAMedium": 30, "PassPALong": 25, "PassPADeep": 5, "LeftVsRight": 50, diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index 6f23b249..a9ee969a 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -51,9 +51,12 @@ type BootstrapDataLanding struct { } type BootstrapDataTeamRoster struct { - ContractMap map[uint]structs.NFLContract - ExtensionMap map[uint]structs.NFLExtensionOffer - CollegePromises []structs.CollegePromise + ContractMap map[uint]structs.NFLContract + ExtensionMap map[uint]structs.NFLExtensionOffer + CollegePromises []structs.CollegePromise + TradeProposals structs.NFLTeamProposals + TradePreferences map[uint]structs.NFLTradePreferences + NFLDraftPicks []structs.NFLDraftPick } type BootstrapDataRecruiting struct { @@ -305,21 +308,25 @@ func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { func GetTeamRosterBootstrap(collegeID, nflID string) BootstrapDataTeamRoster { var wg sync.WaitGroup var ( - contractMap map[uint]structs.NFLContract - extensionMap map[uint]structs.NFLExtensionOffer - collegePromises []structs.CollegePromise + contractMap map[uint]structs.NFLContract + extensionMap map[uint]structs.NFLExtensionOffer + collegePromises []structs.CollegePromise + tradeProposals structs.NFLTeamProposals + tradePreferencesMap map[uint]structs.NFLTradePreferences + draftPicks []structs.NFLDraftPick ) if len(collegeID) > 0 && collegeID != "0" { wg.Add(1) go func() { + defer wg.Done() promises := GetCollegePromisesByTeamID(collegeID) collegePromises = promises }() } if len(nflID) > 0 && nflID != "0" { - wg.Add(2) + wg.Add(5) go func() { defer wg.Done() contractMap = GetContractMap() @@ -329,11 +336,30 @@ func GetTeamRosterBootstrap(collegeID, nflID string) BootstrapDataTeamRoster { defer wg.Done() extensionMap = GetExtensionMap() }() + + go func() { + defer wg.Done() + tradeProposals = GetTradeProposalsByNFLID(nflID) + }() + + go func() { + defer wg.Done() + tradePreferencesMap = GetTradePreferencesMap() + }() + go func() { + defer wg.Done() + draftPicks = GetAllRelevantNFLDraftPicks() + }() } + + wg.Wait() return BootstrapDataTeamRoster{ - ContractMap: contractMap, - ExtensionMap: extensionMap, - CollegePromises: collegePromises, + ContractMap: contractMap, + ExtensionMap: extensionMap, + CollegePromises: collegePromises, + TradeProposals: tradeProposals, + TradePreferences: tradePreferencesMap, + NFLDraftPicks: draftPicks, } } @@ -425,7 +451,7 @@ func GetCollegePollsBootstrap(username, collegeID, seasonID string) BootstrapDat wg.Add(2) go func() { defer wg.Done() - officialPolls = GetOfficialPollBySeasonID(seasonID) + officialPolls = GetAllOfficialPolls() }() go func() { defer wg.Done() diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go index 5d912d9a..01231d0f 100644 --- a/managers/BootstrapManager_easyjson.go +++ b/managers/BootstrapManager_easyjson.go @@ -15484,6 +15484,592 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o } in.Delim(']') } + case "TradeProposals": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &out.TradeProposals) + case "TradePreferences": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.TradePreferences = make(map[uint]structs.NFLTradePreferences) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v75 structs.NFLTradePreferences + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v75) + (out.TradePreferences)[key] = v75 + in.WantComma() + } + in.Delim('}') + } + case "NFLDraftPicks": + if in.IsNull() { + in.Skip() + out.NFLDraftPicks = nil + } else { + in.Delim('[') + if out.NFLDraftPicks == nil { + if !in.IsDelim(']') { + out.NFLDraftPicks = make([]structs.NFLDraftPick, 0, 0) + } else { + out.NFLDraftPicks = []structs.NFLDraftPick{} + } + } else { + out.NFLDraftPicks = (out.NFLDraftPicks)[:0] + } + for !in.IsDelim(']') { + var v76 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v76) + out.NFLDraftPicks = append(out.NFLDraftPicks, v76) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataTeamRoster) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ContractMap\":" + out.RawString(prefix[1:]) + if in.ContractMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v77First := true + for v77Name, v77Value := range in.ContractMap { + if v77First { + v77First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v77Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v77Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ExtensionMap\":" + out.RawString(prefix) + if in.ExtensionMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v78First := true + for v78Name, v78Value := range in.ExtensionMap { + if v78First { + v78First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v78Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v78Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegePromises\":" + out.RawString(prefix) + if in.CollegePromises == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v79, v80 := range in.CollegePromises { + if v79 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v80) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TradeProposals\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, in.TradeProposals) + } + { + const prefix string = ",\"TradePreferences\":" + out.RawString(prefix) + if in.TradePreferences == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v81First := true + for v81Name, v81Value := range in.TradePreferences { + if v81First { + v81First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v81Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v81Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"NFLDraftPicks\":" + out.RawString(prefix) + if in.NFLDraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v82, v83 := range in.NFLDraftPicks { + if v82 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v83) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataTeamRoster) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataTeamRoster) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataTeamRoster) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataTeamRoster) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.NFLTradePreferences) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLTeamID": + out.NFLTeamID = uint(in.Uint()) + case "Quarterbacks": + out.Quarterbacks = bool(in.Bool()) + case "QuarterbackType": + out.QuarterbackType = string(in.String()) + case "Runningbacks": + out.Runningbacks = bool(in.Bool()) + case "RunningbackType": + out.RunningbackType = string(in.String()) + case "Fullbacks": + out.Fullbacks = bool(in.Bool()) + case "FullbackType": + out.FullbackType = string(in.String()) + case "WideReceivers": + out.WideReceivers = bool(in.Bool()) + case "WideReceiverType": + out.WideReceiverType = string(in.String()) + case "TightEnds": + out.TightEnds = bool(in.Bool()) + case "TightEndType": + out.TightEndType = string(in.String()) + case "OffensiveTackles": + out.OffensiveTackles = bool(in.Bool()) + case "OffensiveGuards": + out.OffensiveGuards = bool(in.Bool()) + case "Centers": + out.Centers = bool(in.Bool()) + case "OffensiveTackleType": + out.OffensiveTackleType = string(in.String()) + case "OffensiveGuardType": + out.OffensiveGuardType = string(in.String()) + case "CenterType": + out.CenterType = string(in.String()) + case "DefensiveTackles": + out.DefensiveTackles = bool(in.Bool()) + case "DefensiveTackleType": + out.DefensiveTackleType = string(in.String()) + case "DefensiveEnds": + out.DefensiveEnds = bool(in.Bool()) + case "DefensiveEndType": + out.DefensiveEndType = string(in.String()) + case "OutsideLinebackers": + out.OutsideLinebackers = bool(in.Bool()) + case "OutsideLinebackerType": + out.OutsideLinebackerType = string(in.String()) + case "InsideLinebackers": + out.InsideLinebackers = bool(in.Bool()) + case "InsideLinebackerType": + out.InsideLinebackerType = string(in.String()) + case "Cornerbacks": + out.Cornerbacks = bool(in.Bool()) + case "CornerbackType": + out.CornerbackType = string(in.String()) + case "FreeSafeties": + out.FreeSafeties = bool(in.Bool()) + case "FreeSafetyType": + out.FreeSafetyType = string(in.String()) + case "StrongSafeties": + out.StrongSafeties = bool(in.Bool()) + case "StrongSafetyType": + out.StrongSafetyType = string(in.String()) + case "Kickers": + out.Kickers = bool(in.Bool()) + case "KickerType": + out.KickerType = string(in.String()) + case "Punters": + out.Punters = bool(in.Bool()) + case "PunterType": + out.PunterType = string(in.String()) + case "DraftPicks": + out.DraftPicks = bool(in.Bool()) + case "DraftPickType": + out.DraftPickType = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer, in structs.NFLTradePreferences) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLTeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLTeamID)) + } + { + const prefix string = ",\"Quarterbacks\":" + out.RawString(prefix) + out.Bool(bool(in.Quarterbacks)) + } + { + const prefix string = ",\"QuarterbackType\":" + out.RawString(prefix) + out.String(string(in.QuarterbackType)) + } + { + const prefix string = ",\"Runningbacks\":" + out.RawString(prefix) + out.Bool(bool(in.Runningbacks)) + } + { + const prefix string = ",\"RunningbackType\":" + out.RawString(prefix) + out.String(string(in.RunningbackType)) + } + { + const prefix string = ",\"Fullbacks\":" + out.RawString(prefix) + out.Bool(bool(in.Fullbacks)) + } + { + const prefix string = ",\"FullbackType\":" + out.RawString(prefix) + out.String(string(in.FullbackType)) + } + { + const prefix string = ",\"WideReceivers\":" + out.RawString(prefix) + out.Bool(bool(in.WideReceivers)) + } + { + const prefix string = ",\"WideReceiverType\":" + out.RawString(prefix) + out.String(string(in.WideReceiverType)) + } + { + const prefix string = ",\"TightEnds\":" + out.RawString(prefix) + out.Bool(bool(in.TightEnds)) + } + { + const prefix string = ",\"TightEndType\":" + out.RawString(prefix) + out.String(string(in.TightEndType)) + } + { + const prefix string = ",\"OffensiveTackles\":" + out.RawString(prefix) + out.Bool(bool(in.OffensiveTackles)) + } + { + const prefix string = ",\"OffensiveGuards\":" + out.RawString(prefix) + out.Bool(bool(in.OffensiveGuards)) + } + { + const prefix string = ",\"Centers\":" + out.RawString(prefix) + out.Bool(bool(in.Centers)) + } + { + const prefix string = ",\"OffensiveTackleType\":" + out.RawString(prefix) + out.String(string(in.OffensiveTackleType)) + } + { + const prefix string = ",\"OffensiveGuardType\":" + out.RawString(prefix) + out.String(string(in.OffensiveGuardType)) + } + { + const prefix string = ",\"CenterType\":" + out.RawString(prefix) + out.String(string(in.CenterType)) + } + { + const prefix string = ",\"DefensiveTackles\":" + out.RawString(prefix) + out.Bool(bool(in.DefensiveTackles)) + } + { + const prefix string = ",\"DefensiveTackleType\":" + out.RawString(prefix) + out.String(string(in.DefensiveTackleType)) + } + { + const prefix string = ",\"DefensiveEnds\":" + out.RawString(prefix) + out.Bool(bool(in.DefensiveEnds)) + } + { + const prefix string = ",\"DefensiveEndType\":" + out.RawString(prefix) + out.String(string(in.DefensiveEndType)) + } + { + const prefix string = ",\"OutsideLinebackers\":" + out.RawString(prefix) + out.Bool(bool(in.OutsideLinebackers)) + } + { + const prefix string = ",\"OutsideLinebackerType\":" + out.RawString(prefix) + out.String(string(in.OutsideLinebackerType)) + } + { + const prefix string = ",\"InsideLinebackers\":" + out.RawString(prefix) + out.Bool(bool(in.InsideLinebackers)) + } + { + const prefix string = ",\"InsideLinebackerType\":" + out.RawString(prefix) + out.String(string(in.InsideLinebackerType)) + } + { + const prefix string = ",\"Cornerbacks\":" + out.RawString(prefix) + out.Bool(bool(in.Cornerbacks)) + } + { + const prefix string = ",\"CornerbackType\":" + out.RawString(prefix) + out.String(string(in.CornerbackType)) + } + { + const prefix string = ",\"FreeSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.FreeSafeties)) + } + { + const prefix string = ",\"FreeSafetyType\":" + out.RawString(prefix) + out.String(string(in.FreeSafetyType)) + } + { + const prefix string = ",\"StrongSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.StrongSafeties)) + } + { + const prefix string = ",\"StrongSafetyType\":" + out.RawString(prefix) + out.String(string(in.StrongSafetyType)) + } + { + const prefix string = ",\"Kickers\":" + out.RawString(prefix) + out.Bool(bool(in.Kickers)) + } + { + const prefix string = ",\"KickerType\":" + out.RawString(prefix) + out.String(string(in.KickerType)) + } + { + const prefix string = ",\"Punters\":" + out.RawString(prefix) + out.Bool(bool(in.Punters)) + } + { + const prefix string = ",\"PunterType\":" + out.RawString(prefix) + out.String(string(in.PunterType)) + } + { + const prefix string = ",\"DraftPicks\":" + out.RawString(prefix) + out.Bool(bool(in.DraftPicks)) + } + { + const prefix string = ",\"DraftPickType\":" + out.RawString(prefix) + out.String(string(in.DraftPickType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, out *structs.NFLTeamProposals) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SentTradeProposals": + if in.IsNull() { + in.Skip() + out.SentTradeProposals = nil + } else { + in.Delim('[') + if out.SentTradeProposals == nil { + if !in.IsDelim(']') { + out.SentTradeProposals = make([]structs.NFLTradeProposalDTO, 0, 0) + } else { + out.SentTradeProposals = []structs.NFLTradeProposalDTO{} + } + } else { + out.SentTradeProposals = (out.SentTradeProposals)[:0] + } + for !in.IsDelim(']') { + var v84 structs.NFLTradeProposalDTO + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v84) + out.SentTradeProposals = append(out.SentTradeProposals, v84) + in.WantComma() + } + in.Delim(']') + } + case "ReceivedTradeProposals": + if in.IsNull() { + in.Skip() + out.ReceivedTradeProposals = nil + } else { + in.Delim('[') + if out.ReceivedTradeProposals == nil { + if !in.IsDelim(']') { + out.ReceivedTradeProposals = make([]structs.NFLTradeProposalDTO, 0, 0) + } else { + out.ReceivedTradeProposals = []structs.NFLTradeProposalDTO{} + } + } else { + out.ReceivedTradeProposals = (out.ReceivedTradeProposals)[:0] + } + for !in.IsDelim(']') { + var v85 structs.NFLTradeProposalDTO + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v85) + out.ReceivedTradeProposals = append(out.ReceivedTradeProposals, v85) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -15494,93 +16080,303 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataTeamRoster) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer, in structs.NFLTeamProposals) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"ContractMap\":" + const prefix string = ",\"SentTradeProposals\":" out.RawString(prefix[1:]) - if in.ContractMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) + if in.SentTradeProposals == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") } else { - out.RawByte('{') - v75First := true - for v75Name, v75Value := range in.ContractMap { - if v75First { - v75First = false - } else { + out.RawByte('[') + for v86, v87 := range in.SentTradeProposals { + if v86 > 0 { out.RawByte(',') } - out.UintStr(uint(v75Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v75Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v87) } - out.RawByte('}') + out.RawByte(']') } } { - const prefix string = ",\"ExtensionMap\":" + const prefix string = ",\"ReceivedTradeProposals\":" out.RawString(prefix) - if in.ExtensionMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) + if in.ReceivedTradeProposals == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") } else { - out.RawByte('{') - v76First := true - for v76Name, v76Value := range in.ExtensionMap { - if v76First { - v76First = false + out.RawByte('[') + for v88, v89 := range in.ReceivedTradeProposals { + if v88 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v89) + } + out.RawByte(']') + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, out *structs.NFLTradeProposalDTO) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "NFLTeamID": + out.NFLTeamID = uint(in.Uint()) + case "NFLTeam": + out.NFLTeam = string(in.String()) + case "RecepientTeamID": + out.RecepientTeamID = uint(in.Uint()) + case "RecepientTeam": + out.RecepientTeam = string(in.String()) + case "IsTradeAccepted": + out.IsTradeAccepted = bool(in.Bool()) + case "IsTradeRejected": + out.IsTradeRejected = bool(in.Bool()) + case "NFLTeamTradeOptions": + if in.IsNull() { + in.Skip() + out.NFLTeamTradeOptions = nil + } else { + in.Delim('[') + if out.NFLTeamTradeOptions == nil { + if !in.IsDelim(']') { + out.NFLTeamTradeOptions = make([]structs.NFLTradeOptionObj, 0, 0) + } else { + out.NFLTeamTradeOptions = []structs.NFLTradeOptionObj{} + } + } else { + out.NFLTeamTradeOptions = (out.NFLTeamTradeOptions)[:0] + } + for !in.IsDelim(']') { + var v90 structs.NFLTradeOptionObj + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v90) + out.NFLTeamTradeOptions = append(out.NFLTeamTradeOptions, v90) + in.WantComma() + } + in.Delim(']') + } + case "RecepientTeamTradeOptions": + if in.IsNull() { + in.Skip() + out.RecepientTeamTradeOptions = nil + } else { + in.Delim('[') + if out.RecepientTeamTradeOptions == nil { + if !in.IsDelim(']') { + out.RecepientTeamTradeOptions = make([]structs.NFLTradeOptionObj, 0, 0) + } else { + out.RecepientTeamTradeOptions = []structs.NFLTradeOptionObj{} + } } else { + out.RecepientTeamTradeOptions = (out.RecepientTeamTradeOptions)[:0] + } + for !in.IsDelim(']') { + var v91 structs.NFLTradeOptionObj + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v91) + out.RecepientTeamTradeOptions = append(out.RecepientTeamTradeOptions, v91) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer, in structs.NFLTradeProposalDTO) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"NFLTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLTeamID)) + } + { + const prefix string = ",\"NFLTeam\":" + out.RawString(prefix) + out.String(string(in.NFLTeam)) + } + { + const prefix string = ",\"RecepientTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.RecepientTeamID)) + } + { + const prefix string = ",\"RecepientTeam\":" + out.RawString(prefix) + out.String(string(in.RecepientTeam)) + } + { + const prefix string = ",\"IsTradeAccepted\":" + out.RawString(prefix) + out.Bool(bool(in.IsTradeAccepted)) + } + { + const prefix string = ",\"IsTradeRejected\":" + out.RawString(prefix) + out.Bool(bool(in.IsTradeRejected)) + } + { + const prefix string = ",\"NFLTeamTradeOptions\":" + out.RawString(prefix) + if in.NFLTeamTradeOptions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v92, v93 := range in.NFLTeamTradeOptions { + if v92 > 0 { out.RawByte(',') } - out.UintStr(uint(v76Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v76Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v93) } - out.RawByte('}') + out.RawByte(']') } } { - const prefix string = ",\"CollegePromises\":" + const prefix string = ",\"RecepientTeamTradeOptions\":" out.RawString(prefix) - if in.CollegePromises == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.RecepientTeamTradeOptions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v77, v78 := range in.CollegePromises { - if v77 > 0 { + for v94, v95 := range in.RecepientTeamTradeOptions { + if v94 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v78) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v95) } out.RawByte(']') } } out.RawByte('}') } - -// MarshalJSON supports json.Marshaler interface -func (v BootstrapDataTeamRoster) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v BootstrapDataTeamRoster) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *BootstrapDataTeamRoster) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) - return r.Error() +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, out *structs.NFLTradeOptionObj) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "TradeProposalID": + out.TradeProposalID = uint(in.Uint()) + case "NFLTeamID": + out.NFLTeamID = uint(in.Uint()) + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "NFLDraftPickID": + out.NFLDraftPickID = uint(in.Uint()) + case "OptionType": + out.OptionType = string(in.String()) + case "SalaryPercentage": + out.SalaryPercentage = float64(in.Float64()) + case "Player": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &out.Player) + case "Draftpick": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &out.Draftpick) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } } - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BootstrapDataTeamRoster) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer, in structs.NFLTradeOptionObj) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"TradeProposalID\":" + out.RawString(prefix) + out.Uint(uint(in.TradeProposalID)) + } + { + const prefix string = ",\"NFLTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLTeamID)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"NFLDraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLDraftPickID)) + } + { + const prefix string = ",\"OptionType\":" + out.RawString(prefix) + out.String(string(in.OptionType)) + } + { + const prefix string = ",\"SalaryPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.SalaryPercentage)) + } + { + const prefix string = ",\"Player\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, in.Player) + } + { + const prefix string = ",\"Draftpick\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, in.Draftpick) + } + out.RawByte('}') } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in *jlexer.Lexer, out *structs.CollegePromise) { isTopLevel := in.IsStart() @@ -15749,15 +16545,15 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.OfficialPolls = (out.OfficialPolls)[:0] } for !in.IsDelim(']') { - var v79 structs.CollegePollOfficial - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v79) - out.OfficialPolls = append(out.OfficialPolls, v79) + var v96 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v96) + out.OfficialPolls = append(out.OfficialPolls, v96) in.WantComma() } in.Delim(']') } case "PollSubmission": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &out.PollSubmission) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &out.PollSubmission) default: in.SkipRecursive() } @@ -15779,11 +16575,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v80, v81 := range in.OfficialPolls { - if v80 > 0 { + for v97, v98 := range in.OfficialPolls { + if v97 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v81) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v98) } out.RawByte(']') } @@ -15791,7 +16587,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer { const prefix string = ",\"PollSubmission\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, in.PollSubmission) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, in.PollSubmission) } out.RawByte('}') } @@ -15819,7 +16615,7 @@ func (v *BootstrapDataScheduling) UnmarshalJSON(data []byte) error { func (v *BootstrapDataScheduling) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.CollegePollSubmission) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, out *structs.CollegePollSubmission) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -15970,7 +16766,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer, in structs.CollegePollSubmission) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer, in structs.CollegePollSubmission) { out.RawByte('{') first := true _ = first @@ -16266,7 +17062,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, out *structs.CollegePollOfficial) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.CollegePollOfficial) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -16515,7 +17311,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer, in structs.CollegePollOfficial) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer, in structs.CollegePollOfficial) { out.RawByte('{') first := true _ = first @@ -17091,9 +17887,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.Recruits = (out.Recruits)[:0] } for !in.IsDelim(']') { - var v82 structs.Croot - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v82) - out.Recruits = append(out.Recruits, v82) + var v99 structs.Croot + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &v99) + out.Recruits = append(out.Recruits, v99) in.WantComma() } in.Delim(']') @@ -17114,9 +17910,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.RecruitProfiles = (out.RecruitProfiles)[:0] } for !in.IsDelim(']') { - var v83 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v83) - out.RecruitProfiles = append(out.RecruitProfiles, v83) + var v100 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v100) + out.RecruitProfiles = append(out.RecruitProfiles, v100) in.WantComma() } in.Delim(']') @@ -17130,17 +17926,17 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v84 *structs.RecruitingTeamProfile + var v101 *structs.RecruitingTeamProfile if in.IsNull() { in.Skip() - v84 = nil + v101 = nil } else { - if v84 == nil { - v84 = new(structs.RecruitingTeamProfile) + if v101 == nil { + v101 = new(structs.RecruitingTeamProfile) } - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v84) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v101) } - (out.TeamProfileMap)[key] = v84 + (out.TeamProfileMap)[key] = v101 in.WantComma() } in.Delim('}') @@ -17166,11 +17962,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v85, v86 := range in.Recruits { - if v85 > 0 { + for v102, v103 := range in.Recruits { + if v102 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v86) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, v103) } out.RawByte(']') } @@ -17182,11 +17978,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v87, v88 := range in.RecruitProfiles { - if v87 > 0 { + for v104, v105 := range in.RecruitProfiles { + if v104 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v88) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v105) } out.RawByte(']') } @@ -17198,19 +17994,19 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v89First := true - for v89Name, v89Value := range in.TeamProfileMap { - if v89First { - v89First = false + v106First := true + for v106Name, v106Value := range in.TeamProfileMap { + if v106First { + v106First = false } else { out.RawByte(',') } - out.String(string(v89Name)) + out.String(string(v106Name)) out.RawByte(':') - if v89Value == nil { + if v106Value == nil { out.RawString("null") } else { - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v89Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v106Value) } } out.RawByte('}') @@ -17242,7 +18038,7 @@ func (v *BootstrapDataRecruiting) UnmarshalJSON(data []byte) error { func (v *BootstrapDataRecruiting) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, out *structs.Croot) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, out *structs.Croot) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -17333,9 +18129,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, o out.LeadingTeams = (out.LeadingTeams)[:0] } for !in.IsDelim(']') { - var v90 structs.LeadingTeams - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v90) - out.LeadingTeams = append(out.LeadingTeams, v90) + var v107 structs.LeadingTeams + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in, &v107) + out.LeadingTeams = append(out.LeadingTeams, v107) in.WantComma() } in.Delim(']') @@ -17350,7 +18146,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer, in structs.Croot) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out *jwriter.Writer, in structs.Croot) { out.RawByte('{') first := true _ = first @@ -17501,18 +18297,18 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v91, v92 := range in.LeadingTeams { - if v91 > 0 { + for v108, v109 := range in.LeadingTeams { + if v108 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v92) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out, v109) } out.RawByte(']') } } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, out *structs.LeadingTeams) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in *jlexer.Lexer, out *structs.LeadingTeams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -17551,7 +18347,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer, in structs.LeadingTeams) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out *jwriter.Writer, in structs.LeadingTeams) { out.RawByte('{') first := true _ = first @@ -17610,17 +18406,17 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, o for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v93 *structs.RecruitingTeamProfile + var v110 *structs.RecruitingTeamProfile if in.IsNull() { in.Skip() - v93 = nil + v110 = nil } else { - if v93 == nil { - v93 = new(structs.RecruitingTeamProfile) + if v110 == nil { + v110 = new(structs.RecruitingTeamProfile) } - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v93) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v110) } - (out.TeamProfileMap)[key] = v93 + (out.TeamProfileMap)[key] = v110 in.WantComma() } in.Delim('}') @@ -17641,9 +18437,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, o out.TransferPortalProfiles = (out.TransferPortalProfiles)[:0] } for !in.IsDelim(']') { - var v94 structs.TransferPortalProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v94) - out.TransferPortalProfiles = append(out.TransferPortalProfiles, v94) + var v111 structs.TransferPortalProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in, &v111) + out.TransferPortalProfiles = append(out.TransferPortalProfiles, v111) in.WantComma() } in.Delim(']') @@ -17664,9 +18460,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, o out.CollegePromises = (out.CollegePromises)[:0] } for !in.IsDelim(']') { - var v95 structs.CollegePromise - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v95) - out.CollegePromises = append(out.CollegePromises, v95) + var v112 structs.CollegePromise + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v112) + out.CollegePromises = append(out.CollegePromises, v112) in.WantComma() } in.Delim(']') @@ -17692,19 +18488,19 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v96First := true - for v96Name, v96Value := range in.TeamProfileMap { - if v96First { - v96First = false + v113First := true + for v113Name, v113Value := range in.TeamProfileMap { + if v113First { + v113First = false } else { out.RawByte(',') } - out.String(string(v96Name)) + out.String(string(v113Name)) out.RawByte(':') - if v96Value == nil { + if v113Value == nil { out.RawString("null") } else { - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v96Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v113Value) } } out.RawByte('}') @@ -17717,11 +18513,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v97, v98 := range in.TransferPortalProfiles { - if v97 > 0 { + for v114, v115 := range in.TransferPortalProfiles { + if v114 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v98) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out, v115) } out.RawByte(']') } @@ -17733,11 +18529,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v99, v100 := range in.CollegePromises { - if v99 > 0 { + for v116, v117 := range in.CollegePromises { + if v116 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v100) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v117) } out.RawByte(']') } @@ -17768,7 +18564,7 @@ func (v *BootstrapDataPortal) UnmarshalJSON(data []byte) error { func (v *BootstrapDataPortal) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.TransferPortalProfile) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, out *structs.TransferPortalProfile) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -17839,7 +18635,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer, in structs.TransferPortalProfile) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer, in structs.TransferPortalProfile) { out.RawByte('{') first := true _ = first @@ -18019,9 +18815,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.CollegeNews = (out.CollegeNews)[:0] } for !in.IsDelim(']') { - var v101 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v101) - out.CollegeNews = append(out.CollegeNews, v101) + var v118 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in, &v118) + out.CollegeNews = append(out.CollegeNews, v118) in.WantComma() } in.Delim(']') @@ -18042,9 +18838,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.ProNews = (out.ProNews)[:0] } for !in.IsDelim(']') { - var v102 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v102) - out.ProNews = append(out.ProNews, v102) + var v119 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in, &v119) + out.ProNews = append(out.ProNews, v119) in.WantComma() } in.Delim(']') @@ -18070,11 +18866,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v103, v104 := range in.CollegeNews { - if v103 > 0 { + for v120, v121 := range in.CollegeNews { + if v120 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v104) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs44(out, v121) } out.RawByte(']') } @@ -18086,11 +18882,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v105, v106 := range in.ProNews { - if v105 > 0 { + for v122, v123 := range in.ProNews { + if v122 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v106) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs44(out, v123) } out.RawByte(']') } @@ -18121,7 +18917,7 @@ func (v *BootstrapDataNews) UnmarshalJSON(data []byte) error { func (v *BootstrapDataNews) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, out *structs.NewsLog) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in *jlexer.Lexer, out *structs.NewsLog) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -18186,7 +18982,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer, in structs.NewsLog) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs44(out *jwriter.Writer, in structs.NewsLog) { out.RawByte('{') first := true _ = first @@ -18281,30 +19077,30 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v107 []structs.CollegePlayer + var v124 []structs.CollegePlayer if in.IsNull() { in.Skip() - v107 = nil + v124 = nil } else { in.Delim('[') - if v107 == nil { + if v124 == nil { if !in.IsDelim(']') { - v107 = make([]structs.CollegePlayer, 0, 0) + v124 = make([]structs.CollegePlayer, 0, 0) } else { - v107 = []structs.CollegePlayer{} + v124 = []structs.CollegePlayer{} } } else { - v107 = (v107)[:0] + v124 = (v124)[:0] } for !in.IsDelim(']') { - var v108 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v108) - v107 = append(v107, v108) + var v125 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v125) + v124 = append(v124, v125) in.WantComma() } in.Delim(']') } - (out.CollegeRosterMap)[key] = v107 + (out.CollegeRosterMap)[key] = v124 in.WantComma() } in.Delim('}') @@ -18325,9 +19121,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.CollegeStandings = (out.CollegeStandings)[:0] } for !in.IsDelim(']') { - var v109 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v109) - out.CollegeStandings = append(out.CollegeStandings, v109) + var v126 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v126) + out.CollegeStandings = append(out.CollegeStandings, v126) in.WantComma() } in.Delim(']') @@ -18348,9 +19144,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.AllCollegeGames = (out.AllCollegeGames)[:0] } for !in.IsDelim(']') { - var v110 structs.CollegeGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v110) - out.AllCollegeGames = append(out.AllCollegeGames, v110) + var v127 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v127) + out.AllCollegeGames = append(out.AllCollegeGames, v127) in.WantComma() } in.Delim(']') @@ -18371,9 +19167,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.OfficialPolls = (out.OfficialPolls)[:0] } for !in.IsDelim(']') { - var v111 structs.CollegePollOfficial - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v111) - out.OfficialPolls = append(out.OfficialPolls, v111) + var v128 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v128) + out.OfficialPolls = append(out.OfficialPolls, v128) in.WantComma() } in.Delim(']') @@ -18394,9 +19190,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopCFBPassers = (out.TopCFBPassers)[:0] } for !in.IsDelim(']') { - var v112 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v112) - out.TopCFBPassers = append(out.TopCFBPassers, v112) + var v129 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v129) + out.TopCFBPassers = append(out.TopCFBPassers, v129) in.WantComma() } in.Delim(']') @@ -18417,9 +19213,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopCFBRushers = (out.TopCFBRushers)[:0] } for !in.IsDelim(']') { - var v113 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v113) - out.TopCFBRushers = append(out.TopCFBRushers, v113) + var v130 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v130) + out.TopCFBRushers = append(out.TopCFBRushers, v130) in.WantComma() } in.Delim(']') @@ -18440,9 +19236,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopCFBReceivers = (out.TopCFBReceivers)[:0] } for !in.IsDelim(']') { - var v114 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v114) - out.TopCFBReceivers = append(out.TopCFBReceivers, v114) + var v131 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v131) + out.TopCFBReceivers = append(out.TopCFBReceivers, v131) in.WantComma() } in.Delim(']') @@ -18463,9 +19259,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.PortalPlayers = (out.PortalPlayers)[:0] } for !in.IsDelim(']') { - var v115 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v115) - out.PortalPlayers = append(out.PortalPlayers, v115) + var v132 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v132) + out.PortalPlayers = append(out.PortalPlayers, v132) in.WantComma() } in.Delim(']') @@ -18486,9 +19282,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] } for !in.IsDelim(']') { - var v116 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v116) - out.CollegeInjuryReport = append(out.CollegeInjuryReport, v116) + var v133 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v133) + out.CollegeInjuryReport = append(out.CollegeInjuryReport, v133) in.WantComma() } in.Delim(']') @@ -18509,9 +19305,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.CollegeNotifications = (out.CollegeNotifications)[:0] } for !in.IsDelim(']') { - var v117 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &v117) - out.CollegeNotifications = append(out.CollegeNotifications, v117) + var v134 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in, &v134) + out.CollegeNotifications = append(out.CollegeNotifications, v134) in.WantComma() } in.Delim(']') @@ -18534,9 +19330,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.ProNotifications = (out.ProNotifications)[:0] } for !in.IsDelim(']') { - var v118 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &v118) - out.ProNotifications = append(out.ProNotifications, v118) + var v135 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in, &v135) + out.ProNotifications = append(out.ProNotifications, v135) in.WantComma() } in.Delim(']') @@ -18557,9 +19353,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.ProStandings = (out.ProStandings)[:0] } for !in.IsDelim(']') { - var v119 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v119) - out.ProStandings = append(out.ProStandings, v119) + var v136 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v136) + out.ProStandings = append(out.ProStandings, v136) in.WantComma() } in.Delim(']') @@ -18580,15 +19376,15 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.AllProGames = (out.AllProGames)[:0] } for !in.IsDelim(']') { - var v120 structs.NFLGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in, &v120) - out.AllProGames = append(out.AllProGames, v120) + var v137 structs.NFLGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs46(in, &v137) + out.AllProGames = append(out.AllProGames, v137) in.WantComma() } in.Delim(']') } case "PollSubmission": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &out.PollSubmission) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &out.PollSubmission) case "TopNFLPassers": if in.IsNull() { in.Skip() @@ -18605,9 +19401,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopNFLPassers = (out.TopNFLPassers)[:0] } for !in.IsDelim(']') { - var v121 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v121) - out.TopNFLPassers = append(out.TopNFLPassers, v121) + var v138 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v138) + out.TopNFLPassers = append(out.TopNFLPassers, v138) in.WantComma() } in.Delim(']') @@ -18628,9 +19424,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopNFLRushers = (out.TopNFLRushers)[:0] } for !in.IsDelim(']') { - var v122 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v122) - out.TopNFLRushers = append(out.TopNFLRushers, v122) + var v139 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v139) + out.TopNFLRushers = append(out.TopNFLRushers, v139) in.WantComma() } in.Delim(']') @@ -18651,9 +19447,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.TopNFLReceivers = (out.TopNFLReceivers)[:0] } for !in.IsDelim(']') { - var v123 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v123) - out.TopNFLReceivers = append(out.TopNFLReceivers, v123) + var v140 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v140) + out.TopNFLReceivers = append(out.TopNFLReceivers, v140) in.WantComma() } in.Delim(']') @@ -18667,30 +19463,30 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v124 []structs.NFLPlayer + var v141 []structs.NFLPlayer if in.IsNull() { in.Skip() - v124 = nil + v141 = nil } else { in.Delim('[') - if v124 == nil { + if v141 == nil { if !in.IsDelim(']') { - v124 = make([]structs.NFLPlayer, 0, 0) + v141 = make([]structs.NFLPlayer, 0, 0) } else { - v124 = []structs.NFLPlayer{} + v141 = []structs.NFLPlayer{} } } else { - v124 = (v124)[:0] + v141 = (v141)[:0] } for !in.IsDelim(']') { - var v125 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v125) - v124 = append(v124, v125) + var v142 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v142) + v141 = append(v141, v142) in.WantComma() } in.Delim(']') } - (out.ProRosterMap)[key] = v124 + (out.ProRosterMap)[key] = v141 in.WantComma() } in.Delim('}') @@ -18711,9 +19507,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.ProInjuryReport = (out.ProInjuryReport)[:0] } for !in.IsDelim(']') { - var v126 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v126) - out.ProInjuryReport = append(out.ProInjuryReport, v126) + var v143 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v143) + out.ProInjuryReport = append(out.ProInjuryReport, v143) in.WantComma() } in.Delim(']') @@ -18734,9 +19530,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] } for !in.IsDelim(']') { - var v127 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v127) - out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v127) + var v144 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v144) + out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v144) in.WantComma() } in.Delim(']') @@ -18750,9 +19546,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v128 structs.NFLCapsheet - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v128) - (out.CapsheetMap)[key] = v128 + var v145 structs.NFLCapsheet + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v145) + (out.CapsheetMap)[key] = v145 in.WantComma() } in.Delim('}') @@ -18773,9 +19569,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.RetiredPlayers = (out.RetiredPlayers)[:0] } for !in.IsDelim(']') { - var v129 structs.NFLRetiredPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in, &v129) - out.RetiredPlayers = append(out.RetiredPlayers, v129) + var v146 structs.NFLRetiredPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs47(in, &v146) + out.RetiredPlayers = append(out.RetiredPlayers, v146) in.WantComma() } in.Delim(']') @@ -18806,24 +19602,24 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v130First := true - for v130Name, v130Value := range in.CollegeRosterMap { - if v130First { - v130First = false + v147First := true + for v147Name, v147Value := range in.CollegeRosterMap { + if v147First { + v147First = false } else { out.RawByte(',') } - out.UintStr(uint(v130Name)) + out.UintStr(uint(v147Name)) out.RawByte(':') - if v130Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v147Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v131, v132 := range v130Value { - if v131 > 0 { + for v148, v149 := range v147Value { + if v148 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v132) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v149) } out.RawByte(']') } @@ -18838,11 +19634,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v133, v134 := range in.CollegeStandings { - if v133 > 0 { + for v150, v151 := range in.CollegeStandings { + if v150 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v134) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v151) } out.RawByte(']') } @@ -18854,11 +19650,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v135, v136 := range in.AllCollegeGames { - if v135 > 0 { + for v152, v153 := range in.AllCollegeGames { + if v152 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v136) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v153) } out.RawByte(']') } @@ -18870,11 +19666,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v137, v138 := range in.OfficialPolls { - if v137 > 0 { + for v154, v155 := range in.OfficialPolls { + if v154 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v138) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v155) } out.RawByte(']') } @@ -18886,11 +19682,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v139, v140 := range in.TopCFBPassers { - if v139 > 0 { + for v156, v157 := range in.TopCFBPassers { + if v156 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v140) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v157) } out.RawByte(']') } @@ -18902,11 +19698,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v141, v142 := range in.TopCFBRushers { - if v141 > 0 { + for v158, v159 := range in.TopCFBRushers { + if v158 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v142) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v159) } out.RawByte(']') } @@ -18918,11 +19714,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v143, v144 := range in.TopCFBReceivers { - if v143 > 0 { + for v160, v161 := range in.TopCFBReceivers { + if v160 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v144) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v161) } out.RawByte(']') } @@ -18934,11 +19730,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v145, v146 := range in.PortalPlayers { - if v145 > 0 { + for v162, v163 := range in.PortalPlayers { + if v162 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v146) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v163) } out.RawByte(']') } @@ -18950,11 +19746,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v147, v148 := range in.CollegeInjuryReport { - if v147 > 0 { + for v164, v165 := range in.CollegeInjuryReport { + if v164 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v148) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v165) } out.RawByte(']') } @@ -18966,11 +19762,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v149, v150 := range in.CollegeNotifications { - if v149 > 0 { + for v166, v167 := range in.CollegeNotifications { + if v166 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, v150) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out, v167) } out.RawByte(']') } @@ -18987,11 +19783,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v151, v152 := range in.ProNotifications { - if v151 > 0 { + for v168, v169 := range in.ProNotifications { + if v168 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, v152) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out, v169) } out.RawByte(']') } @@ -19003,11 +19799,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v153, v154 := range in.ProStandings { - if v153 > 0 { + for v170, v171 := range in.ProStandings { + if v170 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v154) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v171) } out.RawByte(']') } @@ -19019,11 +19815,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v155, v156 := range in.AllProGames { - if v155 > 0 { + for v172, v173 := range in.AllProGames { + if v172 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out, v156) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs46(out, v173) } out.RawByte(']') } @@ -19031,7 +19827,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer { const prefix string = ",\"PollSubmission\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, in.PollSubmission) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, in.PollSubmission) } { const prefix string = ",\"TopNFLPassers\":" @@ -19040,11 +19836,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v157, v158 := range in.TopNFLPassers { - if v157 > 0 { + for v174, v175 := range in.TopNFLPassers { + if v174 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v158) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v175) } out.RawByte(']') } @@ -19056,11 +19852,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v159, v160 := range in.TopNFLRushers { - if v159 > 0 { + for v176, v177 := range in.TopNFLRushers { + if v176 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v160) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v177) } out.RawByte(']') } @@ -19072,11 +19868,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v161, v162 := range in.TopNFLReceivers { - if v161 > 0 { + for v178, v179 := range in.TopNFLReceivers { + if v178 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v162) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v179) } out.RawByte(']') } @@ -19088,24 +19884,24 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v163First := true - for v163Name, v163Value := range in.ProRosterMap { - if v163First { - v163First = false + v180First := true + for v180Name, v180Value := range in.ProRosterMap { + if v180First { + v180First = false } else { out.RawByte(',') } - out.UintStr(uint(v163Name)) + out.UintStr(uint(v180Name)) out.RawByte(':') - if v163Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v180Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v164, v165 := range v163Value { - if v164 > 0 { + for v181, v182 := range v180Value { + if v181 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v165) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v182) } out.RawByte(']') } @@ -19120,11 +19916,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v166, v167 := range in.ProInjuryReport { - if v166 > 0 { + for v183, v184 := range in.ProInjuryReport { + if v183 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v167) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v184) } out.RawByte(']') } @@ -19136,11 +19932,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v168, v169 := range in.PracticeSquadPlayers { - if v168 > 0 { + for v185, v186 := range in.PracticeSquadPlayers { + if v185 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v169) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v186) } out.RawByte(']') } @@ -19152,16 +19948,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v170First := true - for v170Name, v170Value := range in.CapsheetMap { - if v170First { - v170First = false + v187First := true + for v187Name, v187Value := range in.CapsheetMap { + if v187First { + v187First = false } else { out.RawByte(',') } - out.UintStr(uint(v170Name)) + out.UintStr(uint(v187Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v170Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v187Value) } out.RawByte('}') } @@ -19173,11 +19969,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v171, v172 := range in.RetiredPlayers { - if v171 > 0 { + for v188, v189 := range in.RetiredPlayers { + if v188 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out, v172) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs47(out, v189) } out.RawByte(']') } @@ -19208,7 +20004,7 @@ func (v *BootstrapDataLanding) UnmarshalJSON(data []byte) error { func (v *BootstrapDataLanding) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, out *structs.NFLRetiredPlayer) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs47(in *jlexer.Lexer, out *structs.NFLRetiredPlayer) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -19303,9 +20099,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, o out.Stats = (out.Stats)[:0] } for !in.IsDelim(']') { - var v173 structs.NFLPlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v173) - out.Stats = append(out.Stats, v173) + var v190 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v190) + out.Stats = append(out.Stats, v190) in.WantComma() } in.Delim(']') @@ -19330,9 +20126,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, o out.Offers = (out.Offers)[:0] } for !in.IsDelim(']') { - var v174 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v174) - out.Offers = append(out.Offers, v174) + var v191 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v191) + out.Offers = append(out.Offers, v191) in.WantComma() } in.Delim(']') @@ -19353,9 +20149,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, o out.WaiverOffers = (out.WaiverOffers)[:0] } for !in.IsDelim(']') { - var v175 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v175) - out.WaiverOffers = append(out.WaiverOffers, v175) + var v192 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v192) + out.WaiverOffers = append(out.WaiverOffers, v192) in.WantComma() } in.Delim(']') @@ -19376,9 +20172,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, o out.Extensions = (out.Extensions)[:0] } for !in.IsDelim(']') { - var v176 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v176) - out.Extensions = append(out.Extensions, v176) + var v193 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v193) + out.Extensions = append(out.Extensions, v193) in.WantComma() } in.Delim(']') @@ -19523,7 +20319,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer, in structs.NFLRetiredPlayer) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs47(out *jwriter.Writer, in structs.NFLRetiredPlayer) { out.RawByte('{') first := true _ = first @@ -19684,11 +20480,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v177, v178 := range in.Stats { - if v177 > 0 { + for v194, v195 := range in.Stats { + if v194 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v178) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v195) } out.RawByte(']') } @@ -19710,11 +20506,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v179, v180 := range in.Offers { - if v179 > 0 { + for v196, v197 := range in.Offers { + if v196 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v180) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v197) } out.RawByte(']') } @@ -19726,11 +20522,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v181, v182 := range in.WaiverOffers { - if v181 > 0 { + for v198, v199 := range in.WaiverOffers { + if v198 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v182) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v199) } out.RawByte(']') } @@ -19742,11 +20538,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v183, v184 := range in.Extensions { - if v183 > 0 { + for v200, v201 := range in.Extensions { + if v200 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v184) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v201) } out.RawByte(']') } @@ -20047,7 +20843,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in *jlexer.Lexer, out *structs.NFLGame) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs46(in *jlexer.Lexer, out *structs.NFLGame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -20184,7 +20980,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out *jwriter.Writer, in structs.NFLGame) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs46(out *jwriter.Writer, in structs.NFLGame) { out.RawByte('{') first := true _ = first @@ -20429,7 +21225,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, out *structs.Notification) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in *jlexer.Lexer, out *structs.Notification) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -20484,7 +21280,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out *jwriter.Writer, in structs.Notification) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out *jwriter.Writer, in structs.Notification) { out.RawByte('{') first := true _ = first @@ -20568,9 +21364,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v185 structs.CollegeGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v185) - (out.CollegeGameplanMap)[key] = v185 + var v202 structs.CollegeGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v202) + (out.CollegeGameplanMap)[key] = v202 in.WantComma() } in.Delim('}') @@ -20586,9 +21382,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v186 structs.CollegeTeamDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v186) - (out.CollegeDepthChartMap)[key] = v186 + var v203 structs.CollegeTeamDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v203) + (out.CollegeDepthChartMap)[key] = v203 in.WantComma() } in.Delim('}') @@ -20602,9 +21398,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v187 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v187) - (out.NFLGameplanMap)[key] = v187 + var v204 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v204) + (out.NFLGameplanMap)[key] = v204 in.WantComma() } in.Delim('}') @@ -20620,9 +21416,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v188 structs.NFLDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v188) - (out.NFLDepthChartMap)[key] = v188 + var v205 structs.NFLDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v205) + (out.NFLDepthChartMap)[key] = v205 in.WantComma() } in.Delim('}') @@ -20648,16 +21444,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v189First := true - for v189Name, v189Value := range in.CollegeGameplanMap { - if v189First { - v189First = false + v206First := true + for v206Name, v206Value := range in.CollegeGameplanMap { + if v206First { + v206First = false } else { out.RawByte(',') } - out.UintStr(uint(v189Name)) + out.UintStr(uint(v206Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v189Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v206Value) } out.RawByte('}') } @@ -20674,16 +21470,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v190First := true - for v190Name, v190Value := range in.CollegeDepthChartMap { - if v190First { - v190First = false + v207First := true + for v207Name, v207Value := range in.CollegeDepthChartMap { + if v207First { + v207First = false } else { out.RawByte(',') } - out.UintStr(uint(v190Name)) + out.UintStr(uint(v207Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v190Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v207Value) } out.RawByte('}') } @@ -20695,16 +21491,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v191First := true - for v191Name, v191Value := range in.NFLGameplanMap { - if v191First { - v191First = false + v208First := true + for v208Name, v208Value := range in.NFLGameplanMap { + if v208First { + v208First = false } else { out.RawByte(',') } - out.UintStr(uint(v191Name)) + out.UintStr(uint(v208Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v191Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v208Value) } out.RawByte('}') } @@ -20721,16 +21517,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v192First := true - for v192Name, v192Value := range in.NFLDepthChartMap { - if v192First { - v192First = false + v209First := true + for v209Name, v209Value := range in.NFLDepthChartMap { + if v209First { + v209First = false } else { out.RawByte(',') } - out.UintStr(uint(v192Name)) + out.UintStr(uint(v209Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v192Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v209Value) } out.RawByte('}') } @@ -20796,9 +21592,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.FreeAgents = (out.FreeAgents)[:0] } for !in.IsDelim(']') { - var v193 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v193) - out.FreeAgents = append(out.FreeAgents, v193) + var v210 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v210) + out.FreeAgents = append(out.FreeAgents, v210) in.WantComma() } in.Delim(']') @@ -20819,9 +21615,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.WaiverPlayers = (out.WaiverPlayers)[:0] } for !in.IsDelim(']') { - var v194 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v194) - out.WaiverPlayers = append(out.WaiverPlayers, v194) + var v211 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v211) + out.WaiverPlayers = append(out.WaiverPlayers, v211) in.WantComma() } in.Delim(']') @@ -20842,9 +21638,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.FreeAgentOffers = (out.FreeAgentOffers)[:0] } for !in.IsDelim(']') { - var v195 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v195) - out.FreeAgentOffers = append(out.FreeAgentOffers, v195) + var v212 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v212) + out.FreeAgentOffers = append(out.FreeAgentOffers, v212) in.WantComma() } in.Delim(']') @@ -20865,9 +21661,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.WaiverOffers = (out.WaiverOffers)[:0] } for !in.IsDelim(']') { - var v196 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v196) - out.WaiverOffers = append(out.WaiverOffers, v196) + var v213 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v213) + out.WaiverOffers = append(out.WaiverOffers, v213) in.WantComma() } in.Delim(']') @@ -20893,11 +21689,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v197, v198 := range in.FreeAgents { - if v197 > 0 { + for v214, v215 := range in.FreeAgents { + if v214 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v198) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v215) } out.RawByte(']') } @@ -20909,11 +21705,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v199, v200 := range in.WaiverPlayers { - if v199 > 0 { + for v216, v217 := range in.WaiverPlayers { + if v216 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v200) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v217) } out.RawByte(']') } @@ -20925,11 +21721,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v201, v202 := range in.FreeAgentOffers { - if v201 > 0 { + for v218, v219 := range in.FreeAgentOffers { + if v218 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v202) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v219) } out.RawByte(']') } @@ -20941,11 +21737,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v203, v204 := range in.WaiverOffers { - if v203 > 0 { + for v220, v221 := range in.WaiverOffers { + if v220 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v204) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v221) } out.RawByte(']') } @@ -21011,9 +21807,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.NFLDraftees = (out.NFLDraftees)[:0] } for !in.IsDelim(']') { - var v205 models.NFLDraftee - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v205) - out.NFLDraftees = append(out.NFLDraftees, v205) + var v222 models.NFLDraftee + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v222) + out.NFLDraftees = append(out.NFLDraftees, v222) in.WantComma() } in.Delim(']') @@ -21027,9 +21823,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v206 models.NFLWarRoom - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in, &v206) - (out.NFLWarRoomMap)[key] = v206 + var v223 models.NFLWarRoom + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in, &v223) + (out.NFLWarRoomMap)[key] = v223 in.WantComma() } in.Delim('}') @@ -21043,9 +21839,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v207 models.ScoutingProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v207) - (out.DraftScoutingProfileMap)[key] = v207 + var v224 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v224) + (out.DraftScoutingProfileMap)[key] = v224 in.WantComma() } in.Delim('}') @@ -21071,11 +21867,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v208, v209 := range in.NFLDraftees { - if v208 > 0 { + for v225, v226 := range in.NFLDraftees { + if v225 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v209) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v226) } out.RawByte(']') } @@ -21087,16 +21883,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v210First := true - for v210Name, v210Value := range in.NFLWarRoomMap { - if v210First { - v210First = false + v227First := true + for v227Name, v227Value := range in.NFLWarRoomMap { + if v227First { + v227First = false } else { out.RawByte(',') } - out.UintStr(uint(v210Name)) + out.UintStr(uint(v227Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out, v210Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out, v227Value) } out.RawByte('}') } @@ -21108,16 +21904,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v211First := true - for v211Name, v211Value := range in.DraftScoutingProfileMap { - if v211First { - v211First = false + v228First := true + for v228Name, v228Value := range in.DraftScoutingProfileMap { + if v228First { + v228First = false } else { out.RawByte(',') } - out.UintStr(uint(v211Name)) + out.UintStr(uint(v228Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v211Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v228Value) } out.RawByte('}') } @@ -21370,9 +22166,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in *jlexer.Lexer, out out.DraftPicks = (out.DraftPicks)[:0] } for !in.IsDelim(']') { - var v212 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v212) - out.DraftPicks = append(out.DraftPicks, v212) + var v229 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v229) + out.DraftPicks = append(out.DraftPicks, v229) in.WantComma() } in.Delim(']') @@ -21393,9 +22189,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in *jlexer.Lexer, out out.ScoutProfiles = (out.ScoutProfiles)[:0] } for !in.IsDelim(']') { - var v213 models.ScoutingProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v213) - out.ScoutProfiles = append(out.ScoutProfiles, v213) + var v230 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v230) + out.ScoutProfiles = append(out.ScoutProfiles, v230) in.WantComma() } in.Delim(']') @@ -21463,11 +22259,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v214, v215 := range in.DraftPicks { - if v214 > 0 { + for v231, v232 := range in.DraftPicks { + if v231 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v215) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v232) } out.RawByte(']') } @@ -21479,11 +22275,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v216, v217 := range in.ScoutProfiles { - if v216 > 0 { + for v233, v234 := range in.ScoutProfiles { + if v233 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v217) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v234) } out.RawByte(']') } diff --git a/managers/DraftManager.go b/managers/DraftManager.go index 09db702c..f92dc6c3 100644 --- a/managers/DraftManager.go +++ b/managers/DraftManager.go @@ -47,6 +47,22 @@ func GetDraftPickByDraftPickID(DraftPickID string) structs.NFLDraftPick { return pick } +func GetAllRelevantNFLDraftPicks() []structs.NFLDraftPick { + db := dbprovider.GetInstance().GetDB() + + ts := GetTimestamp() + + seasonID := strconv.Itoa(int(ts.NFLSeasonID)) + + seasonIDPlusFive := strconv.Itoa(int(ts.NFLSeasonID + 5)) + + draftPicks := []structs.NFLDraftPick{} + + db.Order("season_id asc").Order("draft_number asc").Where("season_id >= ? AND season_id <= ?", seasonID, seasonIDPlusFive).Find(&draftPicks) + + return draftPicks +} + func GetAllCurrentSeasonDraftPicks() []structs.NFLDraftPick { db := dbprovider.GetInstance().GetDB() @@ -112,7 +128,6 @@ func GetNFLWarRoomByTeamID(TeamID string) models.NFLWarRoom { return warRoom } - func GetNFLWarRooms() []models.NFLWarRoom { db := dbprovider.GetInstance().GetDB() diff --git a/managers/MapHelper.go b/managers/MapHelper.go index c84dc18a..e99be041 100644 --- a/managers/MapHelper.go +++ b/managers/MapHelper.go @@ -268,7 +268,6 @@ func MakePromiseMapByTeamID(profiles []structs.CollegePromise) map[uint][]struct return playerMap } - func MakeNFLWarRoomMap(warRooms []models.NFLWarRoom) map[uint]models.NFLWarRoom { warRoomMap := make(map[uint]models.NFLWarRoom) @@ -328,3 +327,13 @@ func MakeNFLGameplanMap(gameplans []structs.NFLGameplan) map[uint]structs.NFLGam return gamesMap } + +func MakeNFLTradePreferencesMap(tradePreferences []structs.NFLTradePreferences) map[uint]structs.NFLTradePreferences { + preferencesMap := make(map[uint]structs.NFLTradePreferences) + + for _, c := range tradePreferences { + preferencesMap[uint(c.NFLTeamID)] = c + } + + return preferencesMap +} diff --git a/managers/PollManager.go b/managers/PollManager.go index 6925b06e..13922fcf 100644 --- a/managers/PollManager.go +++ b/managers/PollManager.go @@ -265,6 +265,18 @@ func CreatePoll(dto structs.CollegePollSubmission) structs.CollegePollSubmission return dto } +func GetAllOfficialPolls() []structs.CollegePollOfficial { + db := dbprovider.GetInstance().GetDB() + officialPoll := []structs.CollegePollOfficial{} + + err := db.Find(&officialPoll).Error + if err != nil { + return []structs.CollegePollOfficial{} + } + + return officialPoll +} + func GetOfficialPollBySeasonID(seasonID string) []structs.CollegePollOfficial { db := dbprovider.GetInstance().GetDB() officialPoll := []structs.CollegePollOfficial{} diff --git a/managers/TradeManager.go b/managers/TradeManager.go index 8ba85e18..d0e11d6d 100644 --- a/managers/TradeManager.go +++ b/managers/TradeManager.go @@ -91,6 +91,16 @@ func GetOnlyTradeProposalByProposalID(proposalID string) structs.NFLTradeProposa return proposal } +func GetTradePreferencesMap() map[uint]structs.NFLTradePreferences { + db := dbprovider.GetInstance().GetDB() + + preferences := []structs.NFLTradePreferences{} + + db.Find(&preferences) + + return MakeNFLTradePreferencesMap(preferences) +} + func GetTradePreferencesByTeamID(TeamID string) structs.NFLTradePreferences { db := dbprovider.GetInstance().GetDB() diff --git a/ts/footballModels.ts b/ts/footballModels.ts index be399bd5..14f0f76c 100644 --- a/ts/footballModels.ts +++ b/ts/footballModels.ts @@ -166,6 +166,7 @@ export class NFLGameplan { PassDeep: number; PassScreen: number; PassPAShort: number; + PassPAMedium: number; PassPALong: number; PassPADeep: number; LeftVsRight: number; @@ -308,6 +309,7 @@ export class NFLGameplan { this.PassDeep = source["PassDeep"]; this.PassScreen = source["PassScreen"]; this.PassPAShort = source["PassPAShort"]; + this.PassPAMedium = source["PassPAMedium"]; this.PassPALong = source["PassPALong"]; this.PassPADeep = source["PassPADeep"]; this.LeftVsRight = source["LeftVsRight"]; @@ -1965,224 +1967,6 @@ export class NFLTeam { return a; } } -export class Notification { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - League: string; - NotificationType: string; - Message: string; - Subject: string; - IsRead: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.TeamID = source["TeamID"]; - this.League = source["League"]; - this.NotificationType = source["NotificationType"]; - this.Message = source["Message"]; - this.Subject = source["Subject"]; - this.IsRead = source["IsRead"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class HistoricCollegePlayer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PreviousTeamID: number; - PreviousTeam: string; - Height: number; - Weight: number; - Age: number; - Stars: number; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - Progression: number; - Discipline: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - IsInjured: boolean; - InjuryName: string; - InjuryType: string; - WeeksOfRecovery: number; - InjuryReserve: boolean; - PrimeAge: number; - Clutch: number; - Shotgun: number; - PositionTwo: string; - ArchetypeTwo: string; - RelativeID: number; - RelativeType: number; - Notes: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - HighSchool: string; - City: string; - State: string; - Year: number; - IsRedshirt: boolean; - IsRedshirting: boolean; - HasGraduated: boolean; - TransferStatus: number; - TransferLikeliness: string; - Stats: CollegePlayerStats[]; - SeasonStats: CollegePlayerSeasonStats; - HasProgressed: boolean; - WillDeclare: boolean; - LegacyID: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} export class CollegeStandings { ID: number; CreatedAt: Time; @@ -2944,6 +2728,7 @@ export class CollegeGameplan { PassDeep: number; PassScreen: number; PassPAShort: number; + PassPAMedium: number; PassPALong: number; PassPADeep: number; LeftVsRight: number; @@ -3086,6 +2871,7 @@ export class CollegeGameplan { this.PassDeep = source["PassDeep"]; this.PassScreen = source["PassScreen"]; this.PassPAShort = source["PassPAShort"]; + this.PassPAMedium = source["PassPAMedium"]; this.PassPALong = source["PassPALong"]; this.PassPADeep = source["PassPADeep"]; this.LeftVsRight = source["LeftVsRight"]; @@ -4499,44 +4285,14 @@ export class CollegeTeam { return a; } } -export class BootstrapData { - CollegeTeam: CollegeTeam; +export class BootstrapDataTeams { AllCollegeTeams: CollegeTeam[]; - CollegeRosterMap: {[key: uint]: CollegePlayer[]}; - HistoricCollegePlayers: HistoricCollegePlayer[]; - TopCFBPassers: CollegePlayer[]; - TopCFBRushers: CollegePlayer[]; - TopCFBReceivers: CollegePlayer[]; - PortalPlayers: CollegePlayer[]; - CollegeInjuryReport: CollegePlayer[]; - CollegeNotifications: Notification[]; - CollegeGameplan: CollegeGameplan; - CollegeDepthChart: CollegeTeamDepthChart; - ProTeam: NFLTeam; AllProTeams: NFLTeam[]; - ProNotifications: Notification[]; - NFLGameplan: NFLGameplan; - NFLDepthChart: NFLDepthChart; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); this.AllCollegeTeams = this.convertValues(source["AllCollegeTeams"], CollegeTeam); - this.CollegeRosterMap = source["CollegeRosterMap"]; - this.HistoricCollegePlayers = this.convertValues(source["HistoricCollegePlayers"], HistoricCollegePlayer); - this.TopCFBPassers = this.convertValues(source["TopCFBPassers"], CollegePlayer); - this.TopCFBRushers = this.convertValues(source["TopCFBRushers"], CollegePlayer); - this.TopCFBReceivers = this.convertValues(source["TopCFBReceivers"], CollegePlayer); - this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); - this.CollegeInjuryReport = this.convertValues(source["CollegeInjuryReport"], CollegePlayer); - this.CollegeNotifications = this.convertValues(source["CollegeNotifications"], Notification); - this.CollegeGameplan = this.convertValues(source["CollegeGameplan"], CollegeGameplan); - this.CollegeDepthChart = this.convertValues(source["CollegeDepthChart"], CollegeTeamDepthChart); - this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); - this.ProNotifications = this.convertValues(source["ProNotifications"], Notification); - this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); - this.NFLDepthChart = this.convertValues(source["NFLDepthChart"], NFLDepthChart); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -4769,104 +4525,126 @@ export class NFLRetiredPlayer { return a; } } -export class NFLGame { +export class CollegePollSubmission { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: Time; + DeletedAt: DeletedAt; + Username: string; + SeasonID: number; WeekID: number; Week: number; - SeasonID: number; - HomeTeamID: number; - HomeTeam: string; - HomeTeamCoach: string; - HomeTeamWin: boolean; - AwayTeamID: number; - AwayTeam: string; - AwayTeamCoach: string; - AwayTeamWin: boolean; - MVP: string; - HomeTeamScore: number; - AwayTeamScore: number; - TimeSlot: string; - StadiumID: number; - Stadium: string; - City: string; - State: string; - Region: string; - LowTemp: number; - HighTemp: number; - GameTemp: number; - Cloud: string; - Precip: string; - WindSpeed: number; - WindCategory: string; - IsNeutral: boolean; - IsDomed: boolean; - IsNightGame: boolean; - IsPlayoffGame: boolean; - IsRivalryGame: boolean; - IsConference: boolean; - IsDivisional: boolean; - IsConferenceChampionship: boolean; - IsSuperBowl: boolean; - GameComplete: boolean; - IsPreseasonGame: boolean; - GameTitle: string; - NextGameID: number; - NextGameHOA: string; - HomePreviousBye: boolean; - AwayPreviousBye: boolean; + Rank1: string; + Rank1ID: number; + Rank2: string; + Rank2ID: number; + Rank3: string; + Rank3ID: number; + Rank4: string; + Rank4ID: number; + Rank5: string; + Rank5ID: number; + Rank6: string; + Rank6ID: number; + Rank7: string; + Rank7ID: number; + Rank8: string; + Rank8ID: number; + Rank9: string; + Rank9ID: number; + Rank10: string; + Rank10ID: number; + Rank11: string; + Rank11ID: number; + Rank12: string; + Rank12ID: number; + Rank13: string; + Rank13ID: number; + Rank14: string; + Rank14ID: number; + Rank15: string; + Rank15ID: number; + Rank16: string; + Rank16ID: number; + Rank17: string; + Rank17ID: number; + Rank18: string; + Rank18ID: number; + Rank19: string; + Rank19ID: number; + Rank20: string; + Rank20ID: number; + Rank21: string; + Rank21ID: number; + Rank22: string; + Rank22ID: number; + Rank23: string; + Rank23ID: number; + Rank24: string; + Rank24ID: number; + Rank25: string; + Rank25ID: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.Username = source["Username"]; + this.SeasonID = source["SeasonID"]; this.WeekID = source["WeekID"]; this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; - this.HomeTeamID = source["HomeTeamID"]; - this.HomeTeam = source["HomeTeam"]; - this.HomeTeamCoach = source["HomeTeamCoach"]; - this.HomeTeamWin = source["HomeTeamWin"]; - this.AwayTeamID = source["AwayTeamID"]; - this.AwayTeam = source["AwayTeam"]; - this.AwayTeamCoach = source["AwayTeamCoach"]; - this.AwayTeamWin = source["AwayTeamWin"]; - this.MVP = source["MVP"]; - this.HomeTeamScore = source["HomeTeamScore"]; - this.AwayTeamScore = source["AwayTeamScore"]; - this.TimeSlot = source["TimeSlot"]; - this.StadiumID = source["StadiumID"]; - this.Stadium = source["Stadium"]; - this.City = source["City"]; - this.State = source["State"]; - this.Region = source["Region"]; - this.LowTemp = source["LowTemp"]; - this.HighTemp = source["HighTemp"]; - this.GameTemp = source["GameTemp"]; - this.Cloud = source["Cloud"]; - this.Precip = source["Precip"]; - this.WindSpeed = source["WindSpeed"]; - this.WindCategory = source["WindCategory"]; - this.IsNeutral = source["IsNeutral"]; - this.IsDomed = source["IsDomed"]; - this.IsNightGame = source["IsNightGame"]; - this.IsPlayoffGame = source["IsPlayoffGame"]; - this.IsRivalryGame = source["IsRivalryGame"]; - this.IsConference = source["IsConference"]; - this.IsDivisional = source["IsDivisional"]; - this.IsConferenceChampionship = source["IsConferenceChampionship"]; - this.IsSuperBowl = source["IsSuperBowl"]; - this.GameComplete = source["GameComplete"]; - this.IsPreseasonGame = source["IsPreseasonGame"]; - this.GameTitle = source["GameTitle"]; - this.NextGameID = source["NextGameID"]; - this.NextGameHOA = source["NextGameHOA"]; - this.HomePreviousBye = source["HomePreviousBye"]; - this.AwayPreviousBye = source["AwayPreviousBye"]; + this.Rank1 = source["Rank1"]; + this.Rank1ID = source["Rank1ID"]; + this.Rank2 = source["Rank2"]; + this.Rank2ID = source["Rank2ID"]; + this.Rank3 = source["Rank3"]; + this.Rank3ID = source["Rank3ID"]; + this.Rank4 = source["Rank4"]; + this.Rank4ID = source["Rank4ID"]; + this.Rank5 = source["Rank5"]; + this.Rank5ID = source["Rank5ID"]; + this.Rank6 = source["Rank6"]; + this.Rank6ID = source["Rank6ID"]; + this.Rank7 = source["Rank7"]; + this.Rank7ID = source["Rank7ID"]; + this.Rank8 = source["Rank8"]; + this.Rank8ID = source["Rank8ID"]; + this.Rank9 = source["Rank9"]; + this.Rank9ID = source["Rank9ID"]; + this.Rank10 = source["Rank10"]; + this.Rank10ID = source["Rank10ID"]; + this.Rank11 = source["Rank11"]; + this.Rank11ID = source["Rank11ID"]; + this.Rank12 = source["Rank12"]; + this.Rank12ID = source["Rank12ID"]; + this.Rank13 = source["Rank13"]; + this.Rank13ID = source["Rank13ID"]; + this.Rank14 = source["Rank14"]; + this.Rank14ID = source["Rank14ID"]; + this.Rank15 = source["Rank15"]; + this.Rank15ID = source["Rank15ID"]; + this.Rank16 = source["Rank16"]; + this.Rank16ID = source["Rank16ID"]; + this.Rank17 = source["Rank17"]; + this.Rank17ID = source["Rank17ID"]; + this.Rank18 = source["Rank18"]; + this.Rank18ID = source["Rank18ID"]; + this.Rank19 = source["Rank19"]; + this.Rank19ID = source["Rank19ID"]; + this.Rank20 = source["Rank20"]; + this.Rank20ID = source["Rank20ID"]; + this.Rank21 = source["Rank21"]; + this.Rank21ID = source["Rank21ID"]; + this.Rank22 = source["Rank22"]; + this.Rank22ID = source["Rank22ID"]; + this.Rank23 = source["Rank23"]; + this.Rank23ID = source["Rank23ID"]; + this.Rank24 = source["Rank24"]; + this.Rank24ID = source["Rank24ID"]; + this.Rank25 = source["Rank25"]; + this.Rank25ID = source["Rank25ID"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -4887,7 +4665,7 @@ export class NFLGame { return a; } } -export class CollegeGame { +export class NFLGame { ID: number; CreatedAt: Time; UpdatedAt: Time; @@ -4895,12 +4673,10 @@ export class CollegeGame { WeekID: number; Week: number; SeasonID: number; - HomeTeamRank: number; HomeTeamID: number; HomeTeam: string; HomeTeamCoach: string; HomeTeamWin: boolean; - AwayTeamRank: number; AwayTeamID: number; AwayTeam: string; AwayTeamCoach: string; @@ -4924,21 +4700,19 @@ export class CollegeGame { IsNeutral: boolean; IsDomed: boolean; IsNightGame: boolean; + IsPlayoffGame: boolean; + IsRivalryGame: boolean; IsConference: boolean; IsDivisional: boolean; IsConferenceChampionship: boolean; - IsBowlGame: boolean; - IsPlayoffGame: boolean; - IsNationalChampionship: boolean; - IsRivalryGame: boolean; + IsSuperBowl: boolean; GameComplete: boolean; - IsSpringGame: boolean; + IsPreseasonGame: boolean; GameTitle: string; NextGameID: number; NextGameHOA: string; HomePreviousBye: boolean; AwayPreviousBye: boolean; - ConferenceID: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -4949,12 +4723,10 @@ export class CollegeGame { this.WeekID = source["WeekID"]; this.Week = source["Week"]; this.SeasonID = source["SeasonID"]; - this.HomeTeamRank = source["HomeTeamRank"]; this.HomeTeamID = source["HomeTeamID"]; this.HomeTeam = source["HomeTeam"]; this.HomeTeamCoach = source["HomeTeamCoach"]; this.HomeTeamWin = source["HomeTeamWin"]; - this.AwayTeamRank = source["AwayTeamRank"]; this.AwayTeamID = source["AwayTeamID"]; this.AwayTeam = source["AwayTeam"]; this.AwayTeamCoach = source["AwayTeamCoach"]; @@ -4978,21 +4750,19 @@ export class CollegeGame { this.IsNeutral = source["IsNeutral"]; this.IsDomed = source["IsDomed"]; this.IsNightGame = source["IsNightGame"]; + this.IsPlayoffGame = source["IsPlayoffGame"]; + this.IsRivalryGame = source["IsRivalryGame"]; this.IsConference = source["IsConference"]; this.IsDivisional = source["IsDivisional"]; this.IsConferenceChampionship = source["IsConferenceChampionship"]; - this.IsBowlGame = source["IsBowlGame"]; - this.IsPlayoffGame = source["IsPlayoffGame"]; - this.IsNationalChampionship = source["IsNationalChampionship"]; - this.IsRivalryGame = source["IsRivalryGame"]; + this.IsSuperBowl = source["IsSuperBowl"]; this.GameComplete = source["GameComplete"]; - this.IsSpringGame = source["IsSpringGame"]; + this.IsPreseasonGame = source["IsPreseasonGame"]; this.GameTitle = source["GameTitle"]; this.NextGameID = source["NextGameID"]; this.NextGameHOA = source["NextGameHOA"]; this.HomePreviousBye = source["HomePreviousBye"]; this.AwayPreviousBye = source["AwayPreviousBye"]; - this.ConferenceID = source["ConferenceID"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5013,32 +4783,30 @@ export class CollegeGame { return a; } } -export class NewsLog { +export class Notification { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: Time; - WeekID: number; - Week: number; - SeasonID: number; + DeletedAt: DeletedAt; TeamID: number; - MessageType: string; - Message: string; League: string; + NotificationType: string; + Message: string; + Subject: string; + IsRead: boolean; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); this.TeamID = source["TeamID"]; - this.MessageType = source["MessageType"]; - this.Message = source["Message"]; this.League = source["League"]; + this.NotificationType = source["NotificationType"]; + this.Message = source["Message"]; + this.Subject = source["Subject"]; + this.IsRead = source["IsRead"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5059,38 +4827,612 @@ export class NewsLog { return a; } } -export class BootstrapDataTwo { - CollegeNews: NewsLog[]; - AllCollegeGames: CollegeGame[]; - TeamProfileMap: {[key: string]: RecruitingTeamProfile}; - CollegeStandings: CollegeStandings[]; - ProStandings: NFLStandings[]; - AllProGames: NFLGame[]; - CapsheetMap: {[key: uint]: NFLCapsheet}; - ProRosterMap: {[key: uint]: NFLPlayer[]}; - RetiredPlayers: NFLRetiredPlayer[]; - PracticeSquadPlayers: NFLPlayer[]; - TopNFLPassers: NFLPlayer[]; - TopNFLRushers: NFLPlayer[]; - TopNFLReceivers: NFLPlayer[]; - ProInjuryReport: NFLPlayer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); - this.AllCollegeGames = this.convertValues(source["AllCollegeGames"], CollegeGame); - this.TeamProfileMap = source["TeamProfileMap"]; - this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); - this.ProStandings = this.convertValues(source["ProStandings"], NFLStandings); - this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); - this.CapsheetMap = this.convertValues(source["CapsheetMap"], NFLCapsheet, true); - this.ProRosterMap = source["ProRosterMap"]; - this.RetiredPlayers = this.convertValues(source["RetiredPlayers"], NFLRetiredPlayer); - this.PracticeSquadPlayers = this.convertValues(source["PracticeSquadPlayers"], NFLPlayer); - this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); +export class CollegePollOfficial { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + SeasonID: number; + WeekID: number; + Week: number; + Rank1: string; + Rank1ID: number; + Rank1Votes: number; + Rank1No1Votes: number; + Rank2: string; + Rank2ID: number; + Rank2Votes: number; + Rank2No1Votes: number; + Rank3: string; + Rank3ID: number; + Rank3Votes: number; + Rank3No1Votes: number; + Rank4: string; + Rank4ID: number; + Rank4Votes: number; + Rank4No1Votes: number; + Rank5: string; + Rank5ID: number; + Rank5Votes: number; + Rank5No1Votes: number; + Rank6: string; + Rank6ID: number; + Rank6Votes: number; + Rank6No1Votes: number; + Rank7: string; + Rank7ID: number; + Rank7Votes: number; + Rank7No1Votes: number; + Rank8: string; + Rank8ID: number; + Rank8Votes: number; + Rank8No1Votes: number; + Rank9: string; + Rank9ID: number; + Rank9Votes: number; + Rank9No1Votes: number; + Rank10: string; + Rank10ID: number; + Rank10Votes: number; + Rank10No1Votes: number; + Rank11: string; + Rank11ID: number; + Rank11Votes: number; + Rank11No1Votes: number; + Rank12: string; + Rank12ID: number; + Rank12Votes: number; + Rank12No1Votes: number; + Rank13: string; + Rank13ID: number; + Rank13Votes: number; + Rank13No1Votes: number; + Rank14: string; + Rank14ID: number; + Rank14Votes: number; + Rank14No1Votes: number; + Rank15: string; + Rank15ID: number; + Rank15Votes: number; + Rank15No1Votes: number; + Rank16: string; + Rank16ID: number; + Rank16Votes: number; + Rank16No1Votes: number; + Rank17: string; + Rank17ID: number; + Rank17Votes: number; + Rank17No1Votes: number; + Rank18: string; + Rank18ID: number; + Rank18Votes: number; + Rank18No1Votes: number; + Rank19: string; + Rank19ID: number; + Rank19Votes: number; + Rank19No1Votes: number; + Rank20: string; + Rank20ID: number; + Rank20Votes: number; + Rank20No1Votes: number; + Rank21: string; + Rank21ID: number; + Rank21Votes: number; + Rank21No1Votes: number; + Rank22: string; + Rank22ID: number; + Rank22Votes: number; + Rank22No1Votes: number; + Rank23: string; + Rank23ID: number; + Rank23Votes: number; + Rank23No1Votes: number; + Rank24: string; + Rank24ID: number; + Rank24Votes: number; + Rank24No1Votes: number; + Rank25: string; + Rank25ID: number; + Rank25Votes: number; + Rank25No1Votes: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.SeasonID = source["SeasonID"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.Rank1 = source["Rank1"]; + this.Rank1ID = source["Rank1ID"]; + this.Rank1Votes = source["Rank1Votes"]; + this.Rank1No1Votes = source["Rank1No1Votes"]; + this.Rank2 = source["Rank2"]; + this.Rank2ID = source["Rank2ID"]; + this.Rank2Votes = source["Rank2Votes"]; + this.Rank2No1Votes = source["Rank2No1Votes"]; + this.Rank3 = source["Rank3"]; + this.Rank3ID = source["Rank3ID"]; + this.Rank3Votes = source["Rank3Votes"]; + this.Rank3No1Votes = source["Rank3No1Votes"]; + this.Rank4 = source["Rank4"]; + this.Rank4ID = source["Rank4ID"]; + this.Rank4Votes = source["Rank4Votes"]; + this.Rank4No1Votes = source["Rank4No1Votes"]; + this.Rank5 = source["Rank5"]; + this.Rank5ID = source["Rank5ID"]; + this.Rank5Votes = source["Rank5Votes"]; + this.Rank5No1Votes = source["Rank5No1Votes"]; + this.Rank6 = source["Rank6"]; + this.Rank6ID = source["Rank6ID"]; + this.Rank6Votes = source["Rank6Votes"]; + this.Rank6No1Votes = source["Rank6No1Votes"]; + this.Rank7 = source["Rank7"]; + this.Rank7ID = source["Rank7ID"]; + this.Rank7Votes = source["Rank7Votes"]; + this.Rank7No1Votes = source["Rank7No1Votes"]; + this.Rank8 = source["Rank8"]; + this.Rank8ID = source["Rank8ID"]; + this.Rank8Votes = source["Rank8Votes"]; + this.Rank8No1Votes = source["Rank8No1Votes"]; + this.Rank9 = source["Rank9"]; + this.Rank9ID = source["Rank9ID"]; + this.Rank9Votes = source["Rank9Votes"]; + this.Rank9No1Votes = source["Rank9No1Votes"]; + this.Rank10 = source["Rank10"]; + this.Rank10ID = source["Rank10ID"]; + this.Rank10Votes = source["Rank10Votes"]; + this.Rank10No1Votes = source["Rank10No1Votes"]; + this.Rank11 = source["Rank11"]; + this.Rank11ID = source["Rank11ID"]; + this.Rank11Votes = source["Rank11Votes"]; + this.Rank11No1Votes = source["Rank11No1Votes"]; + this.Rank12 = source["Rank12"]; + this.Rank12ID = source["Rank12ID"]; + this.Rank12Votes = source["Rank12Votes"]; + this.Rank12No1Votes = source["Rank12No1Votes"]; + this.Rank13 = source["Rank13"]; + this.Rank13ID = source["Rank13ID"]; + this.Rank13Votes = source["Rank13Votes"]; + this.Rank13No1Votes = source["Rank13No1Votes"]; + this.Rank14 = source["Rank14"]; + this.Rank14ID = source["Rank14ID"]; + this.Rank14Votes = source["Rank14Votes"]; + this.Rank14No1Votes = source["Rank14No1Votes"]; + this.Rank15 = source["Rank15"]; + this.Rank15ID = source["Rank15ID"]; + this.Rank15Votes = source["Rank15Votes"]; + this.Rank15No1Votes = source["Rank15No1Votes"]; + this.Rank16 = source["Rank16"]; + this.Rank16ID = source["Rank16ID"]; + this.Rank16Votes = source["Rank16Votes"]; + this.Rank16No1Votes = source["Rank16No1Votes"]; + this.Rank17 = source["Rank17"]; + this.Rank17ID = source["Rank17ID"]; + this.Rank17Votes = source["Rank17Votes"]; + this.Rank17No1Votes = source["Rank17No1Votes"]; + this.Rank18 = source["Rank18"]; + this.Rank18ID = source["Rank18ID"]; + this.Rank18Votes = source["Rank18Votes"]; + this.Rank18No1Votes = source["Rank18No1Votes"]; + this.Rank19 = source["Rank19"]; + this.Rank19ID = source["Rank19ID"]; + this.Rank19Votes = source["Rank19Votes"]; + this.Rank19No1Votes = source["Rank19No1Votes"]; + this.Rank20 = source["Rank20"]; + this.Rank20ID = source["Rank20ID"]; + this.Rank20Votes = source["Rank20Votes"]; + this.Rank20No1Votes = source["Rank20No1Votes"]; + this.Rank21 = source["Rank21"]; + this.Rank21ID = source["Rank21ID"]; + this.Rank21Votes = source["Rank21Votes"]; + this.Rank21No1Votes = source["Rank21No1Votes"]; + this.Rank22 = source["Rank22"]; + this.Rank22ID = source["Rank22ID"]; + this.Rank22Votes = source["Rank22Votes"]; + this.Rank22No1Votes = source["Rank22No1Votes"]; + this.Rank23 = source["Rank23"]; + this.Rank23ID = source["Rank23ID"]; + this.Rank23Votes = source["Rank23Votes"]; + this.Rank23No1Votes = source["Rank23No1Votes"]; + this.Rank24 = source["Rank24"]; + this.Rank24ID = source["Rank24ID"]; + this.Rank24Votes = source["Rank24Votes"]; + this.Rank24No1Votes = source["Rank24No1Votes"]; + this.Rank25 = source["Rank25"]; + this.Rank25ID = source["Rank25ID"]; + this.Rank25Votes = source["Rank25Votes"]; + this.Rank25No1Votes = source["Rank25No1Votes"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class CollegeGame { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + WeekID: number; + Week: number; + SeasonID: number; + HomeTeamRank: number; + HomeTeamID: number; + HomeTeam: string; + HomeTeamCoach: string; + HomeTeamWin: boolean; + AwayTeamRank: number; + AwayTeamID: number; + AwayTeam: string; + AwayTeamCoach: string; + AwayTeamWin: boolean; + MVP: string; + HomeTeamScore: number; + AwayTeamScore: number; + TimeSlot: string; + StadiumID: number; + Stadium: string; + City: string; + State: string; + Region: string; + LowTemp: number; + HighTemp: number; + GameTemp: number; + Cloud: string; + Precip: string; + WindSpeed: number; + WindCategory: string; + IsNeutral: boolean; + IsDomed: boolean; + IsNightGame: boolean; + IsConference: boolean; + IsDivisional: boolean; + IsConferenceChampionship: boolean; + IsBowlGame: boolean; + IsPlayoffGame: boolean; + IsNationalChampionship: boolean; + IsRivalryGame: boolean; + GameComplete: boolean; + IsSpringGame: boolean; + GameTitle: string; + NextGameID: number; + NextGameHOA: string; + HomePreviousBye: boolean; + AwayPreviousBye: boolean; + ConferenceID: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.SeasonID = source["SeasonID"]; + this.HomeTeamRank = source["HomeTeamRank"]; + this.HomeTeamID = source["HomeTeamID"]; + this.HomeTeam = source["HomeTeam"]; + this.HomeTeamCoach = source["HomeTeamCoach"]; + this.HomeTeamWin = source["HomeTeamWin"]; + this.AwayTeamRank = source["AwayTeamRank"]; + this.AwayTeamID = source["AwayTeamID"]; + this.AwayTeam = source["AwayTeam"]; + this.AwayTeamCoach = source["AwayTeamCoach"]; + this.AwayTeamWin = source["AwayTeamWin"]; + this.MVP = source["MVP"]; + this.HomeTeamScore = source["HomeTeamScore"]; + this.AwayTeamScore = source["AwayTeamScore"]; + this.TimeSlot = source["TimeSlot"]; + this.StadiumID = source["StadiumID"]; + this.Stadium = source["Stadium"]; + this.City = source["City"]; + this.State = source["State"]; + this.Region = source["Region"]; + this.LowTemp = source["LowTemp"]; + this.HighTemp = source["HighTemp"]; + this.GameTemp = source["GameTemp"]; + this.Cloud = source["Cloud"]; + this.Precip = source["Precip"]; + this.WindSpeed = source["WindSpeed"]; + this.WindCategory = source["WindCategory"]; + this.IsNeutral = source["IsNeutral"]; + this.IsDomed = source["IsDomed"]; + this.IsNightGame = source["IsNightGame"]; + this.IsConference = source["IsConference"]; + this.IsDivisional = source["IsDivisional"]; + this.IsConferenceChampionship = source["IsConferenceChampionship"]; + this.IsBowlGame = source["IsBowlGame"]; + this.IsPlayoffGame = source["IsPlayoffGame"]; + this.IsNationalChampionship = source["IsNationalChampionship"]; + this.IsRivalryGame = source["IsRivalryGame"]; + this.GameComplete = source["GameComplete"]; + this.IsSpringGame = source["IsSpringGame"]; + this.GameTitle = source["GameTitle"]; + this.NextGameID = source["NextGameID"]; + this.NextGameHOA = source["NextGameHOA"]; + this.HomePreviousBye = source["HomePreviousBye"]; + this.AwayPreviousBye = source["AwayPreviousBye"]; + this.ConferenceID = source["ConferenceID"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class BootstrapDataLanding { + CollegeTeam: CollegeTeam; + CollegeRosterMap: {[key: uint]: CollegePlayer[]}; + CollegeStandings: CollegeStandings[]; + AllCollegeGames: CollegeGame[]; + OfficialPolls: CollegePollOfficial[]; + TopCFBPassers: CollegePlayer[]; + TopCFBRushers: CollegePlayer[]; + TopCFBReceivers: CollegePlayer[]; + PortalPlayers: CollegePlayer[]; + CollegeInjuryReport: CollegePlayer[]; + CollegeNotifications: Notification[]; + ProTeam: NFLTeam; + ProNotifications: Notification[]; + ProStandings: NFLStandings[]; + AllProGames: NFLGame[]; + PollSubmission: CollegePollSubmission; + TopNFLPassers: NFLPlayer[]; + TopNFLRushers: NFLPlayer[]; + TopNFLReceivers: NFLPlayer[]; + ProRosterMap: {[key: uint]: NFLPlayer[]}; + ProInjuryReport: NFLPlayer[]; + PracticeSquadPlayers: NFLPlayer[]; + CapsheetMap: {[key: uint]: NFLCapsheet}; + RetiredPlayers: NFLRetiredPlayer[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); + this.CollegeRosterMap = source["CollegeRosterMap"]; + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.AllCollegeGames = this.convertValues(source["AllCollegeGames"], CollegeGame); + this.OfficialPolls = this.convertValues(source["OfficialPolls"], CollegePollOfficial); + this.TopCFBPassers = this.convertValues(source["TopCFBPassers"], CollegePlayer); + this.TopCFBRushers = this.convertValues(source["TopCFBRushers"], CollegePlayer); + this.TopCFBReceivers = this.convertValues(source["TopCFBReceivers"], CollegePlayer); + this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); + this.CollegeInjuryReport = this.convertValues(source["CollegeInjuryReport"], CollegePlayer); + this.CollegeNotifications = this.convertValues(source["CollegeNotifications"], Notification); + this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); + this.ProNotifications = this.convertValues(source["ProNotifications"], Notification); + this.ProStandings = this.convertValues(source["ProStandings"], NFLStandings); + this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); + this.PollSubmission = this.convertValues(source["PollSubmission"], CollegePollSubmission); + this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); this.TopNFLReceivers = this.convertValues(source["TopNFLReceivers"], NFLPlayer); + this.ProRosterMap = source["ProRosterMap"]; this.ProInjuryReport = this.convertValues(source["ProInjuryReport"], NFLPlayer); + this.PracticeSquadPlayers = this.convertValues(source["PracticeSquadPlayers"], NFLPlayer); + this.CapsheetMap = this.convertValues(source["CapsheetMap"], NFLCapsheet, true); + this.RetiredPlayers = this.convertValues(source["RetiredPlayers"], NFLRetiredPlayer); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradePreferences { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLTeamID: number; + Quarterbacks: boolean; + QuarterbackType: string; + Runningbacks: boolean; + RunningbackType: string; + Fullbacks: boolean; + FullbackType: string; + WideReceivers: boolean; + WideReceiverType: string; + TightEnds: boolean; + TightEndType: string; + OffensiveTackles: boolean; + OffensiveGuards: boolean; + Centers: boolean; + OffensiveTackleType: string; + OffensiveGuardType: string; + CenterType: string; + DefensiveTackles: boolean; + DefensiveTackleType: string; + DefensiveEnds: boolean; + DefensiveEndType: string; + OutsideLinebackers: boolean; + OutsideLinebackerType: string; + InsideLinebackers: boolean; + InsideLinebackerType: string; + Cornerbacks: boolean; + CornerbackType: string; + FreeSafeties: boolean; + FreeSafetyType: string; + StrongSafeties: boolean; + StrongSafetyType: string; + Kickers: boolean; + KickerType: string; + Punters: boolean; + PunterType: string; + DraftPicks: boolean; + DraftPickType: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.NFLTeamID = source["NFLTeamID"]; + this.Quarterbacks = source["Quarterbacks"]; + this.QuarterbackType = source["QuarterbackType"]; + this.Runningbacks = source["Runningbacks"]; + this.RunningbackType = source["RunningbackType"]; + this.Fullbacks = source["Fullbacks"]; + this.FullbackType = source["FullbackType"]; + this.WideReceivers = source["WideReceivers"]; + this.WideReceiverType = source["WideReceiverType"]; + this.TightEnds = source["TightEnds"]; + this.TightEndType = source["TightEndType"]; + this.OffensiveTackles = source["OffensiveTackles"]; + this.OffensiveGuards = source["OffensiveGuards"]; + this.Centers = source["Centers"]; + this.OffensiveTackleType = source["OffensiveTackleType"]; + this.OffensiveGuardType = source["OffensiveGuardType"]; + this.CenterType = source["CenterType"]; + this.DefensiveTackles = source["DefensiveTackles"]; + this.DefensiveTackleType = source["DefensiveTackleType"]; + this.DefensiveEnds = source["DefensiveEnds"]; + this.DefensiveEndType = source["DefensiveEndType"]; + this.OutsideLinebackers = source["OutsideLinebackers"]; + this.OutsideLinebackerType = source["OutsideLinebackerType"]; + this.InsideLinebackers = source["InsideLinebackers"]; + this.InsideLinebackerType = source["InsideLinebackerType"]; + this.Cornerbacks = source["Cornerbacks"]; + this.CornerbackType = source["CornerbackType"]; + this.FreeSafeties = source["FreeSafeties"]; + this.FreeSafetyType = source["FreeSafetyType"]; + this.StrongSafeties = source["StrongSafeties"]; + this.StrongSafetyType = source["StrongSafetyType"]; + this.Kickers = source["Kickers"]; + this.KickerType = source["KickerType"]; + this.Punters = source["Punters"]; + this.PunterType = source["PunterType"]; + this.DraftPicks = source["DraftPicks"]; + this.DraftPickType = source["DraftPickType"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradeOptionObj { + ID: number; + TradeProposalID: number; + NFLTeamID: number; + NFLPlayerID: number; + NFLDraftPickID: number; + OptionType: string; + SalaryPercentage: number; + Player: NFLPlayer; + Draftpick: NFLDraftPick; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.TradeProposalID = source["TradeProposalID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.NFLDraftPickID = source["NFLDraftPickID"]; + this.OptionType = source["OptionType"]; + this.SalaryPercentage = source["SalaryPercentage"]; + this.Player = this.convertValues(source["Player"], NFLPlayer); + this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradeProposalDTO { + ID: number; + NFLTeamID: number; + NFLTeam: string; + RecepientTeamID: number; + RecepientTeam: string; + IsTradeAccepted: boolean; + IsTradeRejected: boolean; + NFLTeamTradeOptions: NFLTradeOptionObj[]; + RecepientTeamTradeOptions: NFLTradeOptionObj[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLTeam = source["NFLTeam"]; + this.RecepientTeamID = source["RecepientTeamID"]; + this.RecepientTeam = source["RecepientTeam"]; + this.IsTradeAccepted = source["IsTradeAccepted"]; + this.IsTradeRejected = source["IsTradeRejected"]; + this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOptionObj); + this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOptionObj); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5111,264 +5453,98 @@ export class BootstrapDataTwo { return a; } } -export class FaceDataResponse { - PlayerID: number; - Accessories: string; - Body: string; - Ear: string; - Eye: string; - EyeLine: string; - Eyebrow: string; - FacialHair: string; - Glasses: string; - Hair: string; - HairBG: string; - HairFlip: boolean; - Head: string; - Jersey: string; - MiscLine: string; - Mouth: string; - MouthFlip: boolean; - Nose: string; - NoseFlip: boolean; - SmileLine: string; - BodySize: number; - EarSize: number; - EyeAngle: number; - EyeBrowAngle: number; - FaceSize: number; - FacialHairShave: string; - NoseSize: number; - SmileLineSize: number; - SkinColor: string; - HairColor: string; +export class NFLTeamProposals { + SentTradeProposals: NFLTradeProposalDTO[]; + ReceivedTradeProposals: NFLTradeProposalDTO[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.Accessories = source["Accessories"]; - this.Body = source["Body"]; - this.Ear = source["Ear"]; - this.Eye = source["Eye"]; - this.EyeLine = source["EyeLine"]; - this.Eyebrow = source["Eyebrow"]; - this.FacialHair = source["FacialHair"]; - this.Glasses = source["Glasses"]; - this.Hair = source["Hair"]; - this.HairBG = source["HairBG"]; - this.HairFlip = source["HairFlip"]; - this.Head = source["Head"]; - this.Jersey = source["Jersey"]; - this.MiscLine = source["MiscLine"]; - this.Mouth = source["Mouth"]; - this.MouthFlip = source["MouthFlip"]; - this.Nose = source["Nose"]; - this.NoseFlip = source["NoseFlip"]; - this.SmileLine = source["SmileLine"]; - this.BodySize = source["BodySize"]; - this.EarSize = source["EarSize"]; - this.EyeAngle = source["EyeAngle"]; - this.EyeBrowAngle = source["EyeBrowAngle"]; - this.FaceSize = source["FaceSize"]; - this.FacialHairShave = source["FacialHairShave"]; - this.NoseSize = source["NoseSize"]; - this.SmileLineSize = source["SmileLineSize"]; - this.SkinColor = source["SkinColor"]; - this.HairColor = source["HairColor"]; + this.SentTradeProposals = this.convertValues(source["SentTradeProposals"], NFLTradeProposalDTO); + this.ReceivedTradeProposals = this.convertValues(source["ReceivedTradeProposals"], NFLTradeProposalDTO); } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } } -export class NFLDraftee { +export class CollegePromise { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: Time; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PreviousTeamID: number; - PreviousTeam: string; - Height: number; - Weight: number; - Age: number; - Stars: number; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - Progression: number; - Discipline: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - IsInjured: boolean; - InjuryName: string; - InjuryType: string; - WeeksOfRecovery: number; - InjuryReserve: boolean; - PrimeAge: number; - Clutch: number; - Shotgun: number; - PositionTwo: string; - ArchetypeTwo: string; - RelativeID: number; - RelativeType: number; - Notes: string; - PlayerID: number; - HighSchool: string; - CollegeID: number; - College: string; - DraftedTeamID: number; - DraftedTeam: string; - DraftedRound: number; - DraftPickID: number; - DraftedPick: number; - City: string; - State: string; - OverallGrade: string; - StaminaGrade: string; - InjuryGrade: string; - FootballIQGrade: string; - SpeedGrade: string; - CarryingGrade: string; - AgilityGrade: string; - CatchingGrade: string; - RouteRunningGrade: string; - ZoneCoverageGrade: string; - ManCoverageGrade: string; - StrengthGrade: string; - TackleGrade: string; - PassBlockGrade: string; - RunBlockGrade: string; - PassRushGrade: string; - RunDefenseGrade: string; - ThrowPowerGrade: string; - ThrowAccuracyGrade: string; - KickAccuracyGrade: string; - KickPowerGrade: string; - PuntAccuracyGrade: string; - PuntPowerGrade: string; - BoomOrBust: boolean; - BoomOrBustStatus: string; + DeletedAt: DeletedAt; + TeamID: number; + CollegePlayerID: number; + PromiseType: string; + PromiseWeight: string; + Benchmark: number; + BenchmarkStr: string; + PromiseMade: boolean; + IsFullfilled: boolean; + IsActive: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.TeamID = source["TeamID"]; + this.CollegePlayerID = source["CollegePlayerID"]; + this.PromiseType = source["PromiseType"]; + this.PromiseWeight = source["PromiseWeight"]; + this.Benchmark = source["Benchmark"]; + this.BenchmarkStr = source["BenchmarkStr"]; + this.PromiseMade = source["PromiseMade"]; + this.IsFullfilled = source["IsFullfilled"]; + this.IsActive = source["IsActive"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class BootstrapDataTeamRoster { + ContractMap: {[key: uint]: NFLContract}; + ExtensionMap: {[key: uint]: NFLExtensionOffer}; + CollegePromises: CollegePromise[]; + TradeProposals: NFLTeamProposals; + TradePreferences: {[key: uint]: NFLTradePreferences}; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.HighSchool = source["HighSchool"]; - this.CollegeID = source["CollegeID"]; - this.College = source["College"]; - this.DraftedTeamID = source["DraftedTeamID"]; - this.DraftedTeam = source["DraftedTeam"]; - this.DraftedRound = source["DraftedRound"]; - this.DraftPickID = source["DraftPickID"]; - this.DraftedPick = source["DraftedPick"]; - this.City = source["City"]; - this.State = source["State"]; - this.OverallGrade = source["OverallGrade"]; - this.StaminaGrade = source["StaminaGrade"]; - this.InjuryGrade = source["InjuryGrade"]; - this.FootballIQGrade = source["FootballIQGrade"]; - this.SpeedGrade = source["SpeedGrade"]; - this.CarryingGrade = source["CarryingGrade"]; - this.AgilityGrade = source["AgilityGrade"]; - this.CatchingGrade = source["CatchingGrade"]; - this.RouteRunningGrade = source["RouteRunningGrade"]; - this.ZoneCoverageGrade = source["ZoneCoverageGrade"]; - this.ManCoverageGrade = source["ManCoverageGrade"]; - this.StrengthGrade = source["StrengthGrade"]; - this.TackleGrade = source["TackleGrade"]; - this.PassBlockGrade = source["PassBlockGrade"]; - this.RunBlockGrade = source["RunBlockGrade"]; - this.PassRushGrade = source["PassRushGrade"]; - this.RunDefenseGrade = source["RunDefenseGrade"]; - this.ThrowPowerGrade = source["ThrowPowerGrade"]; - this.ThrowAccuracyGrade = source["ThrowAccuracyGrade"]; - this.KickAccuracyGrade = source["KickAccuracyGrade"]; - this.KickPowerGrade = source["KickPowerGrade"]; - this.PuntAccuracyGrade = source["PuntAccuracyGrade"]; - this.PuntPowerGrade = source["PuntPowerGrade"]; - this.BoomOrBust = source["BoomOrBust"]; - this.BoomOrBustStatus = source["BoomOrBustStatus"]; + this.ContractMap = this.convertValues(source["ContractMap"], NFLContract, true); + this.ExtensionMap = this.convertValues(source["ExtensionMap"], NFLExtensionOffer, true); + this.CollegePromises = this.convertValues(source["CollegePromises"], CollegePromise); + this.TradeProposals = this.convertValues(source["TradeProposals"], NFLTeamProposals); + this.TradePreferences = this.convertValues(source["TradePreferences"], NFLTradePreferences, true); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5487,108 +5663,16 @@ export class Croot { return a; } } -export class BootstrapDataThree { +export class BootstrapDataRecruiting { Recruits: Croot[]; RecruitProfiles: RecruitPlayerProfile[]; - CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; - FreeAgentOffers: FreeAgencyOffer[]; - WaiverWireOffers: NFLWaiverOffer[]; - FreeAgents: NFLPlayer[]; - WaiverPlayers: NFLPlayer[]; - NFLDraftees: NFLDraftee[]; - ProNews: NewsLog[]; - NFLDepthChartMap: {[key: uint]: NFLDepthChart}; - ContractMap: {[key: uint]: NFLContract}; - ExtensionMap: {[key: uint]: NFLExtensionOffer}; - FaceData: {[key: uint]: FaceDataResponse}; + TeamProfileMap: {[key: string]: RecruitingTeamProfile}; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.Recruits = this.convertValues(source["Recruits"], Croot); this.RecruitProfiles = this.convertValues(source["RecruitProfiles"], RecruitPlayerProfile); - this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); - this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); - this.WaiverWireOffers = this.convertValues(source["WaiverWireOffers"], NFLWaiverOffer); - this.FreeAgents = this.convertValues(source["FreeAgents"], NFLPlayer); - this.WaiverPlayers = this.convertValues(source["WaiverPlayers"], NFLPlayer); - this.NFLDraftees = this.convertValues(source["NFLDraftees"], NFLDraftee); - this.ProNews = this.convertValues(source["ProNews"], NewsLog); - this.NFLDepthChartMap = this.convertValues(source["NFLDepthChartMap"], NFLDepthChart, true); - this.ContractMap = this.convertValues(source["ContractMap"], NFLContract, true); - this.ExtensionMap = this.convertValues(source["ExtensionMap"], NFLExtensionOffer, true); - this.FaceData = this.convertValues(source["FaceData"], FaceDataResponse, true); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class FlexComparisonModel { - TeamOneID: number; - TeamOne: string; - TeamOneWins: number; - TeamOneLosses: number; - TeamOneStreak: number; - TeamOneMSeason: number; - TeamOneMScore: string; - TeamTwoID: number; - TeamTwo: string; - TeamTwoWins: number; - TeamTwoLosses: number; - TeamTwoStreak: number; - TeamTwoMSeason: number; - TeamTwoMScore: string; - CurrentStreak: number; - LatestWin: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.TeamOneID = source["TeamOneID"]; - this.TeamOne = source["TeamOne"]; - this.TeamOneWins = source["TeamOneWins"]; - this.TeamOneLosses = source["TeamOneLosses"]; - this.TeamOneStreak = source["TeamOneStreak"]; - this.TeamOneMSeason = source["TeamOneMSeason"]; - this.TeamOneMScore = source["TeamOneMScore"]; - this.TeamTwoID = source["TeamTwoID"]; - this.TeamTwo = source["TeamTwo"]; - this.TeamTwoWins = source["TeamTwoWins"]; - this.TeamTwoLosses = source["TeamTwoLosses"]; - this.TeamTwoStreak = source["TeamTwoStreak"]; - this.TeamTwoMSeason = source["TeamTwoMSeason"]; - this.TeamTwoMScore = source["TeamTwoMScore"]; - this.CurrentStreak = source["CurrentStreak"]; - this.LatestWin = source["LatestWin"]; - } -} -export class CollegeTeamProfileData { - CareerStats: CollegePlayerSeasonStats[]; - CollegeStandings: CollegeStandings[]; - Rivalries: FlexComparisonModel[]; - PlayerMap: {[key: uint]: CollegePlayer}; - CollegeGames: CollegeGame[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CareerStats = this.convertValues(source["CareerStats"], CollegePlayerSeasonStats); - this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); - this.Rivalries = this.convertValues(source["Rivalries"], FlexComparisonModel); - this.PlayerMap = this.convertValues(source["PlayerMap"], CollegePlayer, true); - this.CollegeGames = this.convertValues(source["CollegeGames"], CollegeGame); + this.TeamProfileMap = source["TeamProfileMap"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5609,26 +5693,18 @@ export class CollegeTeamProfileData { return a; } } -export class SearchStatsResponse { - CFBPlayerGameStats: CollegePlayerStats[]; - CFBPlayerSeasonStats: CollegePlayerSeasonStats[]; - CFBTeamGameStats: CollegeTeamStats[]; - CFBTeamSeasonStats: CollegeTeamSeasonStats[]; - NFLPlayerGameStats: NFLPlayerStats[]; - NFLPlayerSeasonStats: NFLPlayerSeasonStats[]; - NFLTeamGameStats: NFLTeamStats[]; - NFLTeamSeasonStats: NFLTeamSeasonStats[]; +export class BootstrapDataFreeAgency { + FreeAgents: NFLPlayer[]; + WaiverPlayers: NFLPlayer[]; + FreeAgentOffers: FreeAgencyOffer[]; + WaiverOffers: NFLWaiverOffer[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.CFBPlayerGameStats = this.convertValues(source["CFBPlayerGameStats"], CollegePlayerStats); - this.CFBPlayerSeasonStats = this.convertValues(source["CFBPlayerSeasonStats"], CollegePlayerSeasonStats); - this.CFBTeamGameStats = this.convertValues(source["CFBTeamGameStats"], CollegeTeamStats); - this.CFBTeamSeasonStats = this.convertValues(source["CFBTeamSeasonStats"], CollegeTeamSeasonStats); - this.NFLPlayerGameStats = this.convertValues(source["NFLPlayerGameStats"], NFLPlayerStats); - this.NFLPlayerSeasonStats = this.convertValues(source["NFLPlayerSeasonStats"], NFLPlayerSeasonStats); - this.NFLTeamGameStats = this.convertValues(source["NFLTeamGameStats"], NFLTeamStats); - this.NFLTeamSeasonStats = this.convertValues(source["NFLTeamSeasonStats"], NFLTeamSeasonStats); + this.FreeAgents = this.convertValues(source["FreeAgents"], NFLPlayer); + this.WaiverPlayers = this.convertValues(source["WaiverPlayers"], NFLPlayer); + this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); + this.WaiverOffers = this.convertValues(source["WaiverOffers"], NFLWaiverOffer); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5647,39 +5723,16 @@ export class SearchStatsResponse { return new classs(a); } return a; - } -} - -export class NFLRequest { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - Username: string; - NFLTeamID: number; - NFLTeam: string; - NFLTeamAbbreviation: string; - IsOwner: boolean; - IsManager: boolean; - IsCoach: boolean; - IsAssistant: boolean; - IsApproved: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.Username = source["Username"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLTeam = source["NFLTeam"]; - this.NFLTeamAbbreviation = source["NFLTeamAbbreviation"]; - this.IsOwner = source["IsOwner"]; - this.IsManager = source["IsManager"]; - this.IsCoach = source["IsCoach"]; - this.IsAssistant = source["IsAssistant"]; - this.IsApproved = source["IsApproved"]; + } +} +export class BootstrapDataScheduling { + OfficialPolls: CollegePollOfficial[]; + PollSubmission: CollegePollSubmission; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.OfficialPolls = this.convertValues(source["OfficialPolls"], CollegePollOfficial); + this.PollSubmission = this.convertValues(source["PollSubmission"], CollegePollSubmission); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5700,14 +5753,25 @@ export class NFLRequest { return a; } } -export class TeamRequest { +export class ScoutingProfile { ID: number; CreatedAt: Time; UpdatedAt: Time; DeletedAt: Time; + PlayerID: number; TeamID: number; - Username: string; - IsApproved: boolean; + ShowAttribute1: boolean; + ShowAttribute2: boolean; + ShowAttribute3: boolean; + ShowAttribute4: boolean; + ShowAttribute5: boolean; + ShowAttribute6: boolean; + ShowAttribute7: boolean; + ShowAttribute8: boolean; + ShowPotential: boolean; + RemovedFromBoard: boolean; + ShowCount: number; + Draftee: NFLDraftee; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -5715,9 +5779,20 @@ export class TeamRequest { this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.PlayerID = source["PlayerID"]; this.TeamID = source["TeamID"]; - this.Username = source["Username"]; - this.IsApproved = source["IsApproved"]; + this.ShowAttribute1 = source["ShowAttribute1"]; + this.ShowAttribute2 = source["ShowAttribute2"]; + this.ShowAttribute3 = source["ShowAttribute3"]; + this.ShowAttribute4 = source["ShowAttribute4"]; + this.ShowAttribute5 = source["ShowAttribute5"]; + this.ShowAttribute6 = source["ShowAttribute6"]; + this.ShowAttribute7 = source["ShowAttribute7"]; + this.ShowAttribute8 = source["ShowAttribute8"]; + this.ShowPotential = source["ShowPotential"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.ShowCount = source["ShowCount"]; + this.Draftee = this.convertValues(source["Draftee"], NFLDraftee); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5738,14 +5813,30 @@ export class TeamRequest { return a; } } -export class TeamRequestsResponse { - CollegeRequests: TeamRequest[]; - ProRequests: NFLRequest[]; +export class NFLWarRoom { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + Team: string; + ScoutingPoints: number; + SpentPoints: number; + DraftPicks: NFLDraftPick[]; + ScoutProfiles: ScoutingProfile[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.CollegeRequests = this.convertValues(source["CollegeRequests"], TeamRequest); - this.ProRequests = this.convertValues(source["ProRequests"], NFLRequest); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.ScoutingPoints = source["ScoutingPoints"]; + this.SpentPoints = source["SpentPoints"]; + this.DraftPicks = this.convertValues(source["DraftPicks"], NFLDraftPick); + this.ScoutProfiles = this.convertValues(source["ScoutProfiles"], ScoutingProfile); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5766,7 +5857,11 @@ export class TeamRequestsResponse { return a; } } -export class BasePlayer { +export class NFLDraftee { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; FirstName: string; LastName: string; Position: string; @@ -5821,9 +5916,49 @@ export class BasePlayer { RelativeID: number; RelativeType: number; Notes: string; + PlayerID: number; + HighSchool: string; + CollegeID: number; + College: string; + DraftedTeamID: number; + DraftedTeam: string; + DraftedRound: number; + DraftPickID: number; + DraftedPick: number; + City: string; + State: string; + OverallGrade: string; + StaminaGrade: string; + InjuryGrade: string; + FootballIQGrade: string; + SpeedGrade: string; + CarryingGrade: string; + AgilityGrade: string; + CatchingGrade: string; + RouteRunningGrade: string; + ZoneCoverageGrade: string; + ManCoverageGrade: string; + StrengthGrade: string; + TackleGrade: string; + PassBlockGrade: string; + RunBlockGrade: string; + PassRushGrade: string; + RunDefenseGrade: string; + ThrowPowerGrade: string; + ThrowAccuracyGrade: string; + KickAccuracyGrade: string; + KickPowerGrade: string; + PuntAccuracyGrade: string; + PuntPowerGrade: string; + BoomOrBust: boolean; + BoomOrBustStatus: string; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); this.FirstName = source["FirstName"]; this.LastName = source["LastName"]; this.Position = source["Position"]; @@ -5878,62 +6013,172 @@ export class BasePlayer { this.RelativeID = source["RelativeID"]; this.RelativeType = source["RelativeType"]; this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.HighSchool = source["HighSchool"]; + this.CollegeID = source["CollegeID"]; + this.College = source["College"]; + this.DraftedTeamID = source["DraftedTeamID"]; + this.DraftedTeam = source["DraftedTeam"]; + this.DraftedRound = source["DraftedRound"]; + this.DraftPickID = source["DraftPickID"]; + this.DraftedPick = source["DraftedPick"]; + this.City = source["City"]; + this.State = source["State"]; + this.OverallGrade = source["OverallGrade"]; + this.StaminaGrade = source["StaminaGrade"]; + this.InjuryGrade = source["InjuryGrade"]; + this.FootballIQGrade = source["FootballIQGrade"]; + this.SpeedGrade = source["SpeedGrade"]; + this.CarryingGrade = source["CarryingGrade"]; + this.AgilityGrade = source["AgilityGrade"]; + this.CatchingGrade = source["CatchingGrade"]; + this.RouteRunningGrade = source["RouteRunningGrade"]; + this.ZoneCoverageGrade = source["ZoneCoverageGrade"]; + this.ManCoverageGrade = source["ManCoverageGrade"]; + this.StrengthGrade = source["StrengthGrade"]; + this.TackleGrade = source["TackleGrade"]; + this.PassBlockGrade = source["PassBlockGrade"]; + this.RunBlockGrade = source["RunBlockGrade"]; + this.PassRushGrade = source["PassRushGrade"]; + this.RunDefenseGrade = source["RunDefenseGrade"]; + this.ThrowPowerGrade = source["ThrowPowerGrade"]; + this.ThrowAccuracyGrade = source["ThrowAccuracyGrade"]; + this.KickAccuracyGrade = source["KickAccuracyGrade"]; + this.KickPowerGrade = source["KickPowerGrade"]; + this.PuntAccuracyGrade = source["PuntAccuracyGrade"]; + this.PuntPowerGrade = source["PuntPowerGrade"]; + this.BoomOrBust = source["BoomOrBust"]; + this.BoomOrBustStatus = source["BoomOrBustStatus"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class BootstrapDataDraft { + NFLDraftees: NFLDraftee[]; + NFLWarRoomMap: {[key: uint]: NFLWarRoom}; + DraftScoutingProfileMap: {[key: uint]: ScoutingProfile}; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.NFLDraftees = this.convertValues(source["NFLDraftees"], NFLDraftee); + this.NFLWarRoomMap = this.convertValues(source["NFLWarRoomMap"], NFLWarRoom, true); + this.DraftScoutingProfileMap = this.convertValues(source["DraftScoutingProfileMap"], ScoutingProfile, true); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NullInt64 { + Int64: number; + Valid: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Int64 = source["Int64"]; + this.Valid = source["Valid"]; + } +} +export class TransferPortalProfile { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + SeasonID: number; + CollegePlayerID: number; + ProfileID: number; + PromiseID: NullInt64; + TeamAbbreviation: string; + TotalPoints: number; + CurrentWeeksPoints: number; + PreviouslySpentPoints: number; + SpendingCount: number; + RemovedFromBoard: boolean; + RolledOnPromise: boolean; + LockProfile: boolean; + IsSigned: boolean; + Recruiter: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.SeasonID = source["SeasonID"]; + this.CollegePlayerID = source["CollegePlayerID"]; + this.ProfileID = source["ProfileID"]; + this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.TotalPoints = source["TotalPoints"]; + this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; + this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; + this.SpendingCount = source["SpendingCount"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.RolledOnPromise = source["RolledOnPromise"]; + this.LockProfile = source["LockProfile"]; + this.IsSigned = source["IsSigned"]; + this.Recruiter = source["Recruiter"]; } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } } - - -export class BaseTeam { - TeamName: string; - Mascot: string; - TeamAbbr: string; - Coach: string; - City: string; - State: string; - Country: string; - StadiumID: number; - Stadium: string; - StadiumCapacity: number; - RecordAttendance: number; - Enrollment: number; - FirstPlayed: number; - ColorOne: string; - ColorTwo: string; - ColorThree: string; - DiscordID: string; - OverallGrade: string; - OffenseGrade: string; - DefenseGrade: string; - SpecialTeamsGrade: string; - PenaltyMarks: number; - JerseyType: number; - LastLogin: Time; +export class BootstrapDataPortal { + TeamProfileMap: {[key: string]: RecruitingTeamProfile}; + TransferPortalProfiles: TransferPortalProfile[]; + CollegePromises: CollegePromise[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.TeamName = source["TeamName"]; - this.Mascot = source["Mascot"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Coach = source["Coach"]; - this.City = source["City"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.StadiumID = source["StadiumID"]; - this.Stadium = source["Stadium"]; - this.StadiumCapacity = source["StadiumCapacity"]; - this.RecordAttendance = source["RecordAttendance"]; - this.Enrollment = source["Enrollment"]; - this.FirstPlayed = source["FirstPlayed"]; - this.ColorOne = source["ColorOne"]; - this.ColorTwo = source["ColorTwo"]; - this.ColorThree = source["ColorThree"]; - this.DiscordID = source["DiscordID"]; - this.OverallGrade = source["OverallGrade"]; - this.OffenseGrade = source["OffenseGrade"]; - this.DefenseGrade = source["DefenseGrade"]; - this.SpecialTeamsGrade = source["SpecialTeamsGrade"]; - this.PenaltyMarks = source["PenaltyMarks"]; - this.JerseyType = source["JerseyType"]; - this.LastLogin = this.convertValues(source["LastLogin"], Time); + this.TeamProfileMap = source["TeamProfileMap"]; + this.TransferPortalProfiles = this.convertValues(source["TransferPortalProfiles"], TransferPortalProfile); + this.CollegePromises = this.convertValues(source["CollegePromises"], CollegePromise); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -5954,27 +6199,54 @@ export class BaseTeam { return a; } } +export class BootstrapDataGameplan { + CollegeGameplanMap: {[key: uint]: CollegeGameplan}; + CollegeDepthChart: CollegeTeamDepthChart; + CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; + NFLGameplanMap: {[key: uint]: NFLGameplan}; + NFLDepthChart: NFLDepthChart; + NFLDepthChartMap: {[key: uint]: NFLDepthChart}; + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeGameplanMap = this.convertValues(source["CollegeGameplanMap"], CollegeGameplan, true); + this.CollegeDepthChart = this.convertValues(source["CollegeDepthChart"], CollegeTeamDepthChart); + this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); + this.NFLGameplanMap = this.convertValues(source["NFLGameplanMap"], NFLGameplan, true); + this.NFLDepthChart = this.convertValues(source["NFLDepthChart"], NFLDepthChart); + this.NFLDepthChartMap = this.convertValues(source["NFLDepthChartMap"], NFLDepthChart, true); + } -export class Stadium { + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NewsLog { ID: number; CreatedAt: Time; UpdatedAt: Time; DeletedAt: Time; - StadiumName: string; + WeekID: number; + Week: number; + SeasonID: number; TeamID: number; - TeamAbbr: string; - City: string; - State: string; - Country: string; - Region: string; - WeatherRegion: string; - Capacity: number; - RecordAttendance: number; - FirstSeason: number; - LeagueID: number; - LeagueName: string; - IsDomed: boolean; + MessageType: string; + Message: string; + League: string; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -5982,20 +6254,13 @@ export class Stadium { this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.StadiumName = source["StadiumName"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.SeasonID = source["SeasonID"]; this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.City = source["City"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.Region = source["Region"]; - this.WeatherRegion = source["WeatherRegion"]; - this.Capacity = source["Capacity"]; - this.RecordAttendance = source["RecordAttendance"]; - this.FirstSeason = source["FirstSeason"]; - this.LeagueID = source["LeagueID"]; - this.LeagueName = source["LeagueName"]; - this.IsDomed = source["IsDomed"]; + this.MessageType = source["MessageType"]; + this.Message = source["Message"]; + this.League = source["League"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6016,37 +6281,14 @@ export class Stadium { return a; } } - - - - - - - -export class CreateRecruitProfileDto { - PlayerID: number; - SeasonID: number; - RecruitID: number; - ProfileID: number; - Team: string; - RES: number; - AffinityOneEligible: boolean; - AffinityTwoEligible: boolean; - PlayerRecruit: Recruit; - Recruiter: string; +export class BootstrapDataNews { + CollegeNews: NewsLog[]; + ProNews: NewsLog[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.SeasonID = source["SeasonID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.Team = source["Team"]; - this.RES = source["RES"]; - this.AffinityOneEligible = source["AffinityOneEligible"]; - this.AffinityTwoEligible = source["AffinityTwoEligible"]; - this.PlayerRecruit = this.convertValues(source["PlayerRecruit"], Recruit); - this.Recruiter = source["Recruiter"]; + this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); + this.ProNews = this.convertValues(source["ProNews"], NewsLog); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6067,70 +6309,58 @@ export class CreateRecruitProfileDto { return a; } } -export class UpdateRecruitPointsDto { - RecruitPointsID: number; - RecruitID: number; - ProfileID: number; - Team: string; - WeekID: number; - AllocationID: number; - SpentPoints: number; - RewardScholarship: boolean; - RevokeScholarship: boolean; +export class FlexComparisonModel { + TeamOneID: number; + TeamOne: string; + TeamOneWins: number; + TeamOneLosses: number; + TeamOneStreak: number; + TeamOneMSeason: number; + TeamOneMScore: string; + TeamTwoID: number; + TeamTwo: string; + TeamTwoWins: number; + TeamTwoLosses: number; + TeamTwoStreak: number; + TeamTwoMSeason: number; + TeamTwoMScore: string; + CurrentStreak: number; + LatestWin: string; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.RecruitPointsID = source["RecruitPointsID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.Team = source["Team"]; - this.WeekID = source["WeekID"]; - this.AllocationID = source["AllocationID"]; - this.SpentPoints = source["SpentPoints"]; - this.RewardScholarship = source["RewardScholarship"]; - this.RevokeScholarship = source["RevokeScholarship"]; + this.TeamOneID = source["TeamOneID"]; + this.TeamOne = source["TeamOne"]; + this.TeamOneWins = source["TeamOneWins"]; + this.TeamOneLosses = source["TeamOneLosses"]; + this.TeamOneStreak = source["TeamOneStreak"]; + this.TeamOneMSeason = source["TeamOneMSeason"]; + this.TeamOneMScore = source["TeamOneMScore"]; + this.TeamTwoID = source["TeamTwoID"]; + this.TeamTwo = source["TeamTwo"]; + this.TeamTwoWins = source["TeamTwoWins"]; + this.TeamTwoLosses = source["TeamTwoLosses"]; + this.TeamTwoStreak = source["TeamTwoStreak"]; + this.TeamTwoMSeason = source["TeamTwoMSeason"]; + this.TeamTwoMScore = source["TeamTwoMScore"]; + this.CurrentStreak = source["CurrentStreak"]; + this.LatestWin = source["LatestWin"]; } } -export class CrootProfile { - ID: number; - SeasonID: number; - RecruitID: number; - ProfileID: number; - TotalPoints: number; - CurrentWeeksPoints: number; - SpendingCount: number; - RecruitingEfficiencyScore: number; - Scholarship: boolean; - ScholarshipRevoked: boolean; - AffinityOneEligible: boolean; - AffinityTwoEligible: boolean; - TeamAbbreviation: string; - RemovedFromBoard: boolean; - IsSigned: boolean; - IsLocked: boolean; - CaughtCheating: boolean; - Recruit: Croot; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.SeasonID = source["SeasonID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; - this.Scholarship = source["Scholarship"]; - this.ScholarshipRevoked = source["ScholarshipRevoked"]; - this.AffinityOneEligible = source["AffinityOneEligible"]; - this.AffinityTwoEligible = source["AffinityTwoEligible"]; - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.IsSigned = source["IsSigned"]; - this.IsLocked = source["IsLocked"]; - this.CaughtCheating = source["CaughtCheating"]; - this.Recruit = this.convertValues(source["Recruit"], Croot); +export class CollegeTeamProfileData { + CareerStats: CollegePlayerSeasonStats[]; + CollegeStandings: CollegeStandings[]; + Rivalries: FlexComparisonModel[]; + PlayerMap: {[key: uint]: CollegePlayer}; + CollegeGames: CollegeGame[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CareerStats = this.convertValues(source["CareerStats"], CollegePlayerSeasonStats); + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.Rivalries = this.convertValues(source["Rivalries"], FlexComparisonModel); + this.PlayerMap = this.convertValues(source["PlayerMap"], CollegePlayer, true); + this.CollegeGames = this.convertValues(source["CollegeGames"], CollegeGame); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6151,80 +6381,26 @@ export class CrootProfile { return a; } } -export class SimTeamBoardResponse { - ID: number; - TeamID: number; - Team: string; - TeamAbbreviation: string; - State: string; - ScholarshipsAvailable: number; - WeeklyPoints: number; - SpentPoints: number; - TotalCommitments: number; - RecruitClassSize: number; - BaseEfficiencyScore: number; - RecruitingEfficiencyScore: number; - PreviousOverallWinPer: number; - PreviousConferenceWinPer: number; - CurrentOverallWinPer: number; - CurrentConferenceWinPer: number; - ESPNScore: number; - RivalsScore: number; - Rank247Score: number; - CompositeScore: number; - IsAI: boolean; - IsUserTeam: boolean; - BattlesWon: number; - BattlesLost: number; - AIMinThreshold: number; - AIMaxThreshold: number; - AIStarMin: number; - AIStarMax: number; - AIAutoOfferscholarships: boolean; - OffensiveScheme: string; - DefensiveScheme: string; - Recruiter: string; - RecruitingClassRank: number; - Recruits: CrootProfile[]; - Affinities: ProfileAffinity[]; +export class SearchStatsResponse { + CFBPlayerGameStats: CollegePlayerStats[]; + CFBPlayerSeasonStats: CollegePlayerSeasonStats[]; + CFBTeamGameStats: CollegeTeamStats[]; + CFBTeamSeasonStats: CollegeTeamSeasonStats[]; + NFLPlayerGameStats: NFLPlayerStats[]; + NFLPlayerSeasonStats: NFLPlayerSeasonStats[]; + NFLTeamGameStats: NFLTeamStats[]; + NFLTeamSeasonStats: NFLTeamSeasonStats[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.State = source["State"]; - this.ScholarshipsAvailable = source["ScholarshipsAvailable"]; - this.WeeklyPoints = source["WeeklyPoints"]; - this.SpentPoints = source["SpentPoints"]; - this.TotalCommitments = source["TotalCommitments"]; - this.RecruitClassSize = source["RecruitClassSize"]; - this.BaseEfficiencyScore = source["BaseEfficiencyScore"]; - this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; - this.PreviousOverallWinPer = source["PreviousOverallWinPer"]; - this.PreviousConferenceWinPer = source["PreviousConferenceWinPer"]; - this.CurrentOverallWinPer = source["CurrentOverallWinPer"]; - this.CurrentConferenceWinPer = source["CurrentConferenceWinPer"]; - this.ESPNScore = source["ESPNScore"]; - this.RivalsScore = source["RivalsScore"]; - this.Rank247Score = source["Rank247Score"]; - this.CompositeScore = source["CompositeScore"]; - this.IsAI = source["IsAI"]; - this.IsUserTeam = source["IsUserTeam"]; - this.BattlesWon = source["BattlesWon"]; - this.BattlesLost = source["BattlesLost"]; - this.AIMinThreshold = source["AIMinThreshold"]; - this.AIMaxThreshold = source["AIMaxThreshold"]; - this.AIStarMin = source["AIStarMin"]; - this.AIStarMax = source["AIStarMax"]; - this.AIAutoOfferscholarships = source["AIAutoOfferscholarships"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.Recruiter = source["Recruiter"]; - this.RecruitingClassRank = source["RecruitingClassRank"]; - this.Recruits = this.convertValues(source["Recruits"], CrootProfile); - this.Affinities = this.convertValues(source["Affinities"], ProfileAffinity); + this.CFBPlayerGameStats = this.convertValues(source["CFBPlayerGameStats"], CollegePlayerStats); + this.CFBPlayerSeasonStats = this.convertValues(source["CFBPlayerSeasonStats"], CollegePlayerSeasonStats); + this.CFBTeamGameStats = this.convertValues(source["CFBTeamGameStats"], CollegeTeamStats); + this.CFBTeamSeasonStats = this.convertValues(source["CFBTeamSeasonStats"], CollegeTeamSeasonStats); + this.NFLPlayerGameStats = this.convertValues(source["NFLPlayerGameStats"], NFLPlayerStats); + this.NFLPlayerSeasonStats = this.convertValues(source["NFLPlayerSeasonStats"], NFLPlayerSeasonStats); + this.NFLTeamGameStats = this.convertValues(source["NFLTeamGameStats"], NFLTeamStats); + this.NFLTeamSeasonStats = this.convertValues(source["NFLTeamSeasonStats"], NFLTeamSeasonStats); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6245,50 +6421,86 @@ export class SimTeamBoardResponse { return a; } } -export class UpdateRecruitingBoardDTO { - Profile: RecruitingTeamProfile; - Recruits: RecruitPlayerProfile[]; - TeamID: number; +export class FaceDataResponse { + PlayerID: number; + Accessories: string; + Body: string; + Ear: string; + Eye: string; + EyeLine: string; + Eyebrow: string; + FacialHair: string; + Glasses: string; + Hair: string; + HairBG: string; + HairFlip: boolean; + Head: string; + Jersey: string; + MiscLine: string; + Mouth: string; + MouthFlip: boolean; + Nose: string; + NoseFlip: boolean; + SmileLine: string; + BodySize: number; + EarSize: number; + EyeAngle: number; + EyeBrowAngle: number; + FaceSize: number; + FacialHairShave: string; + NoseSize: number; + SmileLineSize: number; + SkinColor: string; + HairColor: string; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Profile = this.convertValues(source["Profile"], RecruitingTeamProfile); - this.Recruits = this.convertValues(source["Recruits"], RecruitPlayerProfile); - this.TeamID = source["TeamID"]; + this.PlayerID = source["PlayerID"]; + this.Accessories = source["Accessories"]; + this.Body = source["Body"]; + this.Ear = source["Ear"]; + this.Eye = source["Eye"]; + this.EyeLine = source["EyeLine"]; + this.Eyebrow = source["Eyebrow"]; + this.FacialHair = source["FacialHair"]; + this.Glasses = source["Glasses"]; + this.Hair = source["Hair"]; + this.HairBG = source["HairBG"]; + this.HairFlip = source["HairFlip"]; + this.Head = source["Head"]; + this.Jersey = source["Jersey"]; + this.MiscLine = source["MiscLine"]; + this.Mouth = source["Mouth"]; + this.MouthFlip = source["MouthFlip"]; + this.Nose = source["Nose"]; + this.NoseFlip = source["NoseFlip"]; + this.SmileLine = source["SmileLine"]; + this.BodySize = source["BodySize"]; + this.EarSize = source["EarSize"]; + this.EyeAngle = source["EyeAngle"]; + this.EyeBrowAngle = source["EyeBrowAngle"]; + this.FaceSize = source["FaceSize"]; + this.FacialHairShave = source["FacialHairShave"]; + this.NoseSize = source["NoseSize"]; + this.SmileLineSize = source["SmileLineSize"]; + this.SkinColor = source["SkinColor"]; + this.HairColor = source["HairColor"]; } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } } -export class RecruitPointAllocation { +export class NFLRequest { ID: number; CreatedAt: Time; UpdatedAt: Time; DeletedAt: Time; - RecruitID: number; - TeamProfileID: number; - RecruitProfileID: number; - WeekID: number; - Points: number; - RESAffectedPoints: number; - AffinityOneApplied: boolean; - AffinityTwoApplied: boolean; - CaughtCheating: boolean; + Username: string; + NFLTeamID: number; + NFLTeam: string; + NFLTeamAbbreviation: string; + IsOwner: boolean; + IsManager: boolean; + IsCoach: boolean; + IsAssistant: boolean; + IsApproved: boolean; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -6296,15 +6508,15 @@ export class RecruitPointAllocation { this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.RecruitID = source["RecruitID"]; - this.TeamProfileID = source["TeamProfileID"]; - this.RecruitProfileID = source["RecruitProfileID"]; - this.WeekID = source["WeekID"]; - this.Points = source["Points"]; - this.RESAffectedPoints = source["RESAffectedPoints"]; - this.AffinityOneApplied = source["AffinityOneApplied"]; - this.AffinityTwoApplied = source["AffinityTwoApplied"]; - this.CaughtCheating = source["CaughtCheating"]; + this.Username = source["Username"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLTeam = source["NFLTeam"]; + this.NFLTeamAbbreviation = source["NFLTeamAbbreviation"]; + this.IsOwner = source["IsOwner"]; + this.IsManager = source["IsManager"]; + this.IsCoach = source["IsCoach"]; + this.IsAssistant = source["IsAssistant"]; + this.IsApproved = source["IsApproved"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6325,47 +6537,24 @@ export class RecruitPointAllocation { return a; } } - -export class RedshirtDTO { - PlayerID: number; - RedshirtStatus: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.RedshirtStatus = source["RedshirtStatus"]; - } -} -export class CollegePromise { +export class TeamRequest { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: DeletedAt; + DeletedAt: Time; TeamID: number; - CollegePlayerID: number; - PromiseType: string; - PromiseWeight: string; - Benchmark: number; - BenchmarkStr: string; - PromiseMade: boolean; - IsFullfilled: boolean; - IsActive: boolean; + Username: string; + IsApproved: boolean; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.TeamID = source["TeamID"]; - this.CollegePlayerID = source["CollegePlayerID"]; - this.PromiseType = source["PromiseType"]; - this.PromiseWeight = source["PromiseWeight"]; - this.Benchmark = source["Benchmark"]; - this.BenchmarkStr = source["BenchmarkStr"]; - this.PromiseMade = source["PromiseMade"]; - this.IsFullfilled = source["IsFullfilled"]; - this.IsActive = source["IsActive"]; + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.TeamID = source["TeamID"]; + this.Username = source["Username"]; + this.IsApproved = source["IsApproved"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6386,14 +6575,14 @@ export class CollegePromise { return a; } } -export class CFBRosterPageResponse { - Players: CollegePlayer[]; - Promises: CollegePromise[]; +export class TeamRequestsResponse { + CollegeRequests: TeamRequest[]; + ProRequests: NFLRequest[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Players = this.convertValues(source["Players"], CollegePlayer); - this.Promises = this.convertValues(source["Promises"], CollegePromise); + this.CollegeRequests = this.convertValues(source["CollegeRequests"], TeamRequest); + this.ProRequests = this.convertValues(source["ProRequests"], NFLRequest); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6414,57 +6603,236 @@ export class CFBRosterPageResponse { return a; } } +export class BasePlayer { + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PreviousTeamID: number; + PreviousTeam: string; + Height: number; + Weight: number; + Age: number; + Stars: number; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + Progression: number; + Discipline: number; + PotentialGrade: string; + FreeAgency: string; + Personality: string; + RecruitingBias: string; + WorkEthic: string; + AcademicBias: string; + IsInjured: boolean; + InjuryName: string; + InjuryType: string; + WeeksOfRecovery: number; + InjuryReserve: boolean; + PrimeAge: number; + Clutch: number; + Shotgun: number; + PositionTwo: string; + ArchetypeTwo: string; + RelativeID: number; + RelativeType: number; + Notes: string; -export class NullInt64 { - Int64: number; - Valid: boolean; + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + } +} + + +export class BaseTeam { + TeamName: string; + Mascot: string; + TeamAbbr: string; + Coach: string; + City: string; + State: string; + Country: string; + StadiumID: number; + Stadium: string; + StadiumCapacity: number; + RecordAttendance: number; + Enrollment: number; + FirstPlayed: number; + ColorOne: string; + ColorTwo: string; + ColorThree: string; + DiscordID: string; + OverallGrade: string; + OffenseGrade: string; + DefenseGrade: string; + SpecialTeamsGrade: string; + PenaltyMarks: number; + JerseyType: number; + LastLogin: Time; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Int64 = source["Int64"]; - this.Valid = source["Valid"]; + this.TeamName = source["TeamName"]; + this.Mascot = source["Mascot"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Coach = source["Coach"]; + this.City = source["City"]; + this.State = source["State"]; + this.Country = source["Country"]; + this.StadiumID = source["StadiumID"]; + this.Stadium = source["Stadium"]; + this.StadiumCapacity = source["StadiumCapacity"]; + this.RecordAttendance = source["RecordAttendance"]; + this.Enrollment = source["Enrollment"]; + this.FirstPlayed = source["FirstPlayed"]; + this.ColorOne = source["ColorOne"]; + this.ColorTwo = source["ColorTwo"]; + this.ColorThree = source["ColorThree"]; + this.DiscordID = source["DiscordID"]; + this.OverallGrade = source["OverallGrade"]; + this.OffenseGrade = source["OffenseGrade"]; + this.DefenseGrade = source["DefenseGrade"]; + this.SpecialTeamsGrade = source["SpecialTeamsGrade"]; + this.PenaltyMarks = source["PenaltyMarks"]; + this.JerseyType = source["JerseyType"]; + this.LastLogin = this.convertValues(source["LastLogin"], Time); } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } } -export class TransferPortalProfile { + + +export class Stadium { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: DeletedAt; - SeasonID: number; - CollegePlayerID: number; - ProfileID: number; - PromiseID: NullInt64; - TeamAbbreviation: string; - TotalPoints: number; - CurrentWeeksPoints: number; - PreviouslySpentPoints: number; - SpendingCount: number; - RemovedFromBoard: boolean; - RolledOnPromise: boolean; - LockProfile: boolean; - IsSigned: boolean; - Recruiter: string; + DeletedAt: Time; + StadiumName: string; + TeamID: number; + TeamAbbr: string; + City: string; + State: string; + Country: string; + Region: string; + WeatherRegion: string; + Capacity: number; + RecordAttendance: number; + FirstSeason: number; + LeagueID: number; + LeagueName: string; + IsDomed: boolean; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.SeasonID = source["SeasonID"]; - this.CollegePlayerID = source["CollegePlayerID"]; - this.ProfileID = source["ProfileID"]; - this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.RolledOnPromise = source["RolledOnPromise"]; - this.LockProfile = source["LockProfile"]; - this.IsSigned = source["IsSigned"]; - this.Recruiter = source["Recruiter"]; + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.StadiumName = source["StadiumName"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.City = source["City"]; + this.State = source["State"]; + this.Country = source["Country"]; + this.Region = source["Region"]; + this.WeatherRegion = source["WeatherRegion"]; + this.Capacity = source["Capacity"]; + this.RecordAttendance = source["RecordAttendance"]; + this.FirstSeason = source["FirstSeason"]; + this.LeagueID = source["LeagueID"]; + this.LeagueName = source["LeagueName"]; + this.IsDomed = source["IsDomed"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6485,122 +6853,37 @@ export class TransferPortalProfile { return a; } } -export class TransferPlayerResponse { - FirstName: string; - LastName: string; - Archetype: string; - Position: string; - PositionTwo: string; - ArchetypeTwo: string; - Age: number; - Year: number; - State: string; - Country: string; - Stars: number; - Height: number; - Weight: number; - PotentialGrade: string; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - OverallGrade: string; - Personality: string; - RecruitingBias: string; - RecruitingBiasValue: string; - WorkEthic: string; - AcademicBias: string; + + + + + + + +export class CreateRecruitProfileDto { PlayerID: number; - TeamID: number; - TeamAbbr: string; - IsRedshirting: boolean; - IsRedshirt: boolean; - PreviousTeamID: number; - PreviousTeam: string; - TransferStatus: number; - TransferLikeliness: string; - LegacyID: number; - SeasonStats: CollegePlayerSeasonStats; - Stats: CollegePlayerStats; - LeadingTeams: LeadingTeams[]; + SeasonID: number; + RecruitID: number; + ProfileID: number; + Team: string; + RES: number; + AffinityOneEligible: boolean; + AffinityTwoEligible: boolean; + PlayerRecruit: Recruit; + Recruiter: string; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Archetype = source["Archetype"]; - this.Position = source["Position"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Age = source["Age"]; - this.Year = source["Year"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.Stars = source["Stars"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.PotentialGrade = source["PotentialGrade"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.OverallGrade = source["OverallGrade"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.RecruitingBiasValue = source["RecruitingBiasValue"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.IsRedshirting = source["IsRedshirting"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.LegacyID = source["LegacyID"]; - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); + this.SeasonID = source["SeasonID"]; + this.RecruitID = source["RecruitID"]; + this.ProfileID = source["ProfileID"]; + this.Team = source["Team"]; + this.RES = source["RES"]; + this.AffinityOneEligible = source["AffinityOneEligible"]; + this.AffinityTwoEligible = source["AffinityTwoEligible"]; + this.PlayerRecruit = this.convertValues(source["PlayerRecruit"], Recruit); + this.Recruiter = source["Recruiter"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6621,78 +6904,70 @@ export class TransferPlayerResponse { return a; } } -export class TransferPortalProfileResponse { +export class UpdateRecruitPointsDto { + RecruitPointsID: number; + RecruitID: number; + ProfileID: number; + Team: string; + WeekID: number; + AllocationID: number; + SpentPoints: number; + RewardScholarship: boolean; + RevokeScholarship: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.RecruitPointsID = source["RecruitPointsID"]; + this.RecruitID = source["RecruitID"]; + this.ProfileID = source["ProfileID"]; + this.Team = source["Team"]; + this.WeekID = source["WeekID"]; + this.AllocationID = source["AllocationID"]; + this.SpentPoints = source["SpentPoints"]; + this.RewardScholarship = source["RewardScholarship"]; + this.RevokeScholarship = source["RevokeScholarship"]; + } +} +export class CrootProfile { ID: number; SeasonID: number; - CollegePlayerID: number; + RecruitID: number; ProfileID: number; - PromiseID: number; - TeamAbbreviation: string; TotalPoints: number; CurrentWeeksPoints: number; - PreviouslySpentPoints: number; SpendingCount: number; + RecruitingEfficiencyScore: number; + Scholarship: boolean; + ScholarshipRevoked: boolean; + AffinityOneEligible: boolean; + AffinityTwoEligible: boolean; + TeamAbbreviation: string; RemovedFromBoard: boolean; - RolledOnPromise: boolean; - LockProfile: boolean; IsSigned: boolean; - Recruiter: string; - CollegePlayer: TransferPlayerResponse; - Promise: CollegePromise; + IsLocked: boolean; + CaughtCheating: boolean; + Recruit: Croot; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.SeasonID = source["SeasonID"]; - this.CollegePlayerID = source["CollegePlayerID"]; + this.RecruitID = source["RecruitID"]; this.ProfileID = source["ProfileID"]; - this.PromiseID = source["PromiseID"]; - this.TeamAbbreviation = source["TeamAbbreviation"]; this.TotalPoints = source["TotalPoints"]; this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; this.SpendingCount = source["SpendingCount"]; + this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; + this.Scholarship = source["Scholarship"]; + this.ScholarshipRevoked = source["ScholarshipRevoked"]; + this.AffinityOneEligible = source["AffinityOneEligible"]; + this.AffinityTwoEligible = source["AffinityTwoEligible"]; + this.TeamAbbreviation = source["TeamAbbreviation"]; this.RemovedFromBoard = source["RemovedFromBoard"]; - this.RolledOnPromise = source["RolledOnPromise"]; - this.LockProfile = source["LockProfile"]; this.IsSigned = source["IsSigned"]; - this.Recruiter = source["Recruiter"]; - this.CollegePlayer = this.convertValues(source["CollegePlayer"], TransferPlayerResponse); - this.Promise = this.convertValues(source["Promise"], CollegePromise); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class TransferPortalResponse { - Team: RecruitingTeamProfile; - TeamBoard: TransferPortalProfileResponse[]; - TeamPromises: CollegePromise[]; - Players: TransferPlayerResponse[]; - TeamList: CollegeTeam[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Team = this.convertValues(source["Team"], RecruitingTeamProfile); - this.TeamBoard = this.convertValues(source["TeamBoard"], TransferPortalProfileResponse); - this.TeamPromises = this.convertValues(source["TeamPromises"], CollegePromise); - this.Players = this.convertValues(source["Players"], TransferPlayerResponse); - this.TeamList = this.convertValues(source["TeamList"], CollegeTeam); + this.IsLocked = source["IsLocked"]; + this.CaughtCheating = source["CaughtCheating"]; + this.Recruit = this.convertValues(source["Recruit"], Croot); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6713,12 +6988,80 @@ export class TransferPortalResponse { return a; } } -export class TransferPortalBoardDto { - Profiles: TransferPortalProfile[]; +export class SimTeamBoardResponse { + ID: number; + TeamID: number; + Team: string; + TeamAbbreviation: string; + State: string; + ScholarshipsAvailable: number; + WeeklyPoints: number; + SpentPoints: number; + TotalCommitments: number; + RecruitClassSize: number; + BaseEfficiencyScore: number; + RecruitingEfficiencyScore: number; + PreviousOverallWinPer: number; + PreviousConferenceWinPer: number; + CurrentOverallWinPer: number; + CurrentConferenceWinPer: number; + ESPNScore: number; + RivalsScore: number; + Rank247Score: number; + CompositeScore: number; + IsAI: boolean; + IsUserTeam: boolean; + BattlesWon: number; + BattlesLost: number; + AIMinThreshold: number; + AIMaxThreshold: number; + AIStarMin: number; + AIStarMax: number; + AIAutoOfferscholarships: boolean; + OffensiveScheme: string; + DefensiveScheme: string; + Recruiter: string; + RecruitingClassRank: number; + Recruits: CrootProfile[]; + Affinities: ProfileAffinity[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Profiles = this.convertValues(source["Profiles"], TransferPortalProfile); + this.ID = source["ID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.State = source["State"]; + this.ScholarshipsAvailable = source["ScholarshipsAvailable"]; + this.WeeklyPoints = source["WeeklyPoints"]; + this.SpentPoints = source["SpentPoints"]; + this.TotalCommitments = source["TotalCommitments"]; + this.RecruitClassSize = source["RecruitClassSize"]; + this.BaseEfficiencyScore = source["BaseEfficiencyScore"]; + this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; + this.PreviousOverallWinPer = source["PreviousOverallWinPer"]; + this.PreviousConferenceWinPer = source["PreviousConferenceWinPer"]; + this.CurrentOverallWinPer = source["CurrentOverallWinPer"]; + this.CurrentConferenceWinPer = source["CurrentConferenceWinPer"]; + this.ESPNScore = source["ESPNScore"]; + this.RivalsScore = source["RivalsScore"]; + this.Rank247Score = source["Rank247Score"]; + this.CompositeScore = source["CompositeScore"]; + this.IsAI = source["IsAI"]; + this.IsUserTeam = source["IsUserTeam"]; + this.BattlesWon = source["BattlesWon"]; + this.BattlesLost = source["BattlesLost"]; + this.AIMinThreshold = source["AIMinThreshold"]; + this.AIMaxThreshold = source["AIMaxThreshold"]; + this.AIStarMin = source["AIStarMin"]; + this.AIStarMax = source["AIStarMax"]; + this.AIAutoOfferscholarships = source["AIAutoOfferscholarships"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.Recruiter = source["Recruiter"]; + this.RecruitingClassRank = source["RecruitingClassRank"]; + this.Recruits = this.convertValues(source["Recruits"], CrootProfile); + this.Affinities = this.convertValues(source["Affinities"], ProfileAffinity); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6739,15 +7082,15 @@ export class TransferPortalBoardDto { return a; } } -export class UpdateTransferPortalBoard { - Profile: SimTeamBoardResponse; - Players: TransferPortalProfileResponse[]; +export class UpdateRecruitingBoardDTO { + Profile: RecruitingTeamProfile; + Recruits: RecruitPlayerProfile[]; TeamID: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Profile = this.convertValues(source["Profile"], SimTeamBoardResponse); - this.Players = this.convertValues(source["Players"], TransferPortalProfileResponse); + this.Profile = this.convertValues(source["Profile"], RecruitingTeamProfile); + this.Recruits = this.convertValues(source["Recruits"], RecruitPlayerProfile); this.TeamID = source["TeamID"]; } @@ -6769,187 +7112,36 @@ export class UpdateTransferPortalBoard { return a; } } - - - - -export class FreeAgencyOfferDTO { - ID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - ContractLength: number; - Y1BaseSalary: number; - Y1Bonus: number; - Y2BaseSalary: number; - Y2Bonus: number; - Y3BaseSalary: number; - Y3Bonus: number; - Y4BaseSalary: number; - Y4Bonus: number; - Y5BaseSalary: number; - Y5Bonus: number; - AAV: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.ContractLength = source["ContractLength"]; - this.Y1BaseSalary = source["Y1BaseSalary"]; - this.Y1Bonus = source["Y1Bonus"]; - this.Y2BaseSalary = source["Y2BaseSalary"]; - this.Y2Bonus = source["Y2Bonus"]; - this.Y3BaseSalary = source["Y3BaseSalary"]; - this.Y3Bonus = source["Y3Bonus"]; - this.Y4BaseSalary = source["Y4BaseSalary"]; - this.Y4Bonus = source["Y4Bonus"]; - this.Y5BaseSalary = source["Y5BaseSalary"]; - this.Y5Bonus = source["Y5Bonus"]; - this.AAV = source["AAV"]; - } -} -export class NFLWaiverOffDTO { - ID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - WaiverOrder: number; - IsActive: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.WaiverOrder = source["WaiverOrder"]; - this.IsActive = source["IsActive"]; - } -} - -export class CollegePollSubmission { +export class RecruitPointAllocation { ID: number; CreatedAt: Time; UpdatedAt: Time; - DeletedAt: DeletedAt; - Username: string; - SeasonID: number; + DeletedAt: Time; + RecruitID: number; + TeamProfileID: number; + RecruitProfileID: number; WeekID: number; - Week: number; - Rank1: string; - Rank1ID: number; - Rank2: string; - Rank2ID: number; - Rank3: string; - Rank3ID: number; - Rank4: string; - Rank4ID: number; - Rank5: string; - Rank5ID: number; - Rank6: string; - Rank6ID: number; - Rank7: string; - Rank7ID: number; - Rank8: string; - Rank8ID: number; - Rank9: string; - Rank9ID: number; - Rank10: string; - Rank10ID: number; - Rank11: string; - Rank11ID: number; - Rank12: string; - Rank12ID: number; - Rank13: string; - Rank13ID: number; - Rank14: string; - Rank14ID: number; - Rank15: string; - Rank15ID: number; - Rank16: string; - Rank16ID: number; - Rank17: string; - Rank17ID: number; - Rank18: string; - Rank18ID: number; - Rank19: string; - Rank19ID: number; - Rank20: string; - Rank20ID: number; - Rank21: string; - Rank21ID: number; - Rank22: string; - Rank22ID: number; - Rank23: string; - Rank23ID: number; - Rank24: string; - Rank24ID: number; - Rank25: string; - Rank25ID: number; + Points: number; + RESAffectedPoints: number; + AffinityOneApplied: boolean; + AffinityTwoApplied: boolean; + CaughtCheating: boolean; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; this.CreatedAt = this.convertValues(source["CreatedAt"], Time); this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.Username = source["Username"]; - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Rank1 = source["Rank1"]; - this.Rank1ID = source["Rank1ID"]; - this.Rank2 = source["Rank2"]; - this.Rank2ID = source["Rank2ID"]; - this.Rank3 = source["Rank3"]; - this.Rank3ID = source["Rank3ID"]; - this.Rank4 = source["Rank4"]; - this.Rank4ID = source["Rank4ID"]; - this.Rank5 = source["Rank5"]; - this.Rank5ID = source["Rank5ID"]; - this.Rank6 = source["Rank6"]; - this.Rank6ID = source["Rank6ID"]; - this.Rank7 = source["Rank7"]; - this.Rank7ID = source["Rank7ID"]; - this.Rank8 = source["Rank8"]; - this.Rank8ID = source["Rank8ID"]; - this.Rank9 = source["Rank9"]; - this.Rank9ID = source["Rank9ID"]; - this.Rank10 = source["Rank10"]; - this.Rank10ID = source["Rank10ID"]; - this.Rank11 = source["Rank11"]; - this.Rank11ID = source["Rank11ID"]; - this.Rank12 = source["Rank12"]; - this.Rank12ID = source["Rank12ID"]; - this.Rank13 = source["Rank13"]; - this.Rank13ID = source["Rank13ID"]; - this.Rank14 = source["Rank14"]; - this.Rank14ID = source["Rank14ID"]; - this.Rank15 = source["Rank15"]; - this.Rank15ID = source["Rank15ID"]; - this.Rank16 = source["Rank16"]; - this.Rank16ID = source["Rank16ID"]; - this.Rank17 = source["Rank17"]; - this.Rank17ID = source["Rank17ID"]; - this.Rank18 = source["Rank18"]; - this.Rank18ID = source["Rank18ID"]; - this.Rank19 = source["Rank19"]; - this.Rank19ID = source["Rank19ID"]; - this.Rank20 = source["Rank20"]; - this.Rank20ID = source["Rank20ID"]; - this.Rank21 = source["Rank21"]; - this.Rank21ID = source["Rank21ID"]; - this.Rank22 = source["Rank22"]; - this.Rank22ID = source["Rank22ID"]; - this.Rank23 = source["Rank23"]; - this.Rank23ID = source["Rank23ID"]; - this.Rank24 = source["Rank24"]; - this.Rank24ID = source["Rank24ID"]; - this.Rank25 = source["Rank25"]; - this.Rank25ID = source["Rank25ID"]; + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.RecruitID = source["RecruitID"]; + this.TeamProfileID = source["TeamProfileID"]; + this.RecruitProfileID = source["RecruitProfileID"]; + this.WeekID = source["WeekID"]; + this.Points = source["Points"]; + this.RESAffectedPoints = source["RESAffectedPoints"]; + this.AffinityOneApplied = source["AffinityOneApplied"]; + this.AffinityTwoApplied = source["AffinityTwoApplied"]; + this.CaughtCheating = source["CaughtCheating"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -6970,224 +7162,221 @@ export class CollegePollSubmission { return a; } } -export class CollegePollOfficial { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - SeasonID: number; - WeekID: number; - Week: number; - Rank1: string; - Rank1ID: number; - Rank1Votes: number; - Rank1No1Votes: number; - Rank2: string; - Rank2ID: number; - Rank2Votes: number; - Rank2No1Votes: number; - Rank3: string; - Rank3ID: number; - Rank3Votes: number; - Rank3No1Votes: number; - Rank4: string; - Rank4ID: number; - Rank4Votes: number; - Rank4No1Votes: number; - Rank5: string; - Rank5ID: number; - Rank5Votes: number; - Rank5No1Votes: number; - Rank6: string; - Rank6ID: number; - Rank6Votes: number; - Rank6No1Votes: number; - Rank7: string; - Rank7ID: number; - Rank7Votes: number; - Rank7No1Votes: number; - Rank8: string; - Rank8ID: number; - Rank8Votes: number; - Rank8No1Votes: number; - Rank9: string; - Rank9ID: number; - Rank9Votes: number; - Rank9No1Votes: number; - Rank10: string; - Rank10ID: number; - Rank10Votes: number; - Rank10No1Votes: number; - Rank11: string; - Rank11ID: number; - Rank11Votes: number; - Rank11No1Votes: number; - Rank12: string; - Rank12ID: number; - Rank12Votes: number; - Rank12No1Votes: number; - Rank13: string; - Rank13ID: number; - Rank13Votes: number; - Rank13No1Votes: number; - Rank14: string; - Rank14ID: number; - Rank14Votes: number; - Rank14No1Votes: number; - Rank15: string; - Rank15ID: number; - Rank15Votes: number; - Rank15No1Votes: number; - Rank16: string; - Rank16ID: number; - Rank16Votes: number; - Rank16No1Votes: number; - Rank17: string; - Rank17ID: number; - Rank17Votes: number; - Rank17No1Votes: number; - Rank18: string; - Rank18ID: number; - Rank18Votes: number; - Rank18No1Votes: number; - Rank19: string; - Rank19ID: number; - Rank19Votes: number; - Rank19No1Votes: number; - Rank20: string; - Rank20ID: number; - Rank20Votes: number; - Rank20No1Votes: number; - Rank21: string; - Rank21ID: number; - Rank21Votes: number; - Rank21No1Votes: number; - Rank22: string; - Rank22ID: number; - Rank22Votes: number; - Rank22No1Votes: number; - Rank23: string; - Rank23ID: number; - Rank23Votes: number; - Rank23No1Votes: number; - Rank24: string; - Rank24ID: number; - Rank24Votes: number; - Rank24No1Votes: number; - Rank25: string; - Rank25ID: number; - Rank25Votes: number; - Rank25No1Votes: number; + +export class RedshirtDTO { + PlayerID: number; + RedshirtStatus: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.PlayerID = source["PlayerID"]; + this.RedshirtStatus = source["RedshirtStatus"]; + } +} +export class CFBRosterPageResponse { + Players: CollegePlayer[]; + Promises: CollegePromise[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Players = this.convertValues(source["Players"], CollegePlayer); + this.Promises = this.convertValues(source["Promises"], CollegePromise); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + +export class TransferPlayerResponse { + FirstName: string; + LastName: string; + Archetype: string; + Position: string; + PositionTwo: string; + ArchetypeTwo: string; + Age: number; + Year: number; + State: string; + Country: string; + Stars: number; + Height: number; + Weight: number; + PotentialGrade: string; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + OverallGrade: string; + Personality: string; + RecruitingBias: string; + RecruitingBiasValue: string; + WorkEthic: string; + AcademicBias: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + IsRedshirting: boolean; + IsRedshirt: boolean; + PreviousTeamID: number; + PreviousTeam: string; + TransferStatus: number; + TransferLikeliness: string; + LegacyID: number; + SeasonStats: CollegePlayerSeasonStats; + Stats: CollegePlayerStats; + LeadingTeams: LeadingTeams[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Archetype = source["Archetype"]; + this.Position = source["Position"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.Age = source["Age"]; + this.Year = source["Year"]; + this.State = source["State"]; + this.Country = source["Country"]; + this.Stars = source["Stars"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.PotentialGrade = source["PotentialGrade"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.OverallGrade = source["OverallGrade"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.RecruitingBiasValue = source["RecruitingBiasValue"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.IsRedshirting = source["IsRedshirting"]; + this.IsRedshirt = source["IsRedshirt"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.LegacyID = source["LegacyID"]; + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class TransferPortalProfileResponse { + ID: number; + SeasonID: number; + CollegePlayerID: number; + ProfileID: number; + PromiseID: number; + TeamAbbreviation: string; + TotalPoints: number; + CurrentWeeksPoints: number; + PreviouslySpentPoints: number; + SpendingCount: number; + RemovedFromBoard: boolean; + RolledOnPromise: boolean; + LockProfile: boolean; + IsSigned: boolean; + Recruiter: string; + CollegePlayer: TransferPlayerResponse; + Promise: CollegePromise; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Rank1 = source["Rank1"]; - this.Rank1ID = source["Rank1ID"]; - this.Rank1Votes = source["Rank1Votes"]; - this.Rank1No1Votes = source["Rank1No1Votes"]; - this.Rank2 = source["Rank2"]; - this.Rank2ID = source["Rank2ID"]; - this.Rank2Votes = source["Rank2Votes"]; - this.Rank2No1Votes = source["Rank2No1Votes"]; - this.Rank3 = source["Rank3"]; - this.Rank3ID = source["Rank3ID"]; - this.Rank3Votes = source["Rank3Votes"]; - this.Rank3No1Votes = source["Rank3No1Votes"]; - this.Rank4 = source["Rank4"]; - this.Rank4ID = source["Rank4ID"]; - this.Rank4Votes = source["Rank4Votes"]; - this.Rank4No1Votes = source["Rank4No1Votes"]; - this.Rank5 = source["Rank5"]; - this.Rank5ID = source["Rank5ID"]; - this.Rank5Votes = source["Rank5Votes"]; - this.Rank5No1Votes = source["Rank5No1Votes"]; - this.Rank6 = source["Rank6"]; - this.Rank6ID = source["Rank6ID"]; - this.Rank6Votes = source["Rank6Votes"]; - this.Rank6No1Votes = source["Rank6No1Votes"]; - this.Rank7 = source["Rank7"]; - this.Rank7ID = source["Rank7ID"]; - this.Rank7Votes = source["Rank7Votes"]; - this.Rank7No1Votes = source["Rank7No1Votes"]; - this.Rank8 = source["Rank8"]; - this.Rank8ID = source["Rank8ID"]; - this.Rank8Votes = source["Rank8Votes"]; - this.Rank8No1Votes = source["Rank8No1Votes"]; - this.Rank9 = source["Rank9"]; - this.Rank9ID = source["Rank9ID"]; - this.Rank9Votes = source["Rank9Votes"]; - this.Rank9No1Votes = source["Rank9No1Votes"]; - this.Rank10 = source["Rank10"]; - this.Rank10ID = source["Rank10ID"]; - this.Rank10Votes = source["Rank10Votes"]; - this.Rank10No1Votes = source["Rank10No1Votes"]; - this.Rank11 = source["Rank11"]; - this.Rank11ID = source["Rank11ID"]; - this.Rank11Votes = source["Rank11Votes"]; - this.Rank11No1Votes = source["Rank11No1Votes"]; - this.Rank12 = source["Rank12"]; - this.Rank12ID = source["Rank12ID"]; - this.Rank12Votes = source["Rank12Votes"]; - this.Rank12No1Votes = source["Rank12No1Votes"]; - this.Rank13 = source["Rank13"]; - this.Rank13ID = source["Rank13ID"]; - this.Rank13Votes = source["Rank13Votes"]; - this.Rank13No1Votes = source["Rank13No1Votes"]; - this.Rank14 = source["Rank14"]; - this.Rank14ID = source["Rank14ID"]; - this.Rank14Votes = source["Rank14Votes"]; - this.Rank14No1Votes = source["Rank14No1Votes"]; - this.Rank15 = source["Rank15"]; - this.Rank15ID = source["Rank15ID"]; - this.Rank15Votes = source["Rank15Votes"]; - this.Rank15No1Votes = source["Rank15No1Votes"]; - this.Rank16 = source["Rank16"]; - this.Rank16ID = source["Rank16ID"]; - this.Rank16Votes = source["Rank16Votes"]; - this.Rank16No1Votes = source["Rank16No1Votes"]; - this.Rank17 = source["Rank17"]; - this.Rank17ID = source["Rank17ID"]; - this.Rank17Votes = source["Rank17Votes"]; - this.Rank17No1Votes = source["Rank17No1Votes"]; - this.Rank18 = source["Rank18"]; - this.Rank18ID = source["Rank18ID"]; - this.Rank18Votes = source["Rank18Votes"]; - this.Rank18No1Votes = source["Rank18No1Votes"]; - this.Rank19 = source["Rank19"]; - this.Rank19ID = source["Rank19ID"]; - this.Rank19Votes = source["Rank19Votes"]; - this.Rank19No1Votes = source["Rank19No1Votes"]; - this.Rank20 = source["Rank20"]; - this.Rank20ID = source["Rank20ID"]; - this.Rank20Votes = source["Rank20Votes"]; - this.Rank20No1Votes = source["Rank20No1Votes"]; - this.Rank21 = source["Rank21"]; - this.Rank21ID = source["Rank21ID"]; - this.Rank21Votes = source["Rank21Votes"]; - this.Rank21No1Votes = source["Rank21No1Votes"]; - this.Rank22 = source["Rank22"]; - this.Rank22ID = source["Rank22ID"]; - this.Rank22Votes = source["Rank22Votes"]; - this.Rank22No1Votes = source["Rank22No1Votes"]; - this.Rank23 = source["Rank23"]; - this.Rank23ID = source["Rank23ID"]; - this.Rank23Votes = source["Rank23Votes"]; - this.Rank23No1Votes = source["Rank23No1Votes"]; - this.Rank24 = source["Rank24"]; - this.Rank24ID = source["Rank24ID"]; - this.Rank24Votes = source["Rank24Votes"]; - this.Rank24No1Votes = source["Rank24No1Votes"]; - this.Rank25 = source["Rank25"]; - this.Rank25ID = source["Rank25ID"]; - this.Rank25Votes = source["Rank25Votes"]; - this.Rank25No1Votes = source["Rank25No1Votes"]; + this.CollegePlayerID = source["CollegePlayerID"]; + this.ProfileID = source["ProfileID"]; + this.PromiseID = source["PromiseID"]; + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.TotalPoints = source["TotalPoints"]; + this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; + this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; + this.SpendingCount = source["SpendingCount"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.RolledOnPromise = source["RolledOnPromise"]; + this.LockProfile = source["LockProfile"]; + this.IsSigned = source["IsSigned"]; + this.Recruiter = source["Recruiter"]; + this.CollegePlayer = this.convertValues(source["CollegePlayer"], TransferPlayerResponse); + this.Promise = this.convertValues(source["Promise"], CollegePromise); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -7208,18 +7397,20 @@ export class CollegePollOfficial { return a; } } -export class PollDataResponse { - Poll: CollegePollSubmission; - Matches: CollegeGame[]; - Standings: CollegeStandings[]; - OfficialPolls: CollegePollOfficial[]; +export class TransferPortalResponse { + Team: RecruitingTeamProfile; + TeamBoard: TransferPortalProfileResponse[]; + TeamPromises: CollegePromise[]; + Players: TransferPlayerResponse[]; + TeamList: CollegeTeam[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.Poll = this.convertValues(source["Poll"], CollegePollSubmission); - this.Matches = this.convertValues(source["Matches"], CollegeGame); - this.Standings = this.convertValues(source["Standings"], CollegeStandings); - this.OfficialPolls = this.convertValues(source["OfficialPolls"], CollegePollOfficial); + this.Team = this.convertValues(source["Team"], RecruitingTeamProfile); + this.TeamBoard = this.convertValues(source["TeamBoard"], TransferPortalProfileResponse); + this.TeamPromises = this.convertValues(source["TeamPromises"], CollegePromise); + this.Players = this.convertValues(source["Players"], TransferPlayerResponse); + this.TeamList = this.convertValues(source["TeamList"], CollegeTeam); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -7240,49 +7431,42 @@ export class PollDataResponse { return a; } } - - - -export class ScoutingProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - PlayerID: number; - TeamID: number; - ShowAttribute1: boolean; - ShowAttribute2: boolean; - ShowAttribute3: boolean; - ShowAttribute4: boolean; - ShowAttribute5: boolean; - ShowAttribute6: boolean; - ShowAttribute7: boolean; - ShowAttribute8: boolean; - ShowPotential: boolean; - RemovedFromBoard: boolean; - ShowCount: number; - Draftee: NFLDraftee; +export class TransferPortalBoardDto { + Profiles: TransferPortalProfile[]; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.ShowAttribute1 = source["ShowAttribute1"]; - this.ShowAttribute2 = source["ShowAttribute2"]; - this.ShowAttribute3 = source["ShowAttribute3"]; - this.ShowAttribute4 = source["ShowAttribute4"]; - this.ShowAttribute5 = source["ShowAttribute5"]; - this.ShowAttribute6 = source["ShowAttribute6"]; - this.ShowAttribute7 = source["ShowAttribute7"]; - this.ShowAttribute8 = source["ShowAttribute8"]; - this.ShowPotential = source["ShowPotential"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.ShowCount = source["ShowCount"]; - this.Draftee = this.convertValues(source["Draftee"], NFLDraftee); + this.Profiles = this.convertValues(source["Profiles"], TransferPortalProfile); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class UpdateTransferPortalBoard { + Profile: SimTeamBoardResponse; + Players: TransferPortalProfileResponse[]; + TeamID: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Profile = this.convertValues(source["Profile"], SimTeamBoardResponse); + this.Players = this.convertValues(source["Players"], TransferPortalProfileResponse); + this.TeamID = source["TeamID"]; } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -7303,30 +7487,81 @@ export class ScoutingProfile { return a; } } -export class NFLWarRoom { + + + + +export class FreeAgencyOfferDTO { ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; + NFLPlayerID: number; TeamID: number; Team: string; - ScoutingPoints: number; - SpentPoints: number; - DraftPicks: NFLDraftPick[]; - ScoutProfiles: ScoutingProfile[]; + ContractLength: number; + Y1BaseSalary: number; + Y1Bonus: number; + Y2BaseSalary: number; + Y2Bonus: number; + Y3BaseSalary: number; + Y3Bonus: number; + Y4BaseSalary: number; + Y4Bonus: number; + Y5BaseSalary: number; + Y5Bonus: number; + AAV: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.NFLPlayerID = source["NFLPlayerID"]; this.TeamID = source["TeamID"]; this.Team = source["Team"]; - this.ScoutingPoints = source["ScoutingPoints"]; - this.SpentPoints = source["SpentPoints"]; - this.DraftPicks = this.convertValues(source["DraftPicks"], NFLDraftPick); - this.ScoutProfiles = this.convertValues(source["ScoutProfiles"], ScoutingProfile); + this.ContractLength = source["ContractLength"]; + this.Y1BaseSalary = source["Y1BaseSalary"]; + this.Y1Bonus = source["Y1Bonus"]; + this.Y2BaseSalary = source["Y2BaseSalary"]; + this.Y2Bonus = source["Y2Bonus"]; + this.Y3BaseSalary = source["Y3BaseSalary"]; + this.Y3Bonus = source["Y3Bonus"]; + this.Y4BaseSalary = source["Y4BaseSalary"]; + this.Y4Bonus = source["Y4Bonus"]; + this.Y5BaseSalary = source["Y5BaseSalary"]; + this.Y5Bonus = source["Y5Bonus"]; + this.AAV = source["AAV"]; + } +} +export class NFLWaiverOffDTO { + ID: number; + NFLPlayerID: number; + TeamID: number; + Team: string; + WaiverOrder: number; + IsActive: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.WaiverOrder = source["WaiverOrder"]; + this.IsActive = source["IsActive"]; + } +} + + + +export class PollDataResponse { + Poll: CollegePollSubmission; + Matches: CollegeGame[]; + Standings: CollegeStandings[]; + OfficialPolls: CollegePollOfficial[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Poll = this.convertValues(source["Poll"], CollegePollSubmission); + this.Matches = this.convertValues(source["Matches"], CollegeGame); + this.Standings = this.convertValues(source["Standings"], CollegeStandings); + this.OfficialPolls = this.convertValues(source["OfficialPolls"], CollegePollOfficial); } convertValues(a: any, classs: any, asMap: boolean = false): any { @@ -7347,6 +7582,9 @@ export class NFLWarRoom { return a; } } + + + export class NFLDraftPageResponse { WarRoom: NFLWarRoom; DraftablePlayers: NFLDraftee[]; @@ -7884,21 +8122,194 @@ export class CollegePlayerCSV { - - - - - - - - - - - - - - - + + + + + + + + + + + +export class HistoricCollegePlayer { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PreviousTeamID: number; + PreviousTeam: string; + Height: number; + Weight: number; + Age: number; + Stars: number; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + Progression: number; + Discipline: number; + PotentialGrade: string; + FreeAgency: string; + Personality: string; + RecruitingBias: string; + WorkEthic: string; + AcademicBias: string; + IsInjured: boolean; + InjuryName: string; + InjuryType: string; + WeeksOfRecovery: number; + InjuryReserve: boolean; + PrimeAge: number; + Clutch: number; + Shotgun: number; + PositionTwo: string; + ArchetypeTwo: string; + RelativeID: number; + RelativeType: number; + Notes: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + HighSchool: string; + City: string; + State: string; + Year: number; + IsRedshirt: boolean; + IsRedshirting: boolean; + HasGraduated: boolean; + TransferStatus: number; + TransferLikeliness: string; + Stats: CollegePlayerStats[]; + SeasonStats: CollegePlayerSeasonStats; + HasProgressed: boolean; + WillDeclare: boolean; + LegacyID: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.IsRedshirting = source["IsRedshirting"]; + this.HasGraduated = source["HasGraduated"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.HasProgressed = source["HasProgressed"]; + this.WillDeclare = source["WillDeclare"]; + this.LegacyID = source["LegacyID"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + + export class NFLTradeOption { ID: number; CreatedAt: Time; @@ -7993,226 +8404,11 @@ export class NFLTradeProposal { return a; } } -export class NFLTradeOptionObj { - ID: number; - TradeProposalID: number; - NFLTeamID: number; - NFLPlayerID: number; - NFLDraftPickID: number; - OptionType: string; - SalaryPercentage: number; - Player: NFLPlayer; - Draftpick: NFLDraftPick; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TradeProposalID = source["TradeProposalID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.NFLDraftPickID = source["NFLDraftPickID"]; - this.OptionType = source["OptionType"]; - this.SalaryPercentage = source["SalaryPercentage"]; - this.Player = this.convertValues(source["Player"], NFLPlayer); - this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradeProposalDTO { - ID: number; - NFLTeamID: number; - NFLTeam: string; - RecepientTeamID: number; - RecepientTeam: string; - IsTradeAccepted: boolean; - IsTradeRejected: boolean; - NFLTeamTradeOptions: NFLTradeOptionObj[]; - RecepientTeamTradeOptions: NFLTradeOptionObj[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLTeam = source["NFLTeam"]; - this.RecepientTeamID = source["RecepientTeamID"]; - this.RecepientTeam = source["RecepientTeam"]; - this.IsTradeAccepted = source["IsTradeAccepted"]; - this.IsTradeRejected = source["IsTradeRejected"]; - this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOptionObj); - this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOptionObj); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - -export class NFLTeamProposals { - SentTradeProposals: NFLTradeProposalDTO[]; - ReceivedTradeProposals: NFLTradeProposalDTO[]; - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.SentTradeProposals = this.convertValues(source["SentTradeProposals"], NFLTradeProposalDTO); - this.ReceivedTradeProposals = this.convertValues(source["ReceivedTradeProposals"], NFLTradeProposalDTO); - } - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferences { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - Quarterbacks: boolean; - QuarterbackType: string; - Runningbacks: boolean; - RunningbackType: string; - Fullbacks: boolean; - FullbackType: string; - WideReceivers: boolean; - WideReceiverType: string; - TightEnds: boolean; - TightEndType: string; - OffensiveTackles: boolean; - OffensiveGuards: boolean; - Centers: boolean; - OffensiveTackleType: string; - OffensiveGuardType: string; - CenterType: string; - DefensiveTackles: boolean; - DefensiveTackleType: string; - DefensiveEnds: boolean; - DefensiveEndType: string; - OutsideLinebackers: boolean; - OutsideLinebackerType: string; - InsideLinebackers: boolean; - InsideLinebackerType: string; - Cornerbacks: boolean; - CornerbackType: string; - FreeSafeties: boolean; - FreeSafetyType: string; - StrongSafeties: boolean; - StrongSafetyType: string; - Kickers: boolean; - KickerType: string; - Punters: boolean; - PunterType: string; - DraftPicks: boolean; - DraftPickType: string; - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.NFLTeamID = source["NFLTeamID"]; - this.Quarterbacks = source["Quarterbacks"]; - this.QuarterbackType = source["QuarterbackType"]; - this.Runningbacks = source["Runningbacks"]; - this.RunningbackType = source["RunningbackType"]; - this.Fullbacks = source["Fullbacks"]; - this.FullbackType = source["FullbackType"]; - this.WideReceivers = source["WideReceivers"]; - this.WideReceiverType = source["WideReceiverType"]; - this.TightEnds = source["TightEnds"]; - this.TightEndType = source["TightEndType"]; - this.OffensiveTackles = source["OffensiveTackles"]; - this.OffensiveGuards = source["OffensiveGuards"]; - this.Centers = source["Centers"]; - this.OffensiveTackleType = source["OffensiveTackleType"]; - this.OffensiveGuardType = source["OffensiveGuardType"]; - this.CenterType = source["CenterType"]; - this.DefensiveTackles = source["DefensiveTackles"]; - this.DefensiveTackleType = source["DefensiveTackleType"]; - this.DefensiveEnds = source["DefensiveEnds"]; - this.DefensiveEndType = source["DefensiveEndType"]; - this.OutsideLinebackers = source["OutsideLinebackers"]; - this.OutsideLinebackerType = source["OutsideLinebackerType"]; - this.InsideLinebackers = source["InsideLinebackers"]; - this.InsideLinebackerType = source["InsideLinebackerType"]; - this.Cornerbacks = source["Cornerbacks"]; - this.CornerbackType = source["CornerbackType"]; - this.FreeSafeties = source["FreeSafeties"]; - this.FreeSafetyType = source["FreeSafetyType"]; - this.StrongSafeties = source["StrongSafeties"]; - this.StrongSafetyType = source["StrongSafetyType"]; - this.Kickers = source["Kickers"]; - this.KickerType = source["KickerType"]; - this.Punters = source["Punters"]; - this.PunterType = source["PunterType"]; - this.DraftPicks = source["DraftPicks"]; - this.DraftPickType = source["DraftPickType"]; - } - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} export class NFLTradePreferencesDTO { NFLTeamID: number; Quarterbacks: boolean; @@ -8388,6 +8584,39 @@ export class PlayByPlayResponse { ResultYards: number; Result: string; StreamResult: string[]; + Qb: number; + Back1: number; + Back2: number; + Back3: number; + Slot1: number; + Slot2: number; + Le: number; + Re: number; + Lt: number; + Lg: number; + C: number; + Rg: number; + Rt: number; + Rde: number; + Rdt: number; + Nt: number; + Ldt: number; + Lde: number; + Rolb: number; + Rilb: number; + Mlb: number; + Lilb: number; + Lolb: number; + Rcb: number; + Extradb1: number; + Extradb2: number; + Extradb3: number; + Fs: number; + Ss: number; + Fcb: number; + Blitzer1: number; + Blitzer2: number; + Blitzer3: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -8420,6 +8649,39 @@ export class PlayByPlayResponse { this.ResultYards = source["ResultYards"]; this.Result = source["Result"]; this.StreamResult = source["StreamResult"]; + this.Qb = source["Qb"]; + this.Back1 = source["Back1"]; + this.Back2 = source["Back2"]; + this.Back3 = source["Back3"]; + this.Slot1 = source["Slot1"]; + this.Slot2 = source["Slot2"]; + this.Le = source["Le"]; + this.Re = source["Re"]; + this.Lt = source["Lt"]; + this.Lg = source["Lg"]; + this.C = source["C"]; + this.Rg = source["Rg"]; + this.Rt = source["Rt"]; + this.Rde = source["Rde"]; + this.Rdt = source["Rdt"]; + this.Nt = source["Nt"]; + this.Ldt = source["Ldt"]; + this.Lde = source["Lde"]; + this.Rolb = source["Rolb"]; + this.Rilb = source["Rilb"]; + this.Mlb = source["Mlb"]; + this.Lilb = source["Lilb"]; + this.Lolb = source["Lolb"]; + this.Rcb = source["Rcb"]; + this.Extradb1 = source["Extradb1"]; + this.Extradb2 = source["Extradb2"]; + this.Extradb3 = source["Extradb3"]; + this.Fs = source["Fs"]; + this.Ss = source["Ss"]; + this.Fcb = source["Fcb"]; + this.Blitzer1 = source["Blitzer1"]; + this.Blitzer2 = source["Blitzer2"]; + this.Blitzer3 = source["Blitzer3"]; } } export class ScoreBoard {