From 94980d18f95fd3db4cabad336145d55d8ac04e43 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Wed, 13 May 2026 08:01:36 -0700 Subject: [PATCH] fixing schedule stuff --- controller/FixesController.go | 4 + controller/SchedulerController.go | 3 +- .../Weather Data - FBS Assigns.csv | 2 + .../Weather Data - FCS Assigns.csv | 9 +- main.go | 1 + managers/AdminManager.go | 2 +- managers/BootstrapManager.go | 2 +- managers/CFBScheduleManager.go | 4 +- managers/NFLScheduleManager.go | 709 +- managers/StadiumManager.go | 43 + managers/WeatherManager.go | 13 +- nfl_schedule_season_7.csv | 307 + ts/footballModels.ts | 19514 ++++++++-------- 13 files changed, 10828 insertions(+), 9785 deletions(-) create mode 100644 nfl_schedule_season_7.csv diff --git a/controller/FixesController.go b/controller/FixesController.go index 8de60e36..3c304124 100644 --- a/controller/FixesController.go +++ b/controller/FixesController.go @@ -29,3 +29,7 @@ func FixPlayerPreferences(w http.ResponseWriter, r *http.Request) { func FixRecruitProfileMods(w http.ResponseWriter, r *http.Request) { managers.FixExistingModifiersForRecruits() } + +func FixNFLStadiums(w http.ResponseWriter, r *http.Request) { + managers.EnsureNFLStadiumsExist() +} diff --git a/controller/SchedulerController.go b/controller/SchedulerController.go index f3e0f255..7da17473 100644 --- a/controller/SchedulerController.go +++ b/controller/SchedulerController.go @@ -10,7 +10,8 @@ import ( ) func TestCFBScheduler(w http.ResponseWriter, r *http.Request) { - managers.BaseGenerateCFBSchedule(true) + managers.BaseGenerateCFBSchedule(false) + managers.GenerateSimNFLSchedule(false) json.NewEncoder(w).Encode(true) } diff --git a/data/WeatherSetup/Weather Data - FBS Assigns.csv b/data/WeatherSetup/Weather Data - FBS Assigns.csv index 562febf9..39b134e4 100644 --- a/data/WeatherSetup/Weather Data - FBS Assigns.csv +++ b/data/WeatherSetup/Weather Data - FBS Assigns.csv @@ -135,3 +135,5 @@ WMU,MI Lower WVU,PA West WYOM,WY ZONA,AZ +NDSU,ND +SSU,CA Central \ No newline at end of file diff --git a/data/WeatherSetup/Weather Data - FCS Assigns.csv b/data/WeatherSetup/Weather Data - FCS Assigns.csv index 5e254a7f..e5c33681 100644 --- a/data/WeatherSetup/Weather Data - FCS Assigns.csv +++ b/data/WeatherSetup/Weather Data - FCS Assigns.csv @@ -33,7 +33,6 @@ MSVU,MS MTST,MT MUR,TN West NAU,AZ -NDSU,ND PENN,PA Southeast PRIN,NJ PRST,OR @@ -43,7 +42,6 @@ SDAK,SD SDST,SD SIU,MO East SOU,LA South -SSU,CA Central TXSO,TX Coast UAPB,AR UCD,CA Central @@ -126,4 +124,9 @@ UTU,UT HAMP,VA East RICH,VA East W&M,VA East -NORF,VA East \ No newline at end of file +NORF,VA East +UOG,HI +SAMO,HI +CHST,IL +UNH,CT +NH,CT \ No newline at end of file diff --git a/main.go b/main.go index 7f4aefa0..3d8c4e73 100644 --- a/main.go +++ b/main.go @@ -173,6 +173,7 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/admin/fix/affinities", controller.RecalibrateCrootProfiles).Methods("GET") // apiRouter.HandleFunc("/admin/fix/recruit/points", controller.RecalibrateRecruitPoints).Methods("GET") // apiRouter.HandleFunc("/fix/profile/mods", controller.FixRecruitProfileMods).Methods("GET") + // apiRouter.HandleFunc("/fix/nfl/stadiums", controller.FixNFLStadiums).Methods("GET") // Free Agency Controls // apiRouter.HandleFunc("/nfl/extensions/sync", controller.SyncExtensions).Methods("GET") diff --git a/managers/AdminManager.go b/managers/AdminManager.go index 499fef49..c1b9b86d 100644 --- a/managers/AdminManager.go +++ b/managers/AdminManager.go @@ -719,7 +719,7 @@ func GenerateOffseasonData() { BaseGenerateCFBSchedule(false) // Generate NFL Regular Season Schedule - GenerateSimNFLSchedule() + GenerateSimNFLSchedule(false) // Reset Media Post Count ResetSimCFBMediaPostCount() diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index 65d61816..ace52c83 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -475,7 +475,7 @@ func GetSchedulePageBootstrap(username, collegeID, seasonID string) BootstrapDat cfbGameRequests = repository.FindCFBGameRequestRecords(repository.SchedulerQuery{SeasonID: seasonID}) }() } - wg.Add(4) + wg.Add(3) go func() { defer wg.Done() log.Println("Fetching Retired Players...") diff --git a/managers/CFBScheduleManager.go b/managers/CFBScheduleManager.go index ba0c8af1..a36b18d1 100644 --- a/managers/CFBScheduleManager.go +++ b/managers/CFBScheduleManager.go @@ -367,9 +367,9 @@ func MakeCollegeGameRecord(homeTeam structs.CollegeTeam, awayTeam structs.Colleg return structs.CollegeGame{ HomeTeamID: int(homeTeam.ID), - HomeTeam: homeTeam.TeamName, + HomeTeam: homeTeam.TeamAbbr, AwayTeamID: int(awayTeam.ID), - AwayTeam: awayTeam.TeamName, + AwayTeam: awayTeam.TeamAbbr, Week: int(weekPlayed), SeasonID: int(seasonID), WeekID: int(weekID), diff --git a/managers/NFLScheduleManager.go b/managers/NFLScheduleManager.go index 4270effe..540770dd 100644 --- a/managers/NFLScheduleManager.go +++ b/managers/NFLScheduleManager.go @@ -1,7 +1,11 @@ package managers import ( + "encoding/csv" + "fmt" "math/rand" + "os" + "sort" "strconv" "github.com/CalebRose/SimFBA/dbprovider" @@ -10,56 +14,6 @@ import ( "github.com/CalebRose/SimFBA/util" ) -// NFL Division names (must match the Division field on NFLTeam records) -const ( - afcEast = "AFC East" - afcNorth = "AFC North" - afcSouth = "AFC South" - afcWest = "AFC West" - nfcEast = "NFC East" - nfcNorth = "NFC North" - nfcSouth = "NFC South" - nfcWest = "NFC West" -) - -// afcDivisions and nfcDivisions in the order used for rotating matchups. -var afcDivisions = []string{afcEast, afcNorth, afcSouth, afcWest} -var nfcDivisions = []string{nfcEast, nfcNorth, nfcSouth, nfcWest} - -// afcIntraRotation maps each AFC division to which AFC division it plays -// (full 4-game schedule) by season ID modulo 3. -// Rotation index = (seasonID - 1) % 3 -var afcIntraRotation = map[string][3]string{ - afcEast: {afcNorth, afcSouth, afcWest}, - afcNorth: {afcEast, afcWest, afcSouth}, - afcSouth: {afcWest, afcEast, afcNorth}, - afcWest: {afcSouth, afcNorth, afcEast}, -} - -var nfcIntraRotation = map[string][3]string{ - nfcEast: {nfcNorth, nfcSouth, nfcWest}, - nfcNorth: {nfcEast, nfcWest, nfcSouth}, - nfcSouth: {nfcWest, nfcEast, nfcNorth}, - nfcWest: {nfcSouth, nfcNorth, nfcEast}, -} - -// afcInterRotation and nfcInterRotation map each division to which opposite-conference -// division it plays (full 4-game schedule) by season ID modulo 4. -// Rotation index = (seasonID - 1) % 4 -var afcInterRotation = map[string][4]string{ - afcEast: {nfcNorth, nfcSouth, nfcEast, nfcWest}, - afcNorth: {nfcSouth, nfcEast, nfcWest, nfcNorth}, - afcSouth: {nfcEast, nfcWest, nfcNorth, nfcSouth}, - afcWest: {nfcWest, nfcNorth, nfcSouth, nfcEast}, -} - -var nfcInterRotation = map[string][4]string{ - nfcEast: {afcSouth, afcNorth, afcWest, afcEast}, - nfcNorth: {afcEast, afcWest, afcSouth, afcNorth}, - nfcSouth: {afcNorth, afcWest, afcEast, afcSouth}, // fixed: was {afcNorth, afcEast, afcEast, afcWest} - nfcWest: {afcWest, afcSouth, afcNorth, afcEast}, -} - // westernStates are US states considered Western/Midwestern US // (past the Mississippi River) for Sunday timeslot assignment. var westernStates = map[string]bool{ @@ -102,9 +56,12 @@ type weekMatchup struct { type addMatchupFn func(homeID, awayID uint, isDivisional bool) +// nflPair is an ordered (homeID, awayID) key for deduplication. +type nflPair [2]uint + // GenerateSimNFLSchedule generates a full 17-game regular season (18 weeks, 1 bye) // for the SimNFL league and saves all game records to the database. -func GenerateSimNFLSchedule() { +func GenerateSimNFLSchedule(isTest bool) { db := dbprovider.GetInstance().GetDB() ts := GetTimestamp() seasonID := ts.NFLSeasonID @@ -113,16 +70,31 @@ func GenerateSimNFLSchedule() { // Collect teams and build lookup structures. allTeams := GetAllNFLTeams() teamByID := make(map[uint]structs.NFLTeam, len(allTeams)) - teamsByDiv := make(map[string][]structs.NFLTeam) + + // Build teamsByDiv keyed by DivisionID. Division IDs are globally unique + // (1–8 across all NFL divisions), so no composite key is needed. + teamsByDiv := make(map[uint][]structs.NFLTeam) for _, t := range allTeams { teamByID[t.ID] = t - teamsByDiv[t.Division] = append(teamsByDiv[t.Division], t) + key := t.DivisionID + teamsByDiv[key] = append(teamsByDiv[key], t) } + // Build division lists per conference, sorted for canonical ordering. + // Also derive the rotation maps dynamically so they are consistent with + // whatever ConferenceID / DivisionID values are in the database. + conf0Divs, conf1Divs := buildDivisionLists(teamsByDiv) + intraRot0 := buildIntraRotation(conf0Divs) + intraRot1 := buildIntraRotation(conf1Divs) + interRot0 := buildInterRotation(conf0Divs, conf1Divs) + // Build stadium map: homeTeamID -> Stadium stadiums := GetAllStadiums() stadiumByTeam := make(map[uint]structs.Stadium, len(stadiums)) for _, s := range stadiums { + if s.LeagueName != "NFL" { + continue + } stadiumByTeam[s.TeamID] = s } @@ -137,45 +109,68 @@ func GenerateSimNFLSchedule() { inter17Idx += 4 } - // Accumulate all matchups, deduplicating by ordered pair. - scheduledPairs := make(map[[2]uint]bool) + // Compute home game count per team from previous season to balance 17th game H/A. + prevHomeCount := computePrevSeasonHomeCount(prevSeasonID, allTeams) + + // Accumulate all matchups. Key is exact (homeID, awayID) — reversals are distinct games. + scheduledPairs := make(map[nflPair]bool) var allMatchups []matchup + // currentHomeCount tracks how many home games each team has been assigned so far. + // Steps 3 and 5 use this shared counter to guarantee exactly 1H+1A per team across + // both steps combined, achieving the required 9H/8A or 8H/9A final balance. + currentHomeCount := make(map[uint]int, len(allTeams)) + addMatchup := func(homeID, awayID uint, isDivisional bool) { - key := [2]uint{homeID, awayID} - rkey := [2]uint{awayID, homeID} - if scheduledPairs[key] || scheduledPairs[rkey] { + key := nflPair{homeID, awayID} + if scheduledPairs[key] { return } scheduledPairs[key] = true + currentHomeCount[homeID]++ allMatchups = append(allMatchups, matchup{homeID: homeID, awayID: awayID, isDivisional: isDivisional}) } - // 1. Divisional games: home AND away vs each of the 3 division rivals (6 games per team). + // 1. Divisional games: each pair plays twice — once at each stadium (6 games per team). + // Only iterate divisions with exactly 4 teams to skip any stray/empty buckets. for _, teams := range teamsByDiv { - for i := 0; i < len(teams); i++ { - for j := i + 1; j < len(teams); j++ { + if len(teams) != 4 { + continue + } + for i := 0; i < 4; i++ { + for j := i + 1; j < 4; j++ { addMatchup(teams[i].ID, teams[j].ID, true) addMatchup(teams[j].ID, teams[i].ID, true) } } } + fmt.Printf("[DEBUG] After step 1 (divisional): %d matchups\n", len(allMatchups)) - // 2. Intra-conference full-division rotation (4 games per team). - scheduleFullDivisionMatchup(teamsByDiv, afcDivisions, afcIntraRotation, intraIdx, addMatchup) - scheduleFullDivisionMatchup(teamsByDiv, nfcDivisions, nfcIntraRotation, intraIdx, addMatchup) + // 2. Intra-conference full-division rotation (4 games per team: 2H, 2A). + scheduleFullDivisionMatchup(teamsByDiv, conf0Divs, intraRot0, intraIdx, addMatchup) + scheduleFullDivisionMatchup(teamsByDiv, conf1Divs, intraRot1, intraIdx, addMatchup) + fmt.Printf("[DEBUG] After step 2 (intra-conf rotation): %d matchups\n", len(allMatchups)) - // 3. Two same-placement intra-conference games from the 2 non-rotation divisions (2 games per team). - schedulePlacementGames(teamsByDiv, afcDivisions, afcIntraRotation, intraIdx, divRank, addMatchup) - schedulePlacementGames(teamsByDiv, nfcDivisions, nfcIntraRotation, intraIdx, divRank, addMatchup) + // 3. Two same-placement intra-conference games from the 2 non-rotation divisions (2 games per team: 1H, 1A). + // currentHomeCount is passed so placement H/A decisions are visible to step 5. + schedulePlacementGames(teamsByDiv, conf0Divs, intraRot0, intraIdx, divRank, currentHomeCount, addMatchup) + schedulePlacementGames(teamsByDiv, conf1Divs, intraRot1, intraIdx, divRank, currentHomeCount, addMatchup) + fmt.Printf("[DEBUG] After step 3 (placement games): %d matchups\n", len(allMatchups)) - // 4. Inter-conference full-division rotation (4 games per team). - scheduleFullInterConferenceMatchup(teamsByDiv, afcDivisions, afcInterRotation, interIdx, addMatchup) - scheduleFullInterConferenceMatchup(teamsByDiv, nfcDivisions, nfcInterRotation, interIdx, addMatchup) + // 4. Inter-conference full-division rotation (4 games per team: 2H, 2A). + // Enumerating conf0 divisions covers both conferences since each cross-conf game + // is recorded once (homeID, awayID) and the reverse is also added. + scheduleFullInterConferenceMatchup(teamsByDiv, conf0Divs, interRot0, interIdx, addMatchup) + fmt.Printf("[DEBUG] After step 4 (inter-conf rotation): %d matchups\n", len(allMatchups)) // 5. 17th game: same-placement opponent from the inter-conference division played 2 years ago. - schedule17thGame(teamsByDiv, afcDivisions, afcInterRotation, inter17Idx, divRank, addMatchup) - schedule17thGame(teamsByDiv, nfcDivisions, nfcInterRotation, inter17Idx, divRank, addMatchup) + // Uses currentHomeCount (updated by all prior steps) to guarantee each team's 17th game + // corrects any H/A imbalance: a team at 8H hosts, a team at 9H is away. + schedule17thGame(teamsByDiv, conf0Divs, interRot0, inter17Idx, divRank, prevHomeCount, currentHomeCount, scheduledPairs, addMatchup) + fmt.Printf("[DEBUG] After step 5 (17th game): %d matchups (expected 272)\n", len(allMatchups)) + + // Validate: every team must have exactly 17 matchups. + validateScheduleGameCount(allMatchups, teamByID) // Assign matchups to weeks 1-18 with bye-week and week-18 divisional constraints. var dalID, detID uint @@ -193,31 +188,236 @@ func GenerateSimNFLSchedule() { finalGames := buildNFLGameRecords(weekSchedule, teamByID, stadiumByTeam, seasonID, dalID, detID) // Set HomePreviousBye / AwayPreviousBye flags. - applyByeWeekFlags(finalGames) + applySimNFLByeWeekFlags(finalGames) + + // Validate home/away balance: 16 teams should have 9H/8A, 16 teams 8H/9A. + validateHomeAwayBalance(finalGames, teamByID) + + if isTest { + exportNFLScheduleToCSV(finalGames, teamByID, seasonID) + } else { + repository.CreateNFLGameRecordsBatch(db, finalGames, 250) + GenerateWeatherForGames() + } +} + +// buildDivisionLists groups teamsByDiv keys (DivisionIDs) by conference and returns +// two sorted slices — conf0 for the lower ConferenceID, conf1 for the higher. +func buildDivisionLists(teamsByDiv map[uint][]structs.NFLTeam) (conf0, conf1 []uint) { + confDivs := make(map[uint][]uint) + for key, teams := range teamsByDiv { + if len(teams) == 0 { + continue + } + confID := teams[0].ConferenceID + confDivs[confID] = append(confDivs[confID], key) + } + // Sort conference IDs for canonical conf0 / conf1 assignment. + var confIDs []uint + for id := range confDivs { + confIDs = append(confIDs, id) + } + sort.Slice(confIDs, func(i, j int) bool { return confIDs[i] < confIDs[j] }) + // Sort division IDs within each conference for canonical slot ordering. + for _, id := range confIDs { + divList := confDivs[id] + sort.Slice(divList, func(i, j int) bool { return divList[i] < divList[j] }) + confDivs[id] = divList + } + if len(confIDs) > 0 { + conf0 = confDivs[confIDs[0]] + } + if len(confIDs) > 1 { + conf1 = confDivs[confIDs[1]] + } + return conf0, conf1 +} + +// buildIntraRotation generates a 3-year round-robin rotation map for 4 same-conference +// divisions. Each division key maps to the 3 division keys it plays (one per year). +// The round-robin schedule is: +// - Round 0: (0,1) and (2,3) +// - Round 1: (0,2) and (1,3) +// - Round 2: (0,3) and (1,2) +func buildIntraRotation(divs []uint) map[uint][3]uint { + result := make(map[uint][3]uint, len(divs)) + if len(divs) < 4 { + return result + } + // Pairs per round (indices into divs). + rounds := [3][2][2]int{ + {{0, 1}, {2, 3}}, + {{0, 2}, {1, 3}}, + {{0, 3}, {1, 2}}, + } + // Precompute: for each div index i, its opponent in each round. + opponentIdx := [4][3]int{} + for r, roundPairs := range rounds { + for _, pair := range roundPairs { + opponentIdx[pair[0]][r] = pair[1] + opponentIdx[pair[1]][r] = pair[0] + } + } + for i, div := range divs { + result[div] = [3]uint{ + divs[opponentIdx[i][0]], + divs[opponentIdx[i][1]], + divs[opponentIdx[i][2]], + } + } + return result +} + +// buildInterRotation generates a 4-year inter-conference rotation map. +// Each division in conf0 maps to the 4 conf1 divisions it plays (one per year). +// The pattern ensures each conf0 division plays each conf1 division exactly once +// across the 4-year cycle. +func buildInterRotation(conf0, conf1 []uint) map[uint][4]uint { + result := make(map[uint][4]uint, len(conf0)) + if len(conf0) < 4 || len(conf1) < 4 { + return result + } + // For conf0 division at index i, in year j it plays conf1 division at index + // basePattern[(i+j) % 4], where basePattern = [1,2,0,3]. + // This is derived from the standard NFL inter-conference rotation and ensures + // all 4×4 matchup pairs occur across the cycle with no repetition. + basePattern := [4]int{1, 2, 0, 3} + for i, div := range conf0 { + var rot [4]uint + for j := 0; j < 4; j++ { + rot[j] = conf1[basePattern[(i+j)%4]] + } + result[div] = rot + } + return result +} + +// computePrevSeasonHomeCount returns a map of teamID -> number of home games played last season. +func computePrevSeasonHomeCount(prevSeasonID int, allTeams []structs.NFLTeam) map[uint]int { + result := make(map[uint]int, len(allTeams)) + prevGames := GetNFLGamesBySeasonID(strconv.Itoa(prevSeasonID)) + for _, g := range prevGames { + if !g.IsPreseasonGame { + result[uint(g.HomeTeamID)]++ + } + } + return result +} + +// validateScheduleGameCount logs a warning for any team that doesn't have exactly 17 games. +func validateScheduleGameCount(matchups []matchup, teamByID map[uint]structs.NFLTeam) { + counts := make(map[uint]int, len(teamByID)) + for _, m := range matchups { + counts[m.homeID]++ + counts[m.awayID]++ + } + for id, t := range teamByID { + if counts[id] != 17 { + fmt.Printf("[WARN] NFL Schedule: %s %s has %d games (expected 17)\n", t.TeamName, t.Mascot, counts[id]) + } + } +} + +// validateHomeAwayBalance checks that exactly 16 teams have 9 home / 8 away games +// and the other 16 teams have 8 home / 9 away games. Any deviations are logged as warnings. +func validateHomeAwayBalance(games []structs.NFLGame, teamByID map[uint]structs.NFLTeam) { + homeCount := make(map[uint]int, len(teamByID)) + awayCount := make(map[uint]int, len(teamByID)) + for _, g := range games { + homeCount[uint(g.HomeTeamID)]++ + awayCount[uint(g.AwayTeamID)]++ + } + + nine8 := 0 // teams with 9H / 8A + eight9 := 0 // teams with 8H / 9A + for id, t := range teamByID { + h, a := homeCount[id], awayCount[id] + switch { + case h == 9 && a == 8: + nine8++ + case h == 8 && a == 9: + eight9++ + default: + fmt.Printf("[WARN] H/A imbalance: %s %s — %dH / %dA (expected 9/8 or 8/9)\n", + t.TeamName, t.Mascot, h, a) + } + } + fmt.Printf("[INFO] Home/away balance: %d teams at 9H/8A, %d teams at 8H/9A (need 16 each)\n", nine8, eight9) + if nine8 != 16 || eight9 != 16 { + fmt.Printf("[WARN] Home/away split is off — expected 16/16, got %d/%d\n", nine8, eight9) + } +} + +// exportNFLScheduleToCSV writes the generated schedule to a CSV file for inspection. +func exportNFLScheduleToCSV(games []structs.NFLGame, teamByID map[uint]structs.NFLTeam, seasonID int) { + filename := fmt.Sprintf("nfl_schedule_season_%d.csv", seasonID) + f, err := os.Create(filename) + if err != nil { + fmt.Printf("[ERROR] Could not create CSV file: %v\n", err) + return + } + defer f.Close() + + w := csv.NewWriter(f) + defer w.Flush() + + // Header + _ = w.Write([]string{ + "Week", "HomeTeamID", "HomeTeam", "AwayTeamID", "AwayTeam", + "TimeSlot", "Stadium", "City", "State", + "IsConference", "IsDivisional", "HomePreviousBye", "AwayPreviousBye", + }) + + // Tally games per team for summary + homeCount := make(map[uint]int) + awayCount := make(map[uint]int) + + for _, g := range games { + homeCount[uint(g.HomeTeamID)]++ + awayCount[uint(g.AwayTeamID)]++ + + _ = w.Write([]string{ + strconv.Itoa(g.Week), + strconv.Itoa(g.HomeTeamID), + g.HomeTeam, + strconv.Itoa(g.AwayTeamID), + g.AwayTeam, + g.TimeSlot, + g.Stadium, + g.City, + g.State, + strconv.FormatBool(g.IsConference), + strconv.FormatBool(g.IsDivisional), + strconv.FormatBool(g.HomePreviousBye), + strconv.FormatBool(g.AwayPreviousBye), + }) + } - // Save all games, then generate weather data. - repository.CreateNFLGameRecordsBatch(db, finalGames, 250) - GenerateWeatherForGames() + // Append per-team summary rows after a blank line + _ = w.Write([]string{}) + _ = w.Write([]string{"TeamID", "TeamName", "HomeGames", "AwayGames", "TotalGames"}) + for id, t := range teamByID { + h := homeCount[id] + a := awayCount[id] + _ = w.Write([]string{ + strconv.Itoa(int(id)), + t.TeamName + " " + t.Mascot, + strconv.Itoa(h), + strconv.Itoa(a), + strconv.Itoa(h + a), + }) + } - // fin + fmt.Printf("[INFO] NFL schedule exported to %s (%d games)\n", filename, len(games)) } // computeDivisionalRanks returns teamID -> divisional rank (1=first, 4=last) using // sorted standings from the previous season fetched per division. -func computeDivisionalRanks(prevSeasonID int, teamsByDiv map[string][]structs.NFLTeam) map[uint]int { +func computeDivisionalRanks(prevSeasonID int, teamsByDiv map[uint][]structs.NFLTeam) map[uint]int { result := make(map[uint]int) seasonStr := strconv.Itoa(prevSeasonID) - allDivisions := append(afcDivisions, nfcDivisions...) - // Build divisionID -> divisionName map via teamsByDiv - divIDToName := make(map[uint]string) - for divName, teams := range teamsByDiv { - if len(teams) > 0 { - divIDToName[teams[0].DivisionID] = divName - } - } - - for divName, teams := range teamsByDiv { + for _, teams := range teamsByDiv { if len(teams) == 0 { continue } @@ -233,26 +433,26 @@ func computeDivisionalRanks(prevSeasonID int, teamsByDiv map[string][]structs.NF result[t.ID] = i + 1 } } - _ = divName } - _ = allDivisions return result } // scheduleFullDivisionMatchup schedules all 4 games between a division and its -// intra-conference rotation counterpart. 2 home, 2 away per side. +// intra-conference rotation counterpart. +// Each team plays all 4 opponents from the target division, hosting 2 and visiting 2. +// This yields 16 total directional matchups between the two 4-team divisions. func scheduleFullDivisionMatchup( - teamsByDiv map[string][]structs.NFLTeam, - divisions []string, - rotation map[string][3]string, + teamsByDiv map[uint][]structs.NFLTeam, + divisions []uint, + rotation map[uint][3]uint, idx int, add addMatchupFn, ) { - seen := make(map[[2]string]bool) + seen := make(map[[2]uint]bool) for _, div := range divisions { targetDiv := rotation[div][idx] - pair := [2]string{div, targetDiv} - rpair := [2]string{targetDiv, div} + pair := [2]uint{div, targetDiv} + rpair := [2]uint{targetDiv, div} if seen[pair] || seen[rpair] { continue } @@ -263,51 +463,63 @@ func scheduleFullDivisionMatchup( if len(divTeams) < 4 || len(targetTeams) < 4 { continue } - // divTeams[0..1] host targetTeams[0..1]; targetTeams[2..3] host divTeams[2..3] - add(divTeams[0].ID, targetTeams[0].ID, false) - add(divTeams[1].ID, targetTeams[1].ID, false) - add(targetTeams[2].ID, divTeams[2].ID, false) - add(targetTeams[3].ID, divTeams[3].ID, false) + // Each team in divTeams hosts 2 opponents and visits 2. + // Pattern: divTeams[i] hosts targetTeams[i] and targetTeams[(i+2)%4] + // divTeams[i] visits targetTeams[(i+1)%4] and targetTeams[(i+3)%4] + for i := 0; i < 4; i++ { + add(divTeams[i].ID, targetTeams[i].ID, false) + add(divTeams[i].ID, targetTeams[(i+2)%4].ID, false) + add(targetTeams[(i+1)%4].ID, divTeams[i].ID, false) + add(targetTeams[(i+3)%4].ID, divTeams[i].ID, false) + } } } // schedulePlacementGames schedules 2 same-placement intra-conference games for each team // against teams from the 2 intra-conference divisions not covered by the main rotation. +// Each pair of divisions is processed once. Teams are paired by sorted rank index so that +// the Nth-ranked team in one division plays the Nth-ranked team in the other. func schedulePlacementGames( - teamsByDiv map[string][]structs.NFLTeam, - divisions []string, - rotation map[string][3]string, + teamsByDiv map[uint][]structs.NFLTeam, + divisions []uint, + rotation map[uint][3]uint, idx int, divRank map[uint]int, + currentHomeCount map[uint]int, add addMatchupFn, ) { + type divPair [2]uint + processedPairs := make(map[divPair]bool) + for _, div := range divisions { targetDiv := rotation[div][idx] - var remaining []string + var remaining []uint for _, d := range divisions { if d != div && d != targetDiv { remaining = append(remaining, d) } } - divTeams := teamsByDiv[div] - for _, t := range divTeams { - rank := divRank[t.ID] - if rank < 1 { - rank = 1 - } - if rank > 4 { - rank = 4 - } - for ri, remDiv := range remaining { - for _, rt := range teamsByDiv[remDiv] { - if divRank[rt.ID] == rank { - if ri == 0 { - add(t.ID, rt.ID, false) - } else { - add(rt.ID, t.ID, false) - } - break - } + for _, remDiv := range remaining { + // Process each canonical (div, remDiv) pair exactly once. + canonical := divPair{div, remDiv} + if div > remDiv { + canonical = divPair{remDiv, div} + } + if processedPairs[canonical] { + continue + } + processedPairs[canonical] = true + + // Sort both divisions by rank so index i pairs same-ranked opponents. + sortedDiv := sortTeamsByRank(teamsByDiv[div], divRank) + sortedRem := sortTeamsByRank(teamsByDiv[remDiv], divRank) + for i := 0; i < len(sortedDiv) && i < len(sortedRem); i++ { + t, rt := sortedDiv[i], sortedRem[i] + // Use the global home count so step 5 sees the correct running total. + if currentHomeCount[t.ID] <= currentHomeCount[rt.ID] { + add(t.ID, rt.ID, false) + } else { + add(rt.ID, t.ID, false) } } } @@ -315,19 +527,20 @@ func schedulePlacementGames( } // scheduleFullInterConferenceMatchup schedules all 4 games between a division and its -// inter-conference rotation counterpart. 2 home, 2 away per side. +// inter-conference rotation counterpart. +// Each team plays all 4 opponents from the target division, hosting 2 and visiting 2. func scheduleFullInterConferenceMatchup( - teamsByDiv map[string][]structs.NFLTeam, - divisions []string, - rotation map[string][4]string, + teamsByDiv map[uint][]structs.NFLTeam, + divisions []uint, + rotation map[uint][4]uint, idx int, add addMatchupFn, ) { - seen := make(map[[2]string]bool) + seen := make(map[[2]uint]bool) for _, div := range divisions { targetDiv := rotation[div][idx] - pair := [2]string{div, targetDiv} - rpair := [2]string{targetDiv, div} + pair := [2]uint{div, targetDiv} + rpair := [2]uint{targetDiv, div} if seen[pair] || seen[rpair] { continue } @@ -338,65 +551,138 @@ func scheduleFullInterConferenceMatchup( if len(divTeams) < 4 || len(targetTeams) < 4 { continue } - add(divTeams[0].ID, targetTeams[0].ID, false) - add(divTeams[1].ID, targetTeams[1].ID, false) - add(targetTeams[2].ID, divTeams[2].ID, false) - add(targetTeams[3].ID, divTeams[3].ID, false) + // Same pattern as intra: each team hosts 2, visits 2. + for i := 0; i < 4; i++ { + add(divTeams[i].ID, targetTeams[i].ID, false) + add(divTeams[i].ID, targetTeams[(i+2)%4].ID, false) + add(targetTeams[(i+1)%4].ID, divTeams[i].ID, false) + add(targetTeams[(i+3)%4].ID, divTeams[i].ID, false) + } } } // schedule17thGame schedules 1 inter-conference game per team: same divisional rank // as their opponent from the division played 2 years ago. +// Home/away assignment is determined by previous season home game count: a team that +// had more home games last season (≥9) will be the away team for the 17th game. +// Teams are paired by sorted rank index so missing divRank data never produces 0 games. func schedule17thGame( - teamsByDiv map[string][]structs.NFLTeam, - divisions []string, - rotation map[string][4]string, + teamsByDiv map[uint][]structs.NFLTeam, + divisions []uint, + rotation map[uint][4]uint, idx int, divRank map[uint]int, + prevHomeCount map[uint]int, + currentHomeCount map[uint]int, + scheduledPairs map[nflPair]bool, add addMatchupFn, ) { for _, div := range divisions { targetDiv := rotation[div][idx] - divTeams := teamsByDiv[div] - targetTeams := teamsByDiv[targetDiv] - if len(divTeams) == 0 || len(targetTeams) == 0 { + if len(teamsByDiv[div]) == 0 || len(teamsByDiv[targetDiv]) == 0 { continue } - for _, t := range divTeams { - rank := divRank[t.ID] - if rank < 1 { - rank = 1 + // Sort both divisions by rank so index i pairs same-ranked opponents. + sortedDiv := sortTeamsByRank(teamsByDiv[div], divRank) + sortedTarget := sortTeamsByRank(teamsByDiv[targetDiv], divRank) + for i := 0; i < len(sortedDiv) && i < len(sortedTarget); i++ { + t, rt := sortedDiv[i], sortedTarget[i] + // Primary: cross-season balance. The team with more home games last + // season should be the away team this season. + homeID, awayID := t.ID, rt.ID + if prevHomeCount[t.ID] > prevHomeCount[rt.ID] { + // t had more home games last season → t travels + homeID, awayID = rt.ID, t.ID + } else if prevHomeCount[rt.ID] > prevHomeCount[t.ID] { + // rt had more home games last season → rt travels + homeID, awayID = t.ID, rt.ID } - for _, rt := range targetTeams { - if divRank[rt.ID] == rank { - add(t.ID, rt.ID, false) - break - } + // else: tied prev season, keep t as home by default. + + // Safety override: if currentHomeCount demands a flip to hit the required + // 8H or 9H season target, honour it. This preserves the H/A balance + // guarantee regardless of what last season's counts look like. + if currentHomeCount[awayID] < currentHomeCount[homeID] { + homeID, awayID = awayID, homeID + } + + // If this exact direction is already scheduled, flip. + if scheduledPairs[nflPair{homeID, awayID}] { + homeID, awayID = awayID, homeID } + add(homeID, awayID, false) } } } +// sortTeamsByRank returns a copy of teams sorted by divisional rank (ascending), +// with team ID as a stable tiebreaker when ranks are equal or missing. +func sortTeamsByRank(teams []structs.NFLTeam, divRank map[uint]int) []structs.NFLTeam { + sorted := make([]structs.NFLTeam, len(teams)) + copy(sorted, teams) + sort.Slice(sorted, func(i, j int) bool { + ri, rj := divRank[sorted[i].ID], divRank[sorted[j].ID] + if ri != rj { + return ri < rj + } + return sorted[i].ID < sorted[j].ID + }) + return sorted +} + // assignMatchupsToWeeks distributes all matchups across 18 weeks with the following rules: // - No team plays twice in the same week (creates exactly 1 bye per team). // - Bye weeks are restricted to weeks 5–14. // - Week 18 contains only divisional matchups. // - DAL and DET each play a divisional game in week 13. +// +// If any matchup cannot be placed, the function retries from scratch with a fresh +// shuffle, up to maxAttempts times. func assignMatchupsToWeeks( matchups []matchup, teamByID map[uint]structs.NFLTeam, dalID, detID uint, ) []weekMatchup { + const maxAttempts = 30000 + + for attempt := 1; attempt <= maxAttempts; attempt++ { + assigned, failed := attemptWeekAssignment(matchups, teamByID, dalID, detID) + if len(failed) == 0 { + if attempt > 1 { + fmt.Printf("[INFO] Week assignment succeeded on attempt %d\n", attempt) + } + return assigned + } + fmt.Printf("[INFO] Week assignment attempt %d: %d matchup(s) unplaced, retrying...\n", attempt, len(failed)) + } + + // All retries exhausted — return the last attempt's result, logging the failures. + fmt.Printf("[WARN] Week assignment failed after %d attempts; some matchups will be missing\n", maxAttempts) + assigned, failed := attemptWeekAssignment(matchups, teamByID, dalID, detID) + for _, m := range failed { + fmt.Printf("[WARN] Could not place matchup homeID=%d awayID=%d\n", m.homeID, m.awayID) + } + return assigned +} + +// attemptWeekAssignment performs a single attempt at distributing matchups across weeks. +// It returns the successfully assigned games and any matchups that could not be placed. +func attemptWeekAssignment( + matchups []matchup, + teamByID map[uint]structs.NFLTeam, + dalID, detID uint, +) (assigned []weekMatchup, failed []matchup) { const totalWeeks = 18 - const byeMin = 5 - const byeMax = 14 - teamWeekGames := make(map[uint]map[int]bool) + teamWeekGames := make(map[uint]map[int]bool, len(teamByID)) for id := range teamByID { teamWeekGames[id] = make(map[int]bool) } - rand.Shuffle(len(matchups), func(i, j int) { matchups[i], matchups[j] = matchups[j], matchups[i] }) + // Shuffle the input so each attempt gets a different ordering. + work := make([]matchup, len(matchups)) + copy(work, matchups) + rand.Shuffle(len(work), func(i, j int) { work[i], work[j] = work[j], work[i] }) // Separate week-18-only (divisional) matchups from the rest. var divisionalMatchups []matchup @@ -404,7 +690,7 @@ func assignMatchupsToWeeks( // Also collect DAL and DET divisional games for week-13 priority. var dalDivisional []matchup var detDivisional []matchup - for _, m := range matchups { + for _, m := range work { if m.isDivisional { isDal := m.homeID == dalID || m.awayID == dalID isDet := m.homeID == detID || m.awayID == detID @@ -420,7 +706,7 @@ func assignMatchupsToWeeks( } } - assigned := make([]weekMatchup, 0, len(matchups)) + assigned = make([]weekMatchup, 0, len(work)) assignToWeek := func(m matchup, w int) { teamWeekGames[m.homeID][w] = true @@ -451,9 +737,7 @@ func assignMatchupsToWeeks( divisionalMatchups = append(divisionalMatchups, dalDivisional...) divisionalMatchups = append(divisionalMatchups, detDivisional...) - // Step 2: Assign one divisional game to week 18 per team (fill week 18 with divisional matchups). - // Each of 8 divisions needs 3 intra-division games per team = 24 home games in the division pool. - // We put as many divisional games as fit in week 18 (up to 16 games). + // Step 2: Fill week 18 with as many divisional matchups as possible. rand.Shuffle(len(divisionalMatchups), func(i, j int) { divisionalMatchups[i], divisionalMatchups[j] = divisionalMatchups[j], divisionalMatchups[i] }) @@ -466,46 +750,109 @@ func assignMatchupsToWeeks( } } - // Step 3: Assign remaining divisional and all non-divisional games. + // Step 3: Assign remaining divisional and all non-divisional games to weeks 1-17. remaining := append(week18Overflow, otherMatchups...) rand.Shuffle(len(remaining), func(i, j int) { remaining[i], remaining[j] = remaining[j], remaining[i] }) var unassigned []matchup for _, m := range remaining { placed := false - weekOrder := rand.Perm(totalWeeks - 2) // weeks 1-16 candidates initially + weekOrder := rand.Perm(totalWeeks - 1) for _, wi := range weekOrder { w := wi + 1 if w == 18 { - continue // week 18 reserved for divisional - } - // Enforce bye weeks only in weeks 5-14: a team that would have a bye outside - // that range is only acceptable if we have no other option. - if !canPlace(m, w) { continue } - // Check that assigning here won't force a bye outside weeks 5-14 for either team. - // (Heuristic: prefer weeks where at least one team already has games on either side.) - assignToWeek(m, w) - placed = true - break + if canPlace(m, w) { + assignToWeek(m, w) + placed = true + break + } } if !placed { unassigned = append(unassigned, m) } } - // Second pass for anything still unassigned — relax week-18 restriction if necessary. + // Second pass: relax week-18 restriction. + var stillUnassigned []matchup for _, m := range unassigned { + placed := false for w := 1; w <= totalWeeks; w++ { if canPlace(m, w) { assignToWeek(m, w) + placed = true break } } + if !placed { + stillUnassigned = append(stillUnassigned, m) + } } - return assigned + // Third pass: swap-and-place. For each unplaced game, find a week where one team + // is free and the other has a moveable game, then bump that game to another slot. + for _, m := range stillUnassigned { + placed := false + for w := 1; w <= totalWeeks && !placed; w++ { + if canPlace(m, w) { + assignToWeek(m, w) + placed = true + break + } + // Determine which of the two teams is busy in this week. + var busyID uint + if teamWeekGames[m.homeID][w] && !teamWeekGames[m.awayID][w] { + busyID = m.homeID + } else if teamWeekGames[m.awayID][w] && !teamWeekGames[m.homeID][w] { + busyID = m.awayID + } else { + continue // both busy — no point trying to bump + } + // Find the assigned game for busyID in week w and try to move it. + for idx := range assigned { + ag := &assigned[idx] + if ag.week != w || (ag.homeID != busyID && ag.awayID != busyID) { + continue + } + teamWeekGames[ag.homeID][w] = false + teamWeekGames[ag.awayID][w] = false + bumpedM := matchup{homeID: ag.homeID, awayID: ag.awayID, isDivisional: ag.isDivisional} + moved := false + for altW := 1; altW <= totalWeeks; altW++ { + if altW == w { + continue + } + if canPlace(bumpedM, altW) { + ag.week = altW + teamWeekGames[ag.homeID][altW] = true + teamWeekGames[ag.awayID][altW] = true + moved = true + break + } + } + if moved && canPlace(m, w) { + assignToWeek(m, w) + placed = true + } else { + // Restore original slot — swap didn't help. + if moved { + teamWeekGames[ag.homeID][ag.week] = false + teamWeekGames[ag.awayID][ag.week] = false + ag.week = w + } + teamWeekGames[ag.homeID][w] = true + teamWeekGames[ag.awayID][w] = true + } + break + } + } + if !placed { + failed = append(failed, m) + } + } + + return assigned, failed } // buildNFLGameRecords converts weekMatchup entries into NFLGame structs, @@ -597,6 +944,10 @@ func buildNFLGameRecords( ht := teamByID[wm.homeID] at := teamByID[wm.awayID] stadium := stadiumByTeam[wm.homeID] + if stadium.ID == 0 { + fmt.Printf("[WARN] No NFL stadium record found for home team ID=%d (%s %s)\n", + ht.ID, ht.TeamName, ht.Mascot) + } homeCoach := ht.NFLCoachName if homeCoach == "" || homeCoach == "AI" { @@ -641,11 +992,11 @@ func buildNFLGameRecords( return games } -// applyByeWeekFlags sets HomePreviousBye and AwayPreviousBye on game records +// applySimNFLByeWeekFlags sets HomePreviousBye and AwayPreviousBye on game records // where the corresponding team had no game the previous week (i.e., was on bye). -func applyByeWeekFlags(games []structs.NFLGame) { +func applySimNFLByeWeekFlags(nflGames []structs.NFLGame) { teamWeeks := make(map[int]map[int]bool) - for _, g := range games { + for _, g := range nflGames { if teamWeeks[g.HomeTeamID] == nil { teamWeeks[g.HomeTeamID] = make(map[int]bool) } @@ -656,8 +1007,8 @@ func applyByeWeekFlags(games []structs.NFLGame) { teamWeeks[g.AwayTeamID][g.Week] = true } - for i := range games { - g := &games[i] + for i := range nflGames { + g := &nflGames[i] prevWeek := g.Week - 1 if prevWeek >= 1 { if !teamWeeks[g.HomeTeamID][prevWeek] { diff --git a/managers/StadiumManager.go b/managers/StadiumManager.go index 6f37f61e..5c9c743b 100644 --- a/managers/StadiumManager.go +++ b/managers/StadiumManager.go @@ -1,6 +1,8 @@ package managers import ( + "fmt" + "github.com/CalebRose/SimFBA/dbprovider" "github.com/CalebRose/SimFBA/structs" ) @@ -24,3 +26,44 @@ func GetStadiumByStadiumID(id string) structs.Stadium { return stadium } + +// EnsureNFLStadiumsExist checks every NFL team and creates a Stadium record for any +// team that doesn't already have one, using the address and capacity values stored +// on the NFLTeam struct itself. +func EnsureNFLStadiumsExist() { + db := dbprovider.GetInstance().GetDB() + + allTeams := GetAllNFLTeams() + + // Build a map of teamID -> Stadium for all existing NFL stadiums. + stadiums := GetAllStadiums() + stadiumByTeam := make(map[uint]structs.Stadium, len(stadiums)) + for _, s := range stadiums { + if s.LeagueName != "NFL" { + continue + } + stadiumByTeam[s.TeamID] = s + } + + // For each NFL team without a stadium record, create one from the team's own fields. + for _, t := range allTeams { + if _, exists := stadiumByTeam[t.ID]; exists { + continue + } + stadium := structs.Stadium{ + StadiumName: t.Stadium, + TeamID: t.ID, + TeamAbbr: t.TeamAbbr, + City: t.City, + State: t.State, + Country: t.Country, + Capacity: uint(t.StadiumCapacity), + RecordAttendance: uint(t.RecordAttendance), + LeagueID: 3, + LeagueName: "NFL", + } + db.Create(&stadium) + fmt.Printf("[INFO] Created stadium %q for %s %s (teamID=%d)\n", + stadium.StadiumName, t.TeamName, t.Mascot, t.ID) + } +} diff --git a/managers/WeatherManager.go b/managers/WeatherManager.go index 95002516..5937db3c 100644 --- a/managers/WeatherManager.go +++ b/managers/WeatherManager.go @@ -26,16 +26,21 @@ func GenerateWeatherForGames() { teamRegions := getRegionsForSchools() - stadiumMap := make(map[uint]structs.Stadium) + cfbStadiumMap := make(map[uint]structs.Stadium) + nflStadiumMap := make(map[uint]structs.Stadium) for _, stadium := range stadiums { - stadiumMap[stadium.ID] = stadium + if stadium.LeagueName == "NFL" { + nflStadiumMap[stadium.TeamID] = stadium + } else { + cfbStadiumMap[stadium.TeamID] = stadium + } } seasonID := strconv.Itoa(int(ts.CollegeSeasonID)) collegeGames := GetCollegeGamesBySeasonID(seasonID) for _, game := range collegeGames { - if game.WeekID < ts.CollegeWeekID || (game.LowTemp != 0 && game.HighTemp != 0) { + if game.WeekID < ts.CollegeWeekID { continue } GenerateWeatherForGame(db, game, teamRegions, regions, rainForecasts, mixForecasts, snowForecasts) @@ -44,7 +49,7 @@ func GenerateWeatherForGames() { nflGames := GetNFLGamesBySeasonID(strconv.Itoa(int(ts.NFLSeasonID))) for _, game := range nflGames { - if game.WeekID < ts.NFLWeekID || game.Stadium == "#N/A" || (game.LowTemp != 0 && game.HighTemp != 0) { + if game.WeekID < ts.NFLWeekID || game.Stadium == "#N/A" { continue } homeTeam := GetNFLTeamByTeamID(strconv.Itoa(game.HomeTeamID)) diff --git a/nfl_schedule_season_7.csv b/nfl_schedule_season_7.csv new file mode 100644 index 00000000..cb5323c2 --- /dev/null +++ b/nfl_schedule_season_7.csv @@ -0,0 +1,307 @@ +Week,HomeTeamID,HomeTeam,AwayTeamID,AwayTeam,TimeSlot,Stadium,City,State,IsConference,IsDivisional,HomePreviousBye,AwayPreviousBye +1,25,Atlanta Falcons,16,Los Angeles Chargers,Thursday Night Football,Mercedes-Benz Stadium,Atlanta,GA,false,false,false,false +1,6,Cincinnati Bengals,32,Seattle Seahawks,Sunday Night Football,Paul Brown Stadium,Cincinnati,OH,false,false,false,false +1,5,Baltimore Ravens,2,Miami Dolphins,Monday Night Football,M&T Bank Stadium,Baltimore,MD,true,false,false,false +1,31,San Francisco 49ers,8,Pittsburgh Steelers,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,false,false,false,false +1,4,New York Jets,11,Jacksonville Jaguars,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,false,false,false +1,28,Tampa Bay Buccaneers,13,Denver Broncos,Sunday Noon,Raymond James Stadium,Tampa,FL,false,false,false,false +1,1,Buffalo Bills,3,New England Patriots,Sunday Noon,Highmark Stadium,Orchard Park,NY,true,true,false,false +1,10,Indianapolis Colts,14,Kansas City Chiefs,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,true,false,false,false +1,22,Detroit Lions,21,Chicago Bears,Sunday Noon,Ford Field,Detroit,MI,true,true,false,false +1,7,Cleveland Browns,29,Arizona Cardinals,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,false,false,false,false +1,19,Philadelphia Eagles,20,Washington Commanders,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,true,true,false,false +1,12,Tennessee Titans,24,Minnesota Vikings,Sunday Noon,Nissan Stadium,Nashville,TN,false,false,false,false +1,17,Dallas Cowboys,23,Green Bay Packers,Sunday Afternoon,AT&T Stadium,Arlington,TX,true,false,false,false +1,9,Houston Texans,15,Las Vegas Raiders,Sunday Afternoon,NRG Stadium,Houston,TX,true,false,false,false +1,27,New Orleans Saints,26,Carolina Panthers,Sunday Afternoon,Caesars Superdome,New Orleans,LA,true,true,false,false +2,30,Los Angeles Rams,25,Atlanta Falcons,Thursday Night Football,SoFi Stadium,Inglewood,CA,true,false,true,false +2,15,Las Vegas Raiders,12,Tennessee Titans,Sunday Night Football,Allegiant Stadium,Paradise,NV,true,false,false,false +2,23,Green Bay Packers,21,Chicago Bears,Monday Night Football,Lambeau Field,Green Bay,WI,true,true,false,false +2,9,Houston Texans,10,Indianapolis Colts,Sunday Afternoon,NRG Stadium,Houston,TX,true,true,false,false +2,16,Los Angeles Chargers,4,New York Jets,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,false,false,false +2,18,New York Giants,17,Dallas Cowboys,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,true,true,false +2,24,Minnesota Vikings,11,Jacksonville Jaguars,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,false,false,false,false +2,13,Denver Broncos,2,Miami Dolphins,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,false,false,false +2,22,Detroit Lions,32,Seattle Seahawks,Sunday Noon,Ford Field,Detroit,MI,true,false,false,false +2,5,Baltimore Ravens,8,Pittsburgh Steelers,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,true,false,false +2,20,Washington Commanders,1,Buffalo Bills,Sunday Noon,FedExField,Landover,MD,false,false,false,false +2,31,San Francisco 49ers,29,Arizona Cardinals,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,true,true,false,false +2,3,New England Patriots,7,Cleveland Browns,Sunday Noon,Gillette Stadium,Foxborough,MA,true,false,false,false +2,28,Tampa Bay Buccaneers,26,Carolina Panthers,Sunday Noon,Raymond James Stadium,Tampa,FL,true,true,false,false +3,20,Washington Commanders,18,New York Giants,Thursday Night Football,FedExField,Landover,MD,true,true,false,false +3,30,Los Angeles Rams,27,New Orleans Saints,Sunday Night Football,SoFi Stadium,Inglewood,CA,true,false,false,true +3,32,Seattle Seahawks,7,Cleveland Browns,Monday Night Football,Lumen Field,Seattle,WA,false,false,false,false +3,10,Indianapolis Colts,11,Jacksonville Jaguars,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,true,true,false,false +3,15,Las Vegas Raiders,14,Kansas City Chiefs,Sunday Afternoon,Allegiant Stadium,Paradise,NV,true,true,false,true +3,9,Houston Texans,19,Philadelphia Eagles,Sunday Afternoon,NRG Stadium,Houston,TX,false,false,false,true +3,21,Chicago Bears,12,Tennessee Titans,Sunday Afternoon,Soldier Field,Chicago,IL,false,false,false,false +3,23,Green Bay Packers,24,Minnesota Vikings,Sunday Afternoon,Lambeau Field,Green Bay,WI,true,true,false,false +3,26,Carolina Panthers,13,Denver Broncos,Sunday Noon,Bank of America Stadium,Charlotte,NC,false,false,false,false +3,1,Buffalo Bills,2,Miami Dolphins,Sunday Noon,Highmark Stadium,Orchard Park,NY,true,true,false,false +3,3,New England Patriots,4,New York Jets,Sunday Noon,Gillette Stadium,Foxborough,MA,true,true,false,false +3,8,Pittsburgh Steelers,16,Los Angeles Chargers,Sunday Noon,Heinz Field,Pittsburgh,PA,true,false,false,false +3,31,San Francisco 49ers,6,Cincinnati Bengals,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,false,false,false,true +3,5,Baltimore Ravens,29,Arizona Cardinals,Sunday Noon,M&T Bank Stadium,Baltimore,MD,false,false,false,false +3,22,Detroit Lions,25,Atlanta Falcons,Sunday Noon,Ford Field,Detroit,MI,true,false,false,false +4,14,Kansas City Chiefs,11,Jacksonville Jaguars,Thursday Night Football,Arrowhead Stadium,Kansas City,MO,true,false,false,false +4,18,New York Giants,19,Philadelphia Eagles,Sunday Night Football,MetLife Stadium,East Rutherford,NJ,true,true,false,false +4,13,Denver Broncos,27,New Orleans Saints,Monday Night Football,Empower Field at Mile High,Denver,CO,false,false,false,false +4,16,Los Angeles Chargers,28,Tampa Bay Buccaneers,Sunday Afternoon,SoFi Stadium,Inglewood,CA,false,false,false,true +4,26,Carolina Panthers,32,Seattle Seahawks,Sunday Noon,Bank of America Stadium,Charlotte,NC,true,false,false,false +4,20,Washington Commanders,24,Minnesota Vikings,Sunday Noon,FedExField,Landover,MD,true,false,false,false +4,4,New York Jets,2,Miami Dolphins,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,true,false,false +4,6,Cincinnati Bengals,9,Houston Texans,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,false,false,false +4,5,Baltimore Ravens,15,Las Vegas Raiders,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,false,false,false +4,3,New England Patriots,10,Indianapolis Colts,Sunday Noon,Gillette Stadium,Foxborough,MA,true,false,false,false +4,21,Chicago Bears,22,Detroit Lions,Sunday Afternoon,Soldier Field,Chicago,IL,true,true,false,false +4,7,Cleveland Browns,12,Tennessee Titans,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,false,false,false +4,1,Buffalo Bills,17,Dallas Cowboys,Sunday Noon,Highmark Stadium,Orchard Park,NY,false,false,false,true +4,29,Arizona Cardinals,8,Pittsburgh Steelers,Sunday Afternoon,State Farm Stadium,Glendale,AZ,false,false,false,false +4,23,Green Bay Packers,30,Los Angeles Rams,Sunday Afternoon,Lambeau Field,Green Bay,WI,true,false,false,false +5,24,Minnesota Vikings,29,Arizona Cardinals,Thursday Night Football,U.S. Bank Stadium,Minneapolis,MN,true,false,false,false +5,7,Cleveland Browns,2,Miami Dolphins,Sunday Night Football,FirstEnergy Stadium,Cleveland,OH,true,false,false,false +5,1,Buffalo Bills,4,New York Jets,Monday Night Football,Highmark Stadium,Orchard Park,NY,true,true,false,false +5,5,Baltimore Ravens,10,Indianapolis Colts,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,false,false,false +5,32,Seattle Seahawks,20,Washington Commanders,Sunday Afternoon,Lumen Field,Seattle,WA,true,false,false,false +5,3,New England Patriots,17,Dallas Cowboys,Sunday Noon,Gillette Stadium,Foxborough,MA,false,false,false,false +5,16,Los Angeles Chargers,11,Jacksonville Jaguars,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,false,false,false +5,8,Pittsburgh Steelers,6,Cincinnati Bengals,Sunday Noon,Heinz Field,Pittsburgh,PA,true,true,false,false +5,31,San Francisco 49ers,30,Los Angeles Rams,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,true,true,true,false +5,25,Atlanta Falcons,28,Tampa Bay Buccaneers,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,true,true,true,false +5,26,Carolina Panthers,15,Las Vegas Raiders,Sunday Noon,Bank of America Stadium,Charlotte,NC,false,false,false,false +5,22,Detroit Lions,19,Philadelphia Eagles,Sunday Noon,Ford Field,Detroit,MI,true,false,false,false +5,21,Chicago Bears,18,New York Giants,Sunday Afternoon,Soldier Field,Chicago,IL,true,false,false,false +5,23,Green Bay Packers,12,Tennessee Titans,Sunday Afternoon,Lambeau Field,Green Bay,WI,false,false,false,false +5,27,New Orleans Saints,14,Kansas City Chiefs,Sunday Afternoon,Caesars Superdome,New Orleans,LA,false,false,false,false +6,18,New York Giants,22,Detroit Lions,Thursday Night Football,MetLife Stadium,East Rutherford,NJ,true,false,false,false +6,24,Minnesota Vikings,17,Dallas Cowboys,Sunday Night Football,U.S. Bank Stadium,Minneapolis,MN,true,false,false,false +6,27,New Orleans Saints,31,San Francisco 49ers,Monday Night Football,Caesars Superdome,New Orleans,LA,true,false,false,false +6,6,Cincinnati Bengals,8,Pittsburgh Steelers,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,true,false,false +6,11,Jacksonville Jaguars,9,Houston Texans,Sunday Noon,TIAA Bank Field,Jacksonville,FL,true,true,false,true +6,30,Los Angeles Rams,5,Baltimore Ravens,Sunday Afternoon,SoFi Stadium,Inglewood,CA,false,false,false,false +6,13,Denver Broncos,25,Atlanta Falcons,Sunday Afternoon,Empower Field at Mile High,Denver,CO,false,false,true,false +6,15,Las Vegas Raiders,10,Indianapolis Colts,Sunday Afternoon,Allegiant Stadium,Paradise,NV,true,false,false,false +6,16,Los Angeles Chargers,14,Kansas City Chiefs,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,false,false +6,19,Philadelphia Eagles,2,Miami Dolphins,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,false,false,false,false +6,1,Buffalo Bills,7,Cleveland Browns,Sunday Noon,Highmark Stadium,Orchard Park,NY,true,false,false,false +6,4,New York Jets,3,New England Patriots,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,true,false,false +6,26,Carolina Panthers,28,Tampa Bay Buccaneers,Sunday Noon,Bank of America Stadium,Charlotte,NC,true,true,false,false +6,29,Arizona Cardinals,32,Seattle Seahawks,Sunday Afternoon,State Farm Stadium,Glendale,AZ,true,true,false,false +7,18,New York Giants,3,New England Patriots,Thursday Night Football,MetLife Stadium,East Rutherford,NJ,false,false,false,false +7,4,New York Jets,6,Cincinnati Bengals,Sunday Night Football,MetLife Stadium,East Rutherford,NJ,true,false,false,false +7,24,Minnesota Vikings,23,Green Bay Packers,Monday Night Football,U.S. Bank Stadium,Minneapolis,MN,true,true,false,true +7,12,Tennessee Titans,14,Kansas City Chiefs,Sunday Noon,Nissan Stadium,Nashville,TN,true,false,true,false +7,9,Houston Texans,13,Denver Broncos,Sunday Afternoon,NRG Stadium,Houston,TX,true,false,false,false +7,1,Buffalo Bills,5,Baltimore Ravens,Sunday Noon,Highmark Stadium,Orchard Park,NY,true,false,false,false +7,31,San Francisco 49ers,28,Tampa Bay Buccaneers,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,true,false,false,false +7,21,Chicago Bears,10,Indianapolis Colts,Sunday Afternoon,Soldier Field,Chicago,IL,false,false,true,false +7,17,Dallas Cowboys,26,Carolina Panthers,Sunday Afternoon,AT&T Stadium,Arlington,TX,true,false,false,false +7,30,Los Angeles Rams,29,Arizona Cardinals,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,false,false +7,20,Washington Commanders,25,Atlanta Falcons,Sunday Noon,FedExField,Landover,MD,true,false,true,false +7,22,Detroit Lions,11,Jacksonville Jaguars,Sunday Noon,Ford Field,Detroit,MI,false,false,false,false +7,19,Philadelphia Eagles,27,New Orleans Saints,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,true,false,false,false +7,7,Cleveland Browns,8,Pittsburgh Steelers,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,true,false,false +7,16,Los Angeles Chargers,32,Seattle Seahawks,Sunday Afternoon,SoFi Stadium,Inglewood,CA,false,false,false,false +8,11,Jacksonville Jaguars,10,Indianapolis Colts,Thursday Night Football,TIAA Bank Field,Jacksonville,FL,true,true,false,false +8,4,New York Jets,20,Washington Commanders,Sunday Night Football,MetLife Stadium,East Rutherford,NJ,false,false,false,false +8,29,Arizona Cardinals,26,Carolina Panthers,Monday Night Football,State Farm Stadium,Glendale,AZ,true,false,false,false +8,18,New York Giants,28,Tampa Bay Buccaneers,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,false,false,false +8,12,Tennessee Titans,16,Los Angeles Chargers,Sunday Noon,Nissan Stadium,Nashville,TN,true,false,false,false +8,9,Houston Texans,23,Green Bay Packers,Sunday Afternoon,NRG Stadium,Houston,TX,false,false,false,false +8,21,Chicago Bears,31,San Francisco 49ers,Sunday Afternoon,Soldier Field,Chicago,IL,true,false,false,false +8,2,Miami Dolphins,8,Pittsburgh Steelers,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,true,false,true,false +8,1,Buffalo Bills,19,Philadelphia Eagles,Sunday Noon,Highmark Stadium,Orchard Park,NY,false,false,false,false +8,13,Denver Broncos,14,Kansas City Chiefs,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,true,false,false +8,5,Baltimore Ravens,6,Cincinnati Bengals,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,true,false,false +8,32,Seattle Seahawks,27,New Orleans Saints,Sunday Afternoon,Lumen Field,Seattle,WA,true,false,false,false +8,24,Minnesota Vikings,22,Detroit Lions,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,true,true,false,false +8,30,Los Angeles Rams,17,Dallas Cowboys,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,false,false,false +8,15,Las Vegas Raiders,25,Atlanta Falcons,Sunday Afternoon,Allegiant Stadium,Paradise,NV,false,false,true,false +9,29,Arizona Cardinals,18,New York Giants,Thursday Night Football,State Farm Stadium,Glendale,AZ,true,false,false,false +9,2,Miami Dolphins,20,Washington Commanders,Sunday Night Football,Hard Rock Stadium,Miami Gardens,FL,false,false,false,false +9,14,Kansas City Chiefs,26,Carolina Panthers,Monday Night Football,Arrowhead Stadium,Kansas City,MO,false,false,false,false +9,13,Denver Broncos,15,Las Vegas Raiders,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,true,false,false +9,3,New England Patriots,19,Philadelphia Eagles,Sunday Noon,Gillette Stadium,Foxborough,MA,false,false,true,false +9,8,Pittsburgh Steelers,11,Jacksonville Jaguars,Sunday Noon,Heinz Field,Pittsburgh,PA,true,false,false,false +9,22,Detroit Lions,9,Houston Texans,Sunday Noon,Ford Field,Detroit,MI,false,false,false,false +9,21,Chicago Bears,23,Green Bay Packers,Sunday Afternoon,Soldier Field,Chicago,IL,true,true,false,false +9,10,Indianapolis Colts,24,Minnesota Vikings,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,false,false,false,false +9,6,Cincinnati Bengals,5,Baltimore Ravens,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,true,false,false +9,28,Tampa Bay Buccaneers,32,Seattle Seahawks,Sunday Noon,Raymond James Stadium,Tampa,FL,true,false,false,false +9,12,Tennessee Titans,17,Dallas Cowboys,Sunday Noon,Nissan Stadium,Nashville,TN,false,false,false,false +9,7,Cleveland Browns,4,New York Jets,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,false,true,false +9,30,Los Angeles Rams,31,San Francisco 49ers,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,false,false +9,25,Atlanta Falcons,27,New Orleans Saints,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,true,true,false,false +10,25,Atlanta Falcons,14,Kansas City Chiefs,Thursday Night Football,Mercedes-Benz Stadium,Atlanta,GA,false,false,false,false +10,29,Arizona Cardinals,30,Los Angeles Rams,Sunday Night Football,State Farm Stadium,Glendale,AZ,true,true,false,false +10,21,Chicago Bears,27,New Orleans Saints,Monday Night Football,Soldier Field,Chicago,IL,true,false,false,false +10,5,Baltimore Ravens,4,New York Jets,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,false,false,false +10,17,Dallas Cowboys,2,Miami Dolphins,Sunday Afternoon,AT&T Stadium,Arlington,TX,false,false,false,false +10,11,Jacksonville Jaguars,23,Green Bay Packers,Sunday Noon,TIAA Bank Field,Jacksonville,FL,false,false,false,false +10,20,Washington Commanders,22,Detroit Lions,Sunday Noon,FedExField,Landover,MD,true,false,false,false +10,31,San Francisco 49ers,26,Carolina Panthers,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,true,false,false,false +10,24,Minnesota Vikings,28,Tampa Bay Buccaneers,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,true,false,false,false +10,7,Cleveland Browns,13,Denver Broncos,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,false,false,false +10,9,Houston Texans,12,Tennessee Titans,Sunday Afternoon,NRG Stadium,Houston,TX,true,true,false,false +10,19,Philadelphia Eagles,18,New York Giants,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,true,true,false,false +10,6,Cincinnati Bengals,3,New England Patriots,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,false,false,false +10,16,Los Angeles Chargers,15,Las Vegas Raiders,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,true,false +10,8,Pittsburgh Steelers,1,Buffalo Bills,Sunday Noon,Heinz Field,Pittsburgh,PA,true,false,false,true +11,15,Las Vegas Raiders,16,Los Angeles Chargers,Thursday Night Football,Allegiant Stadium,Paradise,NV,true,true,false,false +11,12,Tennessee Titans,9,Houston Texans,Sunday Night Football,Nissan Stadium,Nashville,TN,true,true,false,false +11,14,Kansas City Chiefs,1,Buffalo Bills,Monday Night Football,Arrowhead Stadium,Kansas City,MO,true,false,false,false +11,24,Minnesota Vikings,19,Philadelphia Eagles,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,true,false,false,false +11,6,Cincinnati Bengals,7,Cleveland Browns,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,true,false,false +11,17,Dallas Cowboys,21,Chicago Bears,Sunday Afternoon,AT&T Stadium,Arlington,TX,true,false,false,false +11,28,Tampa Bay Buccaneers,27,New Orleans Saints,Sunday Noon,Raymond James Stadium,Tampa,FL,true,true,false,false +11,25,Atlanta Falcons,26,Carolina Panthers,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,true,true,false,false +11,32,Seattle Seahawks,29,Arizona Cardinals,Sunday Afternoon,Lumen Field,Seattle,WA,true,true,true,false +11,18,New York Giants,20,Washington Commanders,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,true,false,false +11,2,Miami Dolphins,4,New York Jets,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,true,true,false,false +11,5,Baltimore Ravens,31,San Francisco 49ers,Sunday Noon,M&T Bank Stadium,Baltimore,MD,false,false,false,false +11,8,Pittsburgh Steelers,3,New England Patriots,Sunday Noon,Heinz Field,Pittsburgh,PA,true,false,false,false +11,23,Green Bay Packers,10,Indianapolis Colts,Sunday Afternoon,Lambeau Field,Green Bay,WI,false,false,false,true +11,13,Denver Broncos,30,Los Angeles Rams,Sunday Afternoon,Empower Field at Mile High,Denver,CO,false,false,false,false +12,14,Kansas City Chiefs,31,San Francisco 49ers,Thursday Night Football,Arrowhead Stadium,Kansas City,MO,false,false,false,false +12,17,Dallas Cowboys,4,New York Jets,Sunday Night Football,AT&T Stadium,Arlington,TX,false,false,false,false +12,3,New England Patriots,5,Baltimore Ravens,Monday Night Football,Gillette Stadium,Foxborough,MA,true,false,false,false +12,8,Pittsburgh Steelers,7,Cleveland Browns,Sunday Noon,Heinz Field,Pittsburgh,PA,true,true,false,false +12,30,Los Angeles Rams,32,Seattle Seahawks,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,false,false +12,16,Los Angeles Chargers,26,Carolina Panthers,Sunday Afternoon,SoFi Stadium,Inglewood,CA,false,false,false,false +12,19,Philadelphia Eagles,21,Chicago Bears,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,true,false,false,false +12,2,Miami Dolphins,1,Buffalo Bills,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,true,true,false,false +12,28,Tampa Bay Buccaneers,15,Las Vegas Raiders,Sunday Noon,Raymond James Stadium,Tampa,FL,false,false,false,false +12,13,Denver Broncos,12,Tennessee Titans,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,false,false,false +12,10,Indianapolis Colts,22,Detroit Lions,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,false,false,false,true +12,18,New York Giants,24,Minnesota Vikings,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,false,false,false +12,27,New Orleans Saints,6,Cincinnati Bengals,Sunday Afternoon,Caesars Superdome,New Orleans,LA,false,false,false,false +12,23,Green Bay Packers,20,Washington Commanders,Sunday Afternoon,Lambeau Field,Green Bay,WI,true,false,false,false +12,9,Houston Texans,11,Jacksonville Jaguars,Sunday Afternoon,NRG Stadium,Houston,TX,true,true,false,true +12,25,Atlanta Falcons,29,Arizona Cardinals,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,true,false,false,false +13,26,Carolina Panthers,27,New Orleans Saints,Sunday Night Football,Bank of America Stadium,Charlotte,NC,true,true,false,false +13,4,New York Jets,18,New York Giants,Monday Night Football,MetLife Stadium,East Rutherford,NJ,false,false,false,false +13,1,Buffalo Bills,21,Chicago Bears,Sunday Noon,Highmark Stadium,Orchard Park,NY,false,false,false,false +13,31,San Francisco 49ers,32,Seattle Seahawks,Thursday Night Football,Levi's Stadium,Santa Clara,CA,true,true,false,false +13,25,Atlanta Falcons,8,Pittsburgh Steelers,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,false,false,false,false +13,13,Denver Broncos,16,Los Angeles Chargers,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,true,false,false +13,30,Los Angeles Rams,7,Cleveland Browns,Sunday Afternoon,SoFi Stadium,Inglewood,CA,false,false,false,false +13,28,Tampa Bay Buccaneers,5,Baltimore Ravens,Sunday Noon,Raymond James Stadium,Tampa,FL,false,false,false,false +13,29,Arizona Cardinals,6,Cincinnati Bengals,Sunday Afternoon,State Farm Stadium,Glendale,AZ,false,false,false,false +13,12,Tennessee Titans,10,Indianapolis Colts,Sunday Noon,Nissan Stadium,Nashville,TN,true,true,false,false +13,15,Las Vegas Raiders,3,New England Patriots,Sunday Afternoon,Allegiant Stadium,Paradise,NV,true,false,false,false +13,19,Philadelphia Eagles,17,Dallas Cowboys,Thursday Night Football,Lincoln Financial Field,Philadelphia,PA,true,true,false,false +13,2,Miami Dolphins,23,Green Bay Packers,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,false,false,false,false +13,22,Detroit Lions,24,Minnesota Vikings,Thursday Night Football,Ford Field,Detroit,MI,true,true,false,false +13,14,Kansas City Chiefs,9,Houston Texans,Sunday Afternoon,Arrowhead Stadium,Kansas City,MO,true,false,false,false +13,11,Jacksonville Jaguars,20,Washington Commanders,Sunday Noon,TIAA Bank Field,Jacksonville,FL,false,false,false,false +14,2,Miami Dolphins,6,Cincinnati Bengals,Thursday Night Football,Hard Rock Stadium,Miami Gardens,FL,true,false,false,false +14,18,New York Giants,1,Buffalo Bills,Sunday Night Football,MetLife Stadium,East Rutherford,NJ,false,false,false,false +14,17,Dallas Cowboys,19,Philadelphia Eagles,Monday Night Football,AT&T Stadium,Arlington,TX,true,true,false,false +14,11,Jacksonville Jaguars,12,Tennessee Titans,Sunday Noon,TIAA Bank Field,Jacksonville,FL,true,true,false,false +14,13,Denver Broncos,10,Indianapolis Colts,Sunday Afternoon,Empower Field at Mile High,Denver,CO,true,false,false,false +14,5,Baltimore Ravens,7,Cleveland Browns,Sunday Noon,M&T Bank Stadium,Baltimore,MD,true,true,false,false +14,16,Los Angeles Chargers,9,Houston Texans,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,false,false,false +14,4,New York Jets,8,Pittsburgh Steelers,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,false,false,false +14,27,New Orleans Saints,25,Atlanta Falcons,Sunday Afternoon,Caesars Superdome,New Orleans,LA,true,true,false,false +14,24,Minnesota Vikings,21,Chicago Bears,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,true,true,false,false +14,15,Las Vegas Raiders,29,Arizona Cardinals,Sunday Afternoon,Allegiant Stadium,Paradise,NV,false,false,false,false +14,20,Washington Commanders,3,New England Patriots,Sunday Noon,FedExField,Landover,MD,false,false,false,false +14,22,Detroit Lions,23,Green Bay Packers,Sunday Noon,Ford Field,Detroit,MI,true,true,false,false +14,32,Seattle Seahawks,31,San Francisco 49ers,Sunday Afternoon,Lumen Field,Seattle,WA,true,true,false,false +14,26,Carolina Panthers,30,Los Angeles Rams,Sunday Noon,Bank of America Stadium,Charlotte,NC,true,false,false,false +14,14,Kansas City Chiefs,28,Tampa Bay Buccaneers,Sunday Afternoon,Arrowhead Stadium,Kansas City,MO,false,false,false,false +15,29,Arizona Cardinals,28,Tampa Bay Buccaneers,Thursday Night Football,State Farm Stadium,Glendale,AZ,true,false,false,false +15,15,Las Vegas Raiders,27,New Orleans Saints,Sunday Night Football,Allegiant Stadium,Paradise,NV,false,false,false,false +15,6,Cincinnati Bengals,14,Kansas City Chiefs,Monday Night Football,Paul Brown Stadium,Cincinnati,OH,true,false,false,false +15,26,Carolina Panthers,7,Cleveland Browns,Sunday Noon,Bank of America Stadium,Charlotte,NC,false,false,false,false +15,17,Dallas Cowboys,20,Washington Commanders,Sunday Afternoon,AT&T Stadium,Arlington,TX,true,true,false,false +15,2,Miami Dolphins,12,Tennessee Titans,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,true,false,false,false +15,4,New York Jets,22,Detroit Lions,Sunday Noon,MetLife Stadium,East Rutherford,NJ,false,false,false,false +15,11,Jacksonville Jaguars,13,Denver Broncos,Sunday Noon,TIAA Bank Field,Jacksonville,FL,true,false,false,false +15,9,Houston Texans,21,Chicago Bears,Sunday Afternoon,NRG Stadium,Houston,TX,false,false,false,false +15,23,Green Bay Packers,18,New York Giants,Sunday Afternoon,Lambeau Field,Green Bay,WI,true,false,false,false +15,8,Pittsburgh Steelers,30,Los Angeles Rams,Sunday Noon,Heinz Field,Pittsburgh,PA,false,false,false,false +15,32,Seattle Seahawks,25,Atlanta Falcons,Sunday Afternoon,Lumen Field,Seattle,WA,true,false,false,false +15,10,Indianapolis Colts,16,Los Angeles Chargers,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,true,false,false,false +15,3,New England Patriots,1,Buffalo Bills,Sunday Noon,Gillette Stadium,Foxborough,MA,true,true,false,false +15,31,San Francisco 49ers,19,Philadelphia Eagles,Sunday Afternoon,Levi's Stadium,Santa Clara,CA,true,false,false,false +16,1,Buffalo Bills,9,Houston Texans,Thursday Night Football,Highmark Stadium,Orchard Park,NY,true,false,false,false +16,21,Chicago Bears,20,Washington Commanders,Sunday Night Football,Soldier Field,Chicago,IL,true,false,false,false +16,32,Seattle Seahawks,5,Baltimore Ravens,Monday Night Football,Lumen Field,Seattle,WA,false,false,false,true +16,28,Tampa Bay Buccaneers,25,Atlanta Falcons,Sunday Noon,Raymond James Stadium,Tampa,FL,true,true,false,false +16,22,Detroit Lions,17,Dallas Cowboys,Sunday Noon,Ford Field,Detroit,MI,true,false,false,false +16,6,Cincinnati Bengals,30,Los Angeles Rams,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,false,false,false,false +16,10,Indianapolis Colts,12,Tennessee Titans,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,true,true,false,false +16,14,Kansas City Chiefs,13,Denver Broncos,Sunday Afternoon,Arrowhead Stadium,Kansas City,MO,true,true,false,false +16,27,New Orleans Saints,16,Los Angeles Chargers,Sunday Afternoon,Caesars Superdome,New Orleans,LA,false,false,false,false +16,2,Miami Dolphins,18,New York Giants,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,false,false,false,false +16,19,Philadelphia Eagles,23,Green Bay Packers,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,true,false,false,false +16,11,Jacksonville Jaguars,15,Las Vegas Raiders,Sunday Noon,TIAA Bank Field,Jacksonville,FL,true,false,false,false +16,3,New England Patriots,24,Minnesota Vikings,Sunday Noon,Gillette Stadium,Foxborough,MA,false,false,false,true +16,7,Cleveland Browns,31,San Francisco 49ers,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,false,false,false,false +17,12,Tennessee Titans,22,Detroit Lions,Thursday Night Football,Nissan Stadium,Nashville,TN,false,false,false,false +17,20,Washington Commanders,17,Dallas Cowboys,Sunday Night Football,FedExField,Landover,MD,true,true,false,false +17,28,Tampa Bay Buccaneers,30,Los Angeles Rams,Monday Night Football,Raymond James Stadium,Tampa,FL,true,false,false,false +17,24,Minnesota Vikings,9,Houston Texans,Sunday Afternoon,U.S. Bank Stadium,Minneapolis,MN,false,false,false,false +17,11,Jacksonville Jaguars,21,Chicago Bears,Sunday Noon,TIAA Bank Field,Jacksonville,FL,false,false,false,false +17,27,New Orleans Saints,29,Arizona Cardinals,Sunday Afternoon,Caesars Superdome,New Orleans,LA,true,false,false,true +17,25,Atlanta Falcons,31,San Francisco 49ers,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,true,false,false,false +17,8,Pittsburgh Steelers,32,Seattle Seahawks,Sunday Noon,Heinz Field,Pittsburgh,PA,false,false,true,false +17,19,Philadelphia Eagles,4,New York Jets,Sunday Noon,Lincoln Financial Field,Philadelphia,PA,false,false,false,true +17,6,Cincinnati Bengals,1,Buffalo Bills,Sunday Noon,Paul Brown Stadium,Cincinnati,OH,true,false,false,false +17,10,Indianapolis Colts,18,New York Giants,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,false,false,false,false +17,16,Los Angeles Chargers,13,Denver Broncos,Sunday Afternoon,SoFi Stadium,Inglewood,CA,true,true,false,false +17,14,Kansas City Chiefs,15,Las Vegas Raiders,Sunday Afternoon,Arrowhead Stadium,Kansas City,MO,true,true,false,false +17,23,Green Bay Packers,26,Carolina Panthers,Sunday Afternoon,Lambeau Field,Green Bay,WI,true,false,false,true +17,2,Miami Dolphins,3,New England Patriots,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,true,true,false,false +17,7,Cleveland Browns,5,Baltimore Ravens,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,true,false,false +18,23,Green Bay Packers,22,Detroit Lions,Thursday Night Football,Lambeau Field,Green Bay,WI,true,true,false,false +18,21,Chicago Bears,24,Minnesota Vikings,Sunday Night Football,Soldier Field,Chicago,IL,true,true,false,false +18,10,Indianapolis Colts,9,Houston Texans,Monday Night Football,Lucas Oil Stadium,Indianapolis,IN,true,true,false,false +18,32,Seattle Seahawks,30,Los Angeles Rams,Sunday Afternoon,Lumen Field,Seattle,WA,true,true,false,false +18,4,New York Jets,1,Buffalo Bills,Sunday Noon,MetLife Stadium,East Rutherford,NJ,true,true,false,false +18,26,Carolina Panthers,25,Atlanta Falcons,Sunday Noon,Bank of America Stadium,Charlotte,NC,true,true,false,false +18,20,Washington Commanders,19,Philadelphia Eagles,Sunday Noon,FedExField,Landover,MD,true,true,false,false +18,3,New England Patriots,2,Miami Dolphins,Sunday Noon,Gillette Stadium,Foxborough,MA,true,true,false,false +18,17,Dallas Cowboys,18,New York Giants,Sunday Afternoon,AT&T Stadium,Arlington,TX,true,true,false,false +18,15,Las Vegas Raiders,13,Denver Broncos,Sunday Afternoon,Allegiant Stadium,Paradise,NV,true,true,false,false +18,7,Cleveland Browns,6,Cincinnati Bengals,Sunday Noon,FirstEnergy Stadium,Cleveland,OH,true,true,false,false +18,29,Arizona Cardinals,31,San Francisco 49ers,Sunday Afternoon,State Farm Stadium,Glendale,AZ,true,true,false,false +18,27,New Orleans Saints,28,Tampa Bay Buccaneers,Sunday Afternoon,Caesars Superdome,New Orleans,LA,true,true,false,false +18,12,Tennessee Titans,11,Jacksonville Jaguars,Sunday Noon,Nissan Stadium,Nashville,TN,true,true,false,false +18,8,Pittsburgh Steelers,5,Baltimore Ravens,Sunday Noon,Heinz Field,Pittsburgh,PA,true,true,false,false +18,14,Kansas City Chiefs,16,Los Angeles Chargers,Sunday Afternoon,Arrowhead Stadium,Kansas City,MO,true,true,false,false + +TeamID,TeamName,HomeGames,AwayGames,TotalGames +29,Arizona Cardinals,8,9,17 +25,Atlanta Falcons,8,9,17 +26,Carolina Panthers,8,9,17 +14,Kansas City Chiefs,9,8,17 +15,Las Vegas Raiders,9,8,17 +24,Minnesota Vikings,9,8,17 +8,Pittsburgh Steelers,9,8,17 +12,Tennessee Titans,8,9,17 +5,Baltimore Ravens,9,8,17 +17,Dallas Cowboys,8,9,17 +13,Denver Broncos,9,8,17 +27,New Orleans Saints,8,9,17 +19,Philadelphia Eagles,8,9,17 +32,Seattle Seahawks,8,9,17 +2,Miami Dolphins,9,8,17 +4,New York Jets,9,8,17 +18,New York Giants,8,9,17 +20,Washington Commanders,8,9,17 +21,Chicago Bears,9,8,17 +23,Green Bay Packers,9,8,17 +30,Los Angeles Rams,8,9,17 +28,Tampa Bay Buccaneers,8,9,17 +6,Cincinnati Bengals,9,8,17 +7,Cleveland Browns,9,8,17 +11,Jacksonville Jaguars,8,9,17 +16,Los Angeles Chargers,9,8,17 +3,New England Patriots,9,8,17 +22,Detroit Lions,9,8,17 +9,Houston Texans,8,9,17 +10,Indianapolis Colts,8,9,17 +31,San Francisco 49ers,8,9,17 +1,Buffalo Bills,9,8,17 diff --git a/ts/footballModels.ts b/ts/footballModels.ts index 64ed1b0b..9906f7f0 100644 --- a/ts/footballModels.ts +++ b/ts/footballModels.ts @@ -1,9847 +1,10173 @@ /* Do not change, this code is generated from Golang structs */ - export class NFLStandings { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - TeamName: string; - Mascot: string; - SeasonID: number; - Season: number; - LeagueID: number; - LeagueName: string; - ConferenceID: number; - ConferenceName: string; - TotalTies: number; - ConferenceTies: number; - DivisionID: number; - DivisionName: string; - DivisionWins: number; - DivisionLosses: number; - DivisionTies: number; - PostSeasonStatus: string; - TotalWins: number; - TotalLosses: number; - ConferenceWins: number; - ConferenceLosses: number; - RankedWins: number; - RankedLosses: number; - PointsFor: number; - PointsAgainst: number; - Streak: number; - HomeWins: number; - AwayWins: number; - Coach: string; - TeamAbbr: string; - TotalWinPercentage: number; - ConfWinPercentage: 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.TeamID = source["TeamID"]; - this.TeamName = source["TeamName"]; - this.Mascot = source["Mascot"]; - this.SeasonID = source["SeasonID"]; - this.Season = source["Season"]; - this.LeagueID = source["LeagueID"]; - this.LeagueName = source["LeagueName"]; - this.ConferenceID = source["ConferenceID"]; - this.ConferenceName = source["ConferenceName"]; - this.TotalTies = source["TotalTies"]; - this.ConferenceTies = source["ConferenceTies"]; - this.DivisionID = source["DivisionID"]; - this.DivisionName = source["DivisionName"]; - this.DivisionWins = source["DivisionWins"]; - this.DivisionLosses = source["DivisionLosses"]; - this.DivisionTies = source["DivisionTies"]; - this.PostSeasonStatus = source["PostSeasonStatus"]; - this.TotalWins = source["TotalWins"]; - this.TotalLosses = source["TotalLosses"]; - this.ConferenceWins = source["ConferenceWins"]; - this.ConferenceLosses = source["ConferenceLosses"]; - this.RankedWins = source["RankedWins"]; - this.RankedLosses = source["RankedLosses"]; - this.PointsFor = source["PointsFor"]; - this.PointsAgainst = source["PointsAgainst"]; - this.Streak = source["Streak"]; - this.HomeWins = source["HomeWins"]; - this.AwayWins = source["AwayWins"]; - this.Coach = source["Coach"]; - this.TeamAbbr = source["TeamAbbr"]; - this.TotalWinPercentage = source["TotalWinPercentage"]; - this.ConfWinPercentage = source["ConfWinPercentage"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + TeamName: string; + Mascot: string; + SeasonID: number; + Season: number; + LeagueID: number; + LeagueName: string; + ConferenceID: number; + ConferenceName: string; + TotalTies: number; + ConferenceTies: number; + DivisionID: number; + DivisionName: string; + DivisionWins: number; + DivisionLosses: number; + DivisionTies: number; + PostSeasonStatus: string; + TotalWins: number; + TotalLosses: number; + ConferenceWins: number; + ConferenceLosses: number; + RankedWins: number; + RankedLosses: number; + PointsFor: number; + PointsAgainst: number; + Streak: number; + HomeWins: number; + AwayWins: number; + Coach: string; + TeamAbbr: string; + TotalWinPercentage: number; + ConfWinPercentage: 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.TeamID = source["TeamID"]; + this.TeamName = source["TeamName"]; + this.Mascot = source["Mascot"]; + this.SeasonID = source["SeasonID"]; + this.Season = source["Season"]; + this.LeagueID = source["LeagueID"]; + this.LeagueName = source["LeagueName"]; + this.ConferenceID = source["ConferenceID"]; + this.ConferenceName = source["ConferenceName"]; + this.TotalTies = source["TotalTies"]; + this.ConferenceTies = source["ConferenceTies"]; + this.DivisionID = source["DivisionID"]; + this.DivisionName = source["DivisionName"]; + this.DivisionWins = source["DivisionWins"]; + this.DivisionLosses = source["DivisionLosses"]; + this.DivisionTies = source["DivisionTies"]; + this.PostSeasonStatus = source["PostSeasonStatus"]; + this.TotalWins = source["TotalWins"]; + this.TotalLosses = source["TotalLosses"]; + this.ConferenceWins = source["ConferenceWins"]; + this.ConferenceLosses = source["ConferenceLosses"]; + this.RankedWins = source["RankedWins"]; + this.RankedLosses = source["RankedLosses"]; + this.PointsFor = source["PointsFor"]; + this.PointsAgainst = source["PointsAgainst"]; + this.Streak = source["Streak"]; + this.HomeWins = source["HomeWins"]; + this.AwayWins = source["AwayWins"]; + this.Coach = source["Coach"]; + this.TeamAbbr = source["TeamAbbr"]; + this.TotalWinPercentage = source["TotalWinPercentage"]; + this.ConfWinPercentage = source["ConfWinPercentage"]; + } + + 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 NFLGameplan { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - OffensiveScheme: string; - OffRunToPassRatio: number; - OffFormation1Name: string; - OffForm1Weight: number; - OffForm1TraditionalRun: number; - OffForm1OptionRun: number; - OffForm1Pass: number; - OffForm1RPO: number; - OffFormation2Name: string; - OffForm2Weight: number; - OffForm2TraditionalRun: number; - OffForm2OptionRun: number; - OffForm2Pass: number; - OffForm2RPO: number; - OffFormation3Name: string; - OffForm3Weight: number; - OffForm3TraditionalRun: number; - OffForm3OptionRun: number; - OffForm3Pass: number; - OffForm3RPO: number; - OffFormation4Name: string; - OffForm4Weight: number; - OffForm4TraditionalRun: number; - OffForm4OptionRun: number; - OffForm4Pass: number; - OffForm4RPO: number; - OffFormation5Name: string; - OffForm5Weight: number; - OffForm5TraditionalRun: number; - OffForm5OptionRun: number; - OffForm5Pass: number; - OffForm5RPO: number; - RunnerDistributionQB: number; - RunnerDistributionRB1: number; - RunnerDistributionRB2: number; - RunnerDistributionRB3: number; - RunnerDistributionFB1: number; - RunnerDistributionFB2: number; - RunnerDistributionWR: number; - RunnerDistributionWRPosition: string; - RunnerDistributionWRID: number; - RunOutsideLeft: number; - RunOutsideRight: number; - RunInsideLeft: number; - RunInsideRight: number; - RunPowerLeft: number; - RunPowerRight: number; - RunDrawLeft: number; - RunDrawRight: number; - ReadOptionLeft: number; - ReadOptionRight: number; - SpeedOptionLeft: number; - SpeedOptionRight: number; - InvertedOptionLeft: number; - InvertedOptionRight: number; - TripleOptionLeft: number; - TripleOptionRight: number; - PassQuick: number; - PassShort: number; - PassMedium: number; - PassLong: number; - PassDeep: number; - PassScreen: number; - PassPAShort: number; - PassPAMedium: number; - PassPALong: number; - PassPADeep: number; - LeftVsRight: number; - ChoiceOutside: number; - ChoiceInside: number; - ChoicePower: number; - PeekOutside: number; - PeekInside: number; - PeekPower: number; - TargetingWR1: number; - TargetDepthWR1: string; - TargetingWR2: number; - TargetDepthWR2: string; - TargetingWR3: number; - TargetDepthWR3: string; - TargetingWR4: number; - TargetDepthWR4: string; - TargetingWR5: number; - TargetDepthWR5: string; - TargetingTE1: number; - TargetDepthTE1: string; - TargetingTE2: number; - TargetDepthTE2: string; - TargetingTE3: number; - TargetDepthTE3: string; - TargetingRB1: number; - TargetDepthRB1: string; - TargetingRB2: number; - TargetDepthRB2: string; - TargetingFB1: number; - TargetDepthFB1: string; - DefensiveScheme: string; - DefFormation1: string; - DefFormation1RunToPass: number; - DefFormation1BlitzWeight: number; - DefFormation1BlitzAggression: string; - DefFormation2: string; - DefFormation2RunToPass: number; - DefFormation2BlitzWeight: number; - DefFormation2BlitzAggression: string; - DefFormation3: string; - DefFormation3RunToPass: number; - DefFormation3BlitzWeight: number; - DefFormation3BlitzAggression: string; - DefFormation4: string; - DefFormation4RunToPass: number; - DefFormation4BlitzWeight: number; - DefFormation4BlitzAggression: string; - DefFormation5: string; - DefFormation5RunToPass: number; - DefFormation5BlitzWeight: number; - DefFormation5BlitzAggression: string; - BlitzSafeties: boolean; - BlitzCorners: boolean; - LinebackerCoverage: string; - CornersCoverage: string; - SafetiesCoverage: string; - DiveFocus: number; - PitchFocus: number; - PrimaryHB: number; - MaximumFGDistance: number; - GoFor4AndShort: number; - GoFor4AndLong: number; - HasSchemePenalty: boolean; - OffenseSchemePenalty: number; - DefenseSchemePenalty: number; - DefaultOffense: boolean; - DefaultDefense: boolean; - PreviousWeekBye: boolean; - FocusPlays: string; - DoubleTeam: 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.TeamID = source["TeamID"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.OffRunToPassRatio = source["OffRunToPassRatio"]; - this.OffFormation1Name = source["OffFormation1Name"]; - this.OffForm1Weight = source["OffForm1Weight"]; - this.OffForm1TraditionalRun = source["OffForm1TraditionalRun"]; - this.OffForm1OptionRun = source["OffForm1OptionRun"]; - this.OffForm1Pass = source["OffForm1Pass"]; - this.OffForm1RPO = source["OffForm1RPO"]; - this.OffFormation2Name = source["OffFormation2Name"]; - this.OffForm2Weight = source["OffForm2Weight"]; - this.OffForm2TraditionalRun = source["OffForm2TraditionalRun"]; - this.OffForm2OptionRun = source["OffForm2OptionRun"]; - this.OffForm2Pass = source["OffForm2Pass"]; - this.OffForm2RPO = source["OffForm2RPO"]; - this.OffFormation3Name = source["OffFormation3Name"]; - this.OffForm3Weight = source["OffForm3Weight"]; - this.OffForm3TraditionalRun = source["OffForm3TraditionalRun"]; - this.OffForm3OptionRun = source["OffForm3OptionRun"]; - this.OffForm3Pass = source["OffForm3Pass"]; - this.OffForm3RPO = source["OffForm3RPO"]; - this.OffFormation4Name = source["OffFormation4Name"]; - this.OffForm4Weight = source["OffForm4Weight"]; - this.OffForm4TraditionalRun = source["OffForm4TraditionalRun"]; - this.OffForm4OptionRun = source["OffForm4OptionRun"]; - this.OffForm4Pass = source["OffForm4Pass"]; - this.OffForm4RPO = source["OffForm4RPO"]; - this.OffFormation5Name = source["OffFormation5Name"]; - this.OffForm5Weight = source["OffForm5Weight"]; - this.OffForm5TraditionalRun = source["OffForm5TraditionalRun"]; - this.OffForm5OptionRun = source["OffForm5OptionRun"]; - this.OffForm5Pass = source["OffForm5Pass"]; - this.OffForm5RPO = source["OffForm5RPO"]; - this.RunnerDistributionQB = source["RunnerDistributionQB"]; - this.RunnerDistributionRB1 = source["RunnerDistributionRB1"]; - this.RunnerDistributionRB2 = source["RunnerDistributionRB2"]; - this.RunnerDistributionRB3 = source["RunnerDistributionRB3"]; - this.RunnerDistributionFB1 = source["RunnerDistributionFB1"]; - this.RunnerDistributionFB2 = source["RunnerDistributionFB2"]; - this.RunnerDistributionWR = source["RunnerDistributionWR"]; - this.RunnerDistributionWRPosition = source["RunnerDistributionWRPosition"]; - this.RunnerDistributionWRID = source["RunnerDistributionWRID"]; - this.RunOutsideLeft = source["RunOutsideLeft"]; - this.RunOutsideRight = source["RunOutsideRight"]; - this.RunInsideLeft = source["RunInsideLeft"]; - this.RunInsideRight = source["RunInsideRight"]; - this.RunPowerLeft = source["RunPowerLeft"]; - this.RunPowerRight = source["RunPowerRight"]; - this.RunDrawLeft = source["RunDrawLeft"]; - this.RunDrawRight = source["RunDrawRight"]; - this.ReadOptionLeft = source["ReadOptionLeft"]; - this.ReadOptionRight = source["ReadOptionRight"]; - this.SpeedOptionLeft = source["SpeedOptionLeft"]; - this.SpeedOptionRight = source["SpeedOptionRight"]; - this.InvertedOptionLeft = source["InvertedOptionLeft"]; - this.InvertedOptionRight = source["InvertedOptionRight"]; - this.TripleOptionLeft = source["TripleOptionLeft"]; - this.TripleOptionRight = source["TripleOptionRight"]; - this.PassQuick = source["PassQuick"]; - this.PassShort = source["PassShort"]; - this.PassMedium = source["PassMedium"]; - this.PassLong = source["PassLong"]; - 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"]; - this.ChoiceOutside = source["ChoiceOutside"]; - this.ChoiceInside = source["ChoiceInside"]; - this.ChoicePower = source["ChoicePower"]; - this.PeekOutside = source["PeekOutside"]; - this.PeekInside = source["PeekInside"]; - this.PeekPower = source["PeekPower"]; - this.TargetingWR1 = source["TargetingWR1"]; - this.TargetDepthWR1 = source["TargetDepthWR1"]; - this.TargetingWR2 = source["TargetingWR2"]; - this.TargetDepthWR2 = source["TargetDepthWR2"]; - this.TargetingWR3 = source["TargetingWR3"]; - this.TargetDepthWR3 = source["TargetDepthWR3"]; - this.TargetingWR4 = source["TargetingWR4"]; - this.TargetDepthWR4 = source["TargetDepthWR4"]; - this.TargetingWR5 = source["TargetingWR5"]; - this.TargetDepthWR5 = source["TargetDepthWR5"]; - this.TargetingTE1 = source["TargetingTE1"]; - this.TargetDepthTE1 = source["TargetDepthTE1"]; - this.TargetingTE2 = source["TargetingTE2"]; - this.TargetDepthTE2 = source["TargetDepthTE2"]; - this.TargetingTE3 = source["TargetingTE3"]; - this.TargetDepthTE3 = source["TargetDepthTE3"]; - this.TargetingRB1 = source["TargetingRB1"]; - this.TargetDepthRB1 = source["TargetDepthRB1"]; - this.TargetingRB2 = source["TargetingRB2"]; - this.TargetDepthRB2 = source["TargetDepthRB2"]; - this.TargetingFB1 = source["TargetingFB1"]; - this.TargetDepthFB1 = source["TargetDepthFB1"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.DefFormation1 = source["DefFormation1"]; - this.DefFormation1RunToPass = source["DefFormation1RunToPass"]; - this.DefFormation1BlitzWeight = source["DefFormation1BlitzWeight"]; - this.DefFormation1BlitzAggression = source["DefFormation1BlitzAggression"]; - this.DefFormation2 = source["DefFormation2"]; - this.DefFormation2RunToPass = source["DefFormation2RunToPass"]; - this.DefFormation2BlitzWeight = source["DefFormation2BlitzWeight"]; - this.DefFormation2BlitzAggression = source["DefFormation2BlitzAggression"]; - this.DefFormation3 = source["DefFormation3"]; - this.DefFormation3RunToPass = source["DefFormation3RunToPass"]; - this.DefFormation3BlitzWeight = source["DefFormation3BlitzWeight"]; - this.DefFormation3BlitzAggression = source["DefFormation3BlitzAggression"]; - this.DefFormation4 = source["DefFormation4"]; - this.DefFormation4RunToPass = source["DefFormation4RunToPass"]; - this.DefFormation4BlitzWeight = source["DefFormation4BlitzWeight"]; - this.DefFormation4BlitzAggression = source["DefFormation4BlitzAggression"]; - this.DefFormation5 = source["DefFormation5"]; - this.DefFormation5RunToPass = source["DefFormation5RunToPass"]; - this.DefFormation5BlitzWeight = source["DefFormation5BlitzWeight"]; - this.DefFormation5BlitzAggression = source["DefFormation5BlitzAggression"]; - this.BlitzSafeties = source["BlitzSafeties"]; - this.BlitzCorners = source["BlitzCorners"]; - this.LinebackerCoverage = source["LinebackerCoverage"]; - this.CornersCoverage = source["CornersCoverage"]; - this.SafetiesCoverage = source["SafetiesCoverage"]; - this.DiveFocus = source["DiveFocus"]; - this.PitchFocus = source["PitchFocus"]; - this.PrimaryHB = source["PrimaryHB"]; - this.MaximumFGDistance = source["MaximumFGDistance"]; - this.GoFor4AndShort = source["GoFor4AndShort"]; - this.GoFor4AndLong = source["GoFor4AndLong"]; - this.HasSchemePenalty = source["HasSchemePenalty"]; - this.OffenseSchemePenalty = source["OffenseSchemePenalty"]; - this.DefenseSchemePenalty = source["DefenseSchemePenalty"]; - this.DefaultOffense = source["DefaultOffense"]; - this.DefaultDefense = source["DefaultDefense"]; - this.PreviousWeekBye = source["PreviousWeekBye"]; - this.FocusPlays = source["FocusPlays"]; - this.DoubleTeam = source["DoubleTeam"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + OffensiveScheme: string; + OffRunToPassRatio: number; + OffFormation1Name: string; + OffForm1Weight: number; + OffForm1TraditionalRun: number; + OffForm1OptionRun: number; + OffForm1Pass: number; + OffForm1RPO: number; + OffFormation2Name: string; + OffForm2Weight: number; + OffForm2TraditionalRun: number; + OffForm2OptionRun: number; + OffForm2Pass: number; + OffForm2RPO: number; + OffFormation3Name: string; + OffForm3Weight: number; + OffForm3TraditionalRun: number; + OffForm3OptionRun: number; + OffForm3Pass: number; + OffForm3RPO: number; + OffFormation4Name: string; + OffForm4Weight: number; + OffForm4TraditionalRun: number; + OffForm4OptionRun: number; + OffForm4Pass: number; + OffForm4RPO: number; + OffFormation5Name: string; + OffForm5Weight: number; + OffForm5TraditionalRun: number; + OffForm5OptionRun: number; + OffForm5Pass: number; + OffForm5RPO: number; + RunnerDistributionQB: number; + RunnerDistributionRB1: number; + RunnerDistributionRB2: number; + RunnerDistributionRB3: number; + RunnerDistributionFB1: number; + RunnerDistributionFB2: number; + RunnerDistributionWR: number; + RunnerDistributionWRPosition: string; + RunnerDistributionWRID: number; + RunOutsideLeft: number; + RunOutsideRight: number; + RunInsideLeft: number; + RunInsideRight: number; + RunPowerLeft: number; + RunPowerRight: number; + RunDrawLeft: number; + RunDrawRight: number; + ReadOptionLeft: number; + ReadOptionRight: number; + SpeedOptionLeft: number; + SpeedOptionRight: number; + InvertedOptionLeft: number; + InvertedOptionRight: number; + TripleOptionLeft: number; + TripleOptionRight: number; + PassQuick: number; + PassShort: number; + PassMedium: number; + PassLong: number; + PassDeep: number; + PassScreen: number; + PassPAShort: number; + PassPAMedium: number; + PassPALong: number; + PassPADeep: number; + LeftVsRight: number; + ChoiceOutside: number; + ChoiceInside: number; + ChoicePower: number; + PeekOutside: number; + PeekInside: number; + PeekPower: number; + TargetingWR1: number; + TargetDepthWR1: string; + TargetingWR2: number; + TargetDepthWR2: string; + TargetingWR3: number; + TargetDepthWR3: string; + TargetingWR4: number; + TargetDepthWR4: string; + TargetingWR5: number; + TargetDepthWR5: string; + TargetingTE1: number; + TargetDepthTE1: string; + TargetingTE2: number; + TargetDepthTE2: string; + TargetingTE3: number; + TargetDepthTE3: string; + TargetingRB1: number; + TargetDepthRB1: string; + TargetingRB2: number; + TargetDepthRB2: string; + TargetingFB1: number; + TargetDepthFB1: string; + DefensiveScheme: string; + DefFormation1: string; + DefFormation1RunToPass: number; + DefFormation1BlitzWeight: number; + DefFormation1BlitzAggression: string; + DefFormation2: string; + DefFormation2RunToPass: number; + DefFormation2BlitzWeight: number; + DefFormation2BlitzAggression: string; + DefFormation3: string; + DefFormation3RunToPass: number; + DefFormation3BlitzWeight: number; + DefFormation3BlitzAggression: string; + DefFormation4: string; + DefFormation4RunToPass: number; + DefFormation4BlitzWeight: number; + DefFormation4BlitzAggression: string; + DefFormation5: string; + DefFormation5RunToPass: number; + DefFormation5BlitzWeight: number; + DefFormation5BlitzAggression: string; + BlitzSafeties: boolean; + BlitzCorners: boolean; + LinebackerCoverage: string; + CornersCoverage: string; + SafetiesCoverage: string; + DiveFocus: number; + PitchFocus: number; + PrimaryHB: number; + MaximumFGDistance: number; + GoFor4AndShort: number; + GoFor4AndLong: number; + HasSchemePenalty: boolean; + OffenseSchemePenalty: number; + DefenseSchemePenalty: number; + DefaultOffense: boolean; + DefaultDefense: boolean; + PreviousWeekBye: boolean; + FocusPlays: string; + DoubleTeam: 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.TeamID = source["TeamID"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.OffRunToPassRatio = source["OffRunToPassRatio"]; + this.OffFormation1Name = source["OffFormation1Name"]; + this.OffForm1Weight = source["OffForm1Weight"]; + this.OffForm1TraditionalRun = source["OffForm1TraditionalRun"]; + this.OffForm1OptionRun = source["OffForm1OptionRun"]; + this.OffForm1Pass = source["OffForm1Pass"]; + this.OffForm1RPO = source["OffForm1RPO"]; + this.OffFormation2Name = source["OffFormation2Name"]; + this.OffForm2Weight = source["OffForm2Weight"]; + this.OffForm2TraditionalRun = source["OffForm2TraditionalRun"]; + this.OffForm2OptionRun = source["OffForm2OptionRun"]; + this.OffForm2Pass = source["OffForm2Pass"]; + this.OffForm2RPO = source["OffForm2RPO"]; + this.OffFormation3Name = source["OffFormation3Name"]; + this.OffForm3Weight = source["OffForm3Weight"]; + this.OffForm3TraditionalRun = source["OffForm3TraditionalRun"]; + this.OffForm3OptionRun = source["OffForm3OptionRun"]; + this.OffForm3Pass = source["OffForm3Pass"]; + this.OffForm3RPO = source["OffForm3RPO"]; + this.OffFormation4Name = source["OffFormation4Name"]; + this.OffForm4Weight = source["OffForm4Weight"]; + this.OffForm4TraditionalRun = source["OffForm4TraditionalRun"]; + this.OffForm4OptionRun = source["OffForm4OptionRun"]; + this.OffForm4Pass = source["OffForm4Pass"]; + this.OffForm4RPO = source["OffForm4RPO"]; + this.OffFormation5Name = source["OffFormation5Name"]; + this.OffForm5Weight = source["OffForm5Weight"]; + this.OffForm5TraditionalRun = source["OffForm5TraditionalRun"]; + this.OffForm5OptionRun = source["OffForm5OptionRun"]; + this.OffForm5Pass = source["OffForm5Pass"]; + this.OffForm5RPO = source["OffForm5RPO"]; + this.RunnerDistributionQB = source["RunnerDistributionQB"]; + this.RunnerDistributionRB1 = source["RunnerDistributionRB1"]; + this.RunnerDistributionRB2 = source["RunnerDistributionRB2"]; + this.RunnerDistributionRB3 = source["RunnerDistributionRB3"]; + this.RunnerDistributionFB1 = source["RunnerDistributionFB1"]; + this.RunnerDistributionFB2 = source["RunnerDistributionFB2"]; + this.RunnerDistributionWR = source["RunnerDistributionWR"]; + this.RunnerDistributionWRPosition = source["RunnerDistributionWRPosition"]; + this.RunnerDistributionWRID = source["RunnerDistributionWRID"]; + this.RunOutsideLeft = source["RunOutsideLeft"]; + this.RunOutsideRight = source["RunOutsideRight"]; + this.RunInsideLeft = source["RunInsideLeft"]; + this.RunInsideRight = source["RunInsideRight"]; + this.RunPowerLeft = source["RunPowerLeft"]; + this.RunPowerRight = source["RunPowerRight"]; + this.RunDrawLeft = source["RunDrawLeft"]; + this.RunDrawRight = source["RunDrawRight"]; + this.ReadOptionLeft = source["ReadOptionLeft"]; + this.ReadOptionRight = source["ReadOptionRight"]; + this.SpeedOptionLeft = source["SpeedOptionLeft"]; + this.SpeedOptionRight = source["SpeedOptionRight"]; + this.InvertedOptionLeft = source["InvertedOptionLeft"]; + this.InvertedOptionRight = source["InvertedOptionRight"]; + this.TripleOptionLeft = source["TripleOptionLeft"]; + this.TripleOptionRight = source["TripleOptionRight"]; + this.PassQuick = source["PassQuick"]; + this.PassShort = source["PassShort"]; + this.PassMedium = source["PassMedium"]; + this.PassLong = source["PassLong"]; + 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"]; + this.ChoiceOutside = source["ChoiceOutside"]; + this.ChoiceInside = source["ChoiceInside"]; + this.ChoicePower = source["ChoicePower"]; + this.PeekOutside = source["PeekOutside"]; + this.PeekInside = source["PeekInside"]; + this.PeekPower = source["PeekPower"]; + this.TargetingWR1 = source["TargetingWR1"]; + this.TargetDepthWR1 = source["TargetDepthWR1"]; + this.TargetingWR2 = source["TargetingWR2"]; + this.TargetDepthWR2 = source["TargetDepthWR2"]; + this.TargetingWR3 = source["TargetingWR3"]; + this.TargetDepthWR3 = source["TargetDepthWR3"]; + this.TargetingWR4 = source["TargetingWR4"]; + this.TargetDepthWR4 = source["TargetDepthWR4"]; + this.TargetingWR5 = source["TargetingWR5"]; + this.TargetDepthWR5 = source["TargetDepthWR5"]; + this.TargetingTE1 = source["TargetingTE1"]; + this.TargetDepthTE1 = source["TargetDepthTE1"]; + this.TargetingTE2 = source["TargetingTE2"]; + this.TargetDepthTE2 = source["TargetDepthTE2"]; + this.TargetingTE3 = source["TargetingTE3"]; + this.TargetDepthTE3 = source["TargetDepthTE3"]; + this.TargetingRB1 = source["TargetingRB1"]; + this.TargetDepthRB1 = source["TargetDepthRB1"]; + this.TargetingRB2 = source["TargetingRB2"]; + this.TargetDepthRB2 = source["TargetDepthRB2"]; + this.TargetingFB1 = source["TargetingFB1"]; + this.TargetDepthFB1 = source["TargetDepthFB1"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.DefFormation1 = source["DefFormation1"]; + this.DefFormation1RunToPass = source["DefFormation1RunToPass"]; + this.DefFormation1BlitzWeight = source["DefFormation1BlitzWeight"]; + this.DefFormation1BlitzAggression = source["DefFormation1BlitzAggression"]; + this.DefFormation2 = source["DefFormation2"]; + this.DefFormation2RunToPass = source["DefFormation2RunToPass"]; + this.DefFormation2BlitzWeight = source["DefFormation2BlitzWeight"]; + this.DefFormation2BlitzAggression = source["DefFormation2BlitzAggression"]; + this.DefFormation3 = source["DefFormation3"]; + this.DefFormation3RunToPass = source["DefFormation3RunToPass"]; + this.DefFormation3BlitzWeight = source["DefFormation3BlitzWeight"]; + this.DefFormation3BlitzAggression = source["DefFormation3BlitzAggression"]; + this.DefFormation4 = source["DefFormation4"]; + this.DefFormation4RunToPass = source["DefFormation4RunToPass"]; + this.DefFormation4BlitzWeight = source["DefFormation4BlitzWeight"]; + this.DefFormation4BlitzAggression = source["DefFormation4BlitzAggression"]; + this.DefFormation5 = source["DefFormation5"]; + this.DefFormation5RunToPass = source["DefFormation5RunToPass"]; + this.DefFormation5BlitzWeight = source["DefFormation5BlitzWeight"]; + this.DefFormation5BlitzAggression = source["DefFormation5BlitzAggression"]; + this.BlitzSafeties = source["BlitzSafeties"]; + this.BlitzCorners = source["BlitzCorners"]; + this.LinebackerCoverage = source["LinebackerCoverage"]; + this.CornersCoverage = source["CornersCoverage"]; + this.SafetiesCoverage = source["SafetiesCoverage"]; + this.DiveFocus = source["DiveFocus"]; + this.PitchFocus = source["PitchFocus"]; + this.PrimaryHB = source["PrimaryHB"]; + this.MaximumFGDistance = source["MaximumFGDistance"]; + this.GoFor4AndShort = source["GoFor4AndShort"]; + this.GoFor4AndLong = source["GoFor4AndLong"]; + this.HasSchemePenalty = source["HasSchemePenalty"]; + this.OffenseSchemePenalty = source["OffenseSchemePenalty"]; + this.DefenseSchemePenalty = source["DefenseSchemePenalty"]; + this.DefaultOffense = source["DefaultOffense"]; + this.DefaultDefense = source["DefaultDefense"]; + this.PreviousWeekBye = source["PreviousWeekBye"]; + this.FocusPlays = source["FocusPlays"]; + this.DoubleTeam = source["DoubleTeam"]; + } + + 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 NFLExtensionOffer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLPlayerID: number; - TeamID: number; - SeasonID: 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; - TotalBonus: number; - TotalSalary: number; - ContractValue: number; - BonusPercentage: number; - AAV: number; - Rejections: number; - IsAccepted: boolean; - IsActive: boolean; - IsRejected: boolean; - IsTag: 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.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.SeasonID = source["SeasonID"]; - 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.TotalBonus = source["TotalBonus"]; - this.TotalSalary = source["TotalSalary"]; - this.ContractValue = source["ContractValue"]; - this.BonusPercentage = source["BonusPercentage"]; - this.AAV = source["AAV"]; - this.Rejections = source["Rejections"]; - this.IsAccepted = source["IsAccepted"]; - this.IsActive = source["IsActive"]; - this.IsRejected = source["IsRejected"]; - this.IsTag = source["IsTag"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLPlayerID: number; + TeamID: number; + SeasonID: 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; + TotalBonus: number; + TotalSalary: number; + ContractValue: number; + BonusPercentage: number; + AAV: number; + Rejections: number; + IsAccepted: boolean; + IsActive: boolean; + IsRejected: boolean; + IsTag: 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.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.SeasonID = source["SeasonID"]; + 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.TotalBonus = source["TotalBonus"]; + this.TotalSalary = source["TotalSalary"]; + this.ContractValue = source["ContractValue"]; + this.BonusPercentage = source["BonusPercentage"]; + this.AAV = source["AAV"]; + this.Rejections = source["Rejections"]; + this.IsAccepted = source["IsAccepted"]; + this.IsActive = source["IsActive"]; + this.IsRejected = source["IsRejected"]; + this.IsTag = source["IsTag"]; + } + + 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 NFLWaiverOffer { - ID: number; - TeamID: number; - Team: string; - WaiverOrder: number; - NFLPlayerID: number; - IsActive: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.WaiverOrder = source["WaiverOrder"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.IsActive = source["IsActive"]; - } + ID: number; + TeamID: number; + Team: string; + WaiverOrder: number; + NFLPlayerID: number; + IsActive: boolean; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.WaiverOrder = source["WaiverOrder"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.IsActive = source["IsActive"]; + } } export class FreeAgencyOffer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - TotalBonus: number; - TotalSalary: number; - ContractValue: number; - BonusPercentage: number; - AAV: number; - Syncs: number; - IsActive: boolean; - IsRejected: 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.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.TotalBonus = source["TotalBonus"]; - this.TotalSalary = source["TotalSalary"]; - this.ContractValue = source["ContractValue"]; - this.BonusPercentage = source["BonusPercentage"]; - this.AAV = source["AAV"]; - this.Syncs = source["Syncs"]; - this.IsActive = source["IsActive"]; - this.IsRejected = source["IsRejected"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + TotalBonus: number; + TotalSalary: number; + ContractValue: number; + BonusPercentage: number; + AAV: number; + Syncs: number; + IsActive: boolean; + IsRejected: 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.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.TotalBonus = source["TotalBonus"]; + this.TotalSalary = source["TotalSalary"]; + this.ContractValue = source["ContractValue"]; + this.BonusPercentage = source["BonusPercentage"]; + this.AAV = source["AAV"]; + this.Syncs = source["Syncs"]; + this.IsActive = source["IsActive"]; + this.IsRejected = source["IsRejected"]; + } + + 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 NFLPlayerSeasonStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLPlayerID: number; - SeasonID: number; - Year: number; - PassingYards: number; - PassAttempts: number; - PassCompletions: number; - PassingTDs: number; - Interceptions: number; - LongestPass: number; - Sacks: number; - RushAttempts: number; - RushingYards: number; - RushingTDs: number; - Fumbles: number; - LongestRush: number; - Targets: number; - Catches: number; - ReceivingYards: number; - ReceivingTDs: number; - LongestReception: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - SacksMade: number; - ForcedFumbles: number; - RecoveredFumbles: number; - PassDeflections: number; - InterceptionsCaught: number; - Safeties: number; - DefensiveTDs: number; - FGMade: number; - FGAttempts: number; - LongestFG: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - KickoffTouchbacks: number; - Punts: number; - GrossPuntDistance: number; - NetPuntDistance: number; - PuntTouchbacks: number; - PuntsInside20: number; - KickReturns: number; - KickReturnTDs: number; - KickReturnYards: number; - PuntReturns: number; - PuntReturnTDs: number; - PuntReturnYards: number; - STSoloTackles: number; - STAssistedTackles: number; - PuntsBlocked: number; - FGBlocked: number; - Snaps: number; - Pancakes: number; - SacksAllowed: number; - PlayedGame: number; - StartedGame: number; - WasInjured: boolean; - WeeksOfRecovery: number; - InjuryType: string; - RevealResults: boolean; - TeamID: number; - Team: string; - PreviousTeamID: number; - PreviousTeam: string; - GameType: number; - GamesPlayed: number; - QBRating: number; - Tackles: number; - RushingAvg: number; - PassingAvg: number; - ReceivingAvg: number; - Completion: 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.SeasonID = source["SeasonID"]; - this.Year = source["Year"]; - this.PassingYards = source["PassingYards"]; - this.PassAttempts = source["PassAttempts"]; - this.PassCompletions = source["PassCompletions"]; - this.PassingTDs = source["PassingTDs"]; - this.Interceptions = source["Interceptions"]; - this.LongestPass = source["LongestPass"]; - this.Sacks = source["Sacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingTDs = source["RushingTDs"]; - this.Fumbles = source["Fumbles"]; - this.LongestRush = source["LongestRush"]; - this.Targets = source["Targets"]; - this.Catches = source["Catches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.ReceivingTDs = source["ReceivingTDs"]; - this.LongestReception = source["LongestReception"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.SacksMade = source["SacksMade"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.RecoveredFumbles = source["RecoveredFumbles"]; - this.PassDeflections = source["PassDeflections"]; - this.InterceptionsCaught = source["InterceptionsCaught"]; - this.Safeties = source["Safeties"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.FGMade = source["FGMade"]; - this.FGAttempts = source["FGAttempts"]; - this.LongestFG = source["LongestFG"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.KickoffTouchbacks = source["KickoffTouchbacks"]; - this.Punts = source["Punts"]; - this.GrossPuntDistance = source["GrossPuntDistance"]; - this.NetPuntDistance = source["NetPuntDistance"]; - this.PuntTouchbacks = source["PuntTouchbacks"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.KickReturns = source["KickReturns"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.KickReturnYards = source["KickReturnYards"]; - this.PuntReturns = source["PuntReturns"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.STSoloTackles = source["STSoloTackles"]; - this.STAssistedTackles = source["STAssistedTackles"]; - this.PuntsBlocked = source["PuntsBlocked"]; - this.FGBlocked = source["FGBlocked"]; - this.Snaps = source["Snaps"]; - this.Pancakes = source["Pancakes"]; - this.SacksAllowed = source["SacksAllowed"]; - this.PlayedGame = source["PlayedGame"]; - this.StartedGame = source["StartedGame"]; - this.WasInjured = source["WasInjured"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryType = source["InjuryType"]; - this.RevealResults = source["RevealResults"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.GameType = source["GameType"]; - this.GamesPlayed = source["GamesPlayed"]; - this.QBRating = source["QBRating"]; - this.Tackles = source["Tackles"]; - this.RushingAvg = source["RushingAvg"]; - this.PassingAvg = source["PassingAvg"]; - this.ReceivingAvg = source["ReceivingAvg"]; - this.Completion = source["Completion"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLPlayerID: number; + SeasonID: number; + Year: number; + PassingYards: number; + PassAttempts: number; + PassCompletions: number; + PassingTDs: number; + Interceptions: number; + LongestPass: number; + Sacks: number; + RushAttempts: number; + RushingYards: number; + RushingTDs: number; + Fumbles: number; + LongestRush: number; + Targets: number; + Catches: number; + ReceivingYards: number; + ReceivingTDs: number; + LongestReception: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + SacksMade: number; + ForcedFumbles: number; + RecoveredFumbles: number; + PassDeflections: number; + InterceptionsCaught: number; + Safeties: number; + DefensiveTDs: number; + FGMade: number; + FGAttempts: number; + LongestFG: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + KickoffTouchbacks: number; + Punts: number; + GrossPuntDistance: number; + NetPuntDistance: number; + PuntTouchbacks: number; + PuntsInside20: number; + KickReturns: number; + KickReturnTDs: number; + KickReturnYards: number; + PuntReturns: number; + PuntReturnTDs: number; + PuntReturnYards: number; + STSoloTackles: number; + STAssistedTackles: number; + PuntsBlocked: number; + FGBlocked: number; + Snaps: number; + Pancakes: number; + SacksAllowed: number; + PlayedGame: number; + StartedGame: number; + WasInjured: boolean; + WeeksOfRecovery: number; + InjuryType: string; + RevealResults: boolean; + TeamID: number; + Team: string; + PreviousTeamID: number; + PreviousTeam: string; + GameType: number; + GamesPlayed: number; + QBRating: number; + Tackles: number; + RushingAvg: number; + PassingAvg: number; + ReceivingAvg: number; + Completion: 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.SeasonID = source["SeasonID"]; + this.Year = source["Year"]; + this.PassingYards = source["PassingYards"]; + this.PassAttempts = source["PassAttempts"]; + this.PassCompletions = source["PassCompletions"]; + this.PassingTDs = source["PassingTDs"]; + this.Interceptions = source["Interceptions"]; + this.LongestPass = source["LongestPass"]; + this.Sacks = source["Sacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingTDs = source["RushingTDs"]; + this.Fumbles = source["Fumbles"]; + this.LongestRush = source["LongestRush"]; + this.Targets = source["Targets"]; + this.Catches = source["Catches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.ReceivingTDs = source["ReceivingTDs"]; + this.LongestReception = source["LongestReception"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.SacksMade = source["SacksMade"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.RecoveredFumbles = source["RecoveredFumbles"]; + this.PassDeflections = source["PassDeflections"]; + this.InterceptionsCaught = source["InterceptionsCaught"]; + this.Safeties = source["Safeties"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.FGMade = source["FGMade"]; + this.FGAttempts = source["FGAttempts"]; + this.LongestFG = source["LongestFG"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.KickoffTouchbacks = source["KickoffTouchbacks"]; + this.Punts = source["Punts"]; + this.GrossPuntDistance = source["GrossPuntDistance"]; + this.NetPuntDistance = source["NetPuntDistance"]; + this.PuntTouchbacks = source["PuntTouchbacks"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.KickReturns = source["KickReturns"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.KickReturnYards = source["KickReturnYards"]; + this.PuntReturns = source["PuntReturns"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.STSoloTackles = source["STSoloTackles"]; + this.STAssistedTackles = source["STAssistedTackles"]; + this.PuntsBlocked = source["PuntsBlocked"]; + this.FGBlocked = source["FGBlocked"]; + this.Snaps = source["Snaps"]; + this.Pancakes = source["Pancakes"]; + this.SacksAllowed = source["SacksAllowed"]; + this.PlayedGame = source["PlayedGame"]; + this.StartedGame = source["StartedGame"]; + this.WasInjured = source["WasInjured"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryType = source["InjuryType"]; + this.RevealResults = source["RevealResults"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.GameType = source["GameType"]; + this.GamesPlayed = source["GamesPlayed"]; + this.QBRating = source["QBRating"]; + this.Tackles = source["Tackles"]; + this.RushingAvg = source["RushingAvg"]; + this.PassingAvg = source["PassingAvg"]; + this.ReceivingAvg = source["ReceivingAvg"]; + this.Completion = source["Completion"]; + } + + 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 NFLPlayerStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - IsPreseasonGame: boolean; - NFLPlayerID: number; - GameID: number; - WeekID: number; - SeasonID: number; - OpposingTeam: string; - Year: number; - PassingYards: number; - PassAttempts: number; - PassCompletions: number; - PassingTDs: number; - Interceptions: number; - LongestPass: number; - Sacks: number; - RushAttempts: number; - RushingYards: number; - RushingTDs: number; - Fumbles: number; - LongestRush: number; - Targets: number; - Catches: number; - ReceivingYards: number; - ReceivingTDs: number; - LongestReception: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - SacksMade: number; - ForcedFumbles: number; - RecoveredFumbles: number; - PassDeflections: number; - InterceptionsCaught: number; - Safeties: number; - DefensiveTDs: number; - FGMade: number; - FGAttempts: number; - LongestFG: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - KickoffTouchbacks: number; - Punts: number; - GrossPuntDistance: number; - NetPuntDistance: number; - PuntTouchbacks: number; - PuntsInside20: number; - KickReturns: number; - KickReturnTDs: number; - KickReturnYards: number; - PuntReturns: number; - PuntReturnTDs: number; - PuntReturnYards: number; - STSoloTackles: number; - STAssistedTackles: number; - PuntsBlocked: number; - FGBlocked: number; - Snaps: number; - Pancakes: number; - SacksAllowed: number; - PlayedGame: number; - StartedGame: number; - WasInjured: boolean; - WeeksOfRecovery: number; - InjuryType: string; - RevealResults: boolean; - TeamID: number; - Team: string; - PreviousTeamID: number; - PreviousTeam: string; - GameType: 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.IsPreseasonGame = source["IsPreseasonGame"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.GameID = source["GameID"]; - this.WeekID = source["WeekID"]; - this.SeasonID = source["SeasonID"]; - this.OpposingTeam = source["OpposingTeam"]; - this.Year = source["Year"]; - this.PassingYards = source["PassingYards"]; - this.PassAttempts = source["PassAttempts"]; - this.PassCompletions = source["PassCompletions"]; - this.PassingTDs = source["PassingTDs"]; - this.Interceptions = source["Interceptions"]; - this.LongestPass = source["LongestPass"]; - this.Sacks = source["Sacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingTDs = source["RushingTDs"]; - this.Fumbles = source["Fumbles"]; - this.LongestRush = source["LongestRush"]; - this.Targets = source["Targets"]; - this.Catches = source["Catches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.ReceivingTDs = source["ReceivingTDs"]; - this.LongestReception = source["LongestReception"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.SacksMade = source["SacksMade"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.RecoveredFumbles = source["RecoveredFumbles"]; - this.PassDeflections = source["PassDeflections"]; - this.InterceptionsCaught = source["InterceptionsCaught"]; - this.Safeties = source["Safeties"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.FGMade = source["FGMade"]; - this.FGAttempts = source["FGAttempts"]; - this.LongestFG = source["LongestFG"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.KickoffTouchbacks = source["KickoffTouchbacks"]; - this.Punts = source["Punts"]; - this.GrossPuntDistance = source["GrossPuntDistance"]; - this.NetPuntDistance = source["NetPuntDistance"]; - this.PuntTouchbacks = source["PuntTouchbacks"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.KickReturns = source["KickReturns"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.KickReturnYards = source["KickReturnYards"]; - this.PuntReturns = source["PuntReturns"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.STSoloTackles = source["STSoloTackles"]; - this.STAssistedTackles = source["STAssistedTackles"]; - this.PuntsBlocked = source["PuntsBlocked"]; - this.FGBlocked = source["FGBlocked"]; - this.Snaps = source["Snaps"]; - this.Pancakes = source["Pancakes"]; - this.SacksAllowed = source["SacksAllowed"]; - this.PlayedGame = source["PlayedGame"]; - this.StartedGame = source["StartedGame"]; - this.WasInjured = source["WasInjured"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryType = source["InjuryType"]; - this.RevealResults = source["RevealResults"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.GameType = source["GameType"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + IsPreseasonGame: boolean; + NFLPlayerID: number; + GameID: number; + WeekID: number; + SeasonID: number; + OpposingTeam: string; + Year: number; + PassingYards: number; + PassAttempts: number; + PassCompletions: number; + PassingTDs: number; + Interceptions: number; + LongestPass: number; + Sacks: number; + RushAttempts: number; + RushingYards: number; + RushingTDs: number; + Fumbles: number; + LongestRush: number; + Targets: number; + Catches: number; + ReceivingYards: number; + ReceivingTDs: number; + LongestReception: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + SacksMade: number; + ForcedFumbles: number; + RecoveredFumbles: number; + PassDeflections: number; + InterceptionsCaught: number; + Safeties: number; + DefensiveTDs: number; + FGMade: number; + FGAttempts: number; + LongestFG: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + KickoffTouchbacks: number; + Punts: number; + GrossPuntDistance: number; + NetPuntDistance: number; + PuntTouchbacks: number; + PuntsInside20: number; + KickReturns: number; + KickReturnTDs: number; + KickReturnYards: number; + PuntReturns: number; + PuntReturnTDs: number; + PuntReturnYards: number; + STSoloTackles: number; + STAssistedTackles: number; + PuntsBlocked: number; + FGBlocked: number; + Snaps: number; + Pancakes: number; + SacksAllowed: number; + PlayedGame: number; + StartedGame: number; + WasInjured: boolean; + WeeksOfRecovery: number; + InjuryType: string; + RevealResults: boolean; + TeamID: number; + Team: string; + PreviousTeamID: number; + PreviousTeam: string; + GameType: 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.IsPreseasonGame = source["IsPreseasonGame"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.GameID = source["GameID"]; + this.WeekID = source["WeekID"]; + this.SeasonID = source["SeasonID"]; + this.OpposingTeam = source["OpposingTeam"]; + this.Year = source["Year"]; + this.PassingYards = source["PassingYards"]; + this.PassAttempts = source["PassAttempts"]; + this.PassCompletions = source["PassCompletions"]; + this.PassingTDs = source["PassingTDs"]; + this.Interceptions = source["Interceptions"]; + this.LongestPass = source["LongestPass"]; + this.Sacks = source["Sacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingTDs = source["RushingTDs"]; + this.Fumbles = source["Fumbles"]; + this.LongestRush = source["LongestRush"]; + this.Targets = source["Targets"]; + this.Catches = source["Catches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.ReceivingTDs = source["ReceivingTDs"]; + this.LongestReception = source["LongestReception"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.SacksMade = source["SacksMade"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.RecoveredFumbles = source["RecoveredFumbles"]; + this.PassDeflections = source["PassDeflections"]; + this.InterceptionsCaught = source["InterceptionsCaught"]; + this.Safeties = source["Safeties"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.FGMade = source["FGMade"]; + this.FGAttempts = source["FGAttempts"]; + this.LongestFG = source["LongestFG"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.KickoffTouchbacks = source["KickoffTouchbacks"]; + this.Punts = source["Punts"]; + this.GrossPuntDistance = source["GrossPuntDistance"]; + this.NetPuntDistance = source["NetPuntDistance"]; + this.PuntTouchbacks = source["PuntTouchbacks"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.KickReturns = source["KickReturns"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.KickReturnYards = source["KickReturnYards"]; + this.PuntReturns = source["PuntReturns"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.STSoloTackles = source["STSoloTackles"]; + this.STAssistedTackles = source["STAssistedTackles"]; + this.PuntsBlocked = source["PuntsBlocked"]; + this.FGBlocked = source["FGBlocked"]; + this.Snaps = source["Snaps"]; + this.Pancakes = source["Pancakes"]; + this.SacksAllowed = source["SacksAllowed"]; + this.PlayedGame = source["PlayedGame"]; + this.StartedGame = source["StartedGame"]; + this.WasInjured = source["WasInjured"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryType = source["InjuryType"]; + this.RevealResults = source["RevealResults"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.GameType = source["GameType"]; + } + + 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 NFLPlayer { - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - PlayerID: number; - TeamID: number; - CollegeID: number; - College: string; - TeamAbbr: string; - Experience: number; - HighSchool: string; - Hometown: string; - State: string; - IsActive: boolean; - IsPracticeSquad: boolean; - IsFreeAgent: boolean; - IsWaived: boolean; - IsOnTradeBlock: boolean; - IsAcceptingOffers: boolean; - IsNegotiating: boolean; - NegotiationRound: number; - SigningRound: number; - MinimumValue: number; - OriginalMinimumValue: number; - AAV: number; - OriginalAAV: number; - DraftedTeamID: number; - DraftedTeam: string; - DraftedRound: number; - DraftPickID: number; - DraftedPick: number; - ShowLetterGrade: boolean; - HasProgressed: boolean; - Rejections: number; - ProBowls: number; - TagType: number; - Stats: NFLPlayerStats[]; - SeasonStats: NFLPlayerSeasonStats; - Contract: NFLContract; - Offers: FreeAgencyOffer[]; - WaiverOffers: NFLWaiverOffer[]; - Extensions: NFLExtensionOffer[]; - - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.CollegeID = source["CollegeID"]; - this.College = source["College"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Experience = source["Experience"]; - this.HighSchool = source["HighSchool"]; - this.Hometown = source["Hometown"]; - this.State = source["State"]; - this.IsActive = source["IsActive"]; - this.IsPracticeSquad = source["IsPracticeSquad"]; - this.IsFreeAgent = source["IsFreeAgent"]; - this.IsWaived = source["IsWaived"]; - this.IsOnTradeBlock = source["IsOnTradeBlock"]; - this.IsAcceptingOffers = source["IsAcceptingOffers"]; - this.IsNegotiating = source["IsNegotiating"]; - this.NegotiationRound = source["NegotiationRound"]; - this.SigningRound = source["SigningRound"]; - this.MinimumValue = source["MinimumValue"]; - this.OriginalMinimumValue = source["OriginalMinimumValue"]; - this.AAV = source["AAV"]; - this.OriginalAAV = source["OriginalAAV"]; - this.DraftedTeamID = source["DraftedTeamID"]; - this.DraftedTeam = source["DraftedTeam"]; - this.DraftedRound = source["DraftedRound"]; - this.DraftPickID = source["DraftPickID"]; - this.DraftedPick = source["DraftedPick"]; - this.ShowLetterGrade = source["ShowLetterGrade"]; - this.HasProgressed = source["HasProgressed"]; - this.Rejections = source["Rejections"]; - this.ProBowls = source["ProBowls"]; - this.TagType = source["TagType"]; - this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], NFLPlayerSeasonStats); - this.Contract = this.convertValues(source["Contract"], NFLContract); - this.Offers = this.convertValues(source["Offers"], FreeAgencyOffer); - this.WaiverOffers = this.convertValues(source["WaiverOffers"], NFLWaiverOffer); - this.Extensions = this.convertValues(source["Extensions"], NFLExtensionOffer); - } - - 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; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + PlayerID: number; + TeamID: number; + CollegeID: number; + College: string; + TeamAbbr: string; + Experience: number; + HighSchool: string; + Hometown: string; + State: string; + IsActive: boolean; + IsPracticeSquad: boolean; + IsFreeAgent: boolean; + IsWaived: boolean; + IsOnTradeBlock: boolean; + IsAcceptingOffers: boolean; + IsNegotiating: boolean; + NegotiationRound: number; + SigningRound: number; + MinimumValue: number; + OriginalMinimumValue: number; + AAV: number; + OriginalAAV: number; + DraftedTeamID: number; + DraftedTeam: string; + DraftedRound: number; + DraftPickID: number; + DraftedPick: number; + ShowLetterGrade: boolean; + HasProgressed: boolean; + Rejections: number; + ProBowls: number; + TagType: number; + Stats: NFLPlayerStats[]; + SeasonStats: NFLPlayerSeasonStats; + Contract: NFLContract; + Offers: FreeAgencyOffer[]; + WaiverOffers: NFLWaiverOffer[]; + Extensions: NFLExtensionOffer[]; + + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.CollegeID = source["CollegeID"]; + this.College = source["College"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Experience = source["Experience"]; + this.HighSchool = source["HighSchool"]; + this.Hometown = source["Hometown"]; + this.State = source["State"]; + this.IsActive = source["IsActive"]; + this.IsPracticeSquad = source["IsPracticeSquad"]; + this.IsFreeAgent = source["IsFreeAgent"]; + this.IsWaived = source["IsWaived"]; + this.IsOnTradeBlock = source["IsOnTradeBlock"]; + this.IsAcceptingOffers = source["IsAcceptingOffers"]; + this.IsNegotiating = source["IsNegotiating"]; + this.NegotiationRound = source["NegotiationRound"]; + this.SigningRound = source["SigningRound"]; + this.MinimumValue = source["MinimumValue"]; + this.OriginalMinimumValue = source["OriginalMinimumValue"]; + this.AAV = source["AAV"]; + this.OriginalAAV = source["OriginalAAV"]; + this.DraftedTeamID = source["DraftedTeamID"]; + this.DraftedTeam = source["DraftedTeam"]; + this.DraftedRound = source["DraftedRound"]; + this.DraftPickID = source["DraftPickID"]; + this.DraftedPick = source["DraftedPick"]; + this.ShowLetterGrade = source["ShowLetterGrade"]; + this.HasProgressed = source["HasProgressed"]; + this.Rejections = source["Rejections"]; + this.ProBowls = source["ProBowls"]; + this.TagType = source["TagType"]; + this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); + this.SeasonStats = this.convertValues( + source["SeasonStats"], + NFLPlayerSeasonStats, + ); + this.Contract = this.convertValues(source["Contract"], NFLContract); + this.Offers = this.convertValues(source["Offers"], FreeAgencyOffer); + this.WaiverOffers = this.convertValues( + source["WaiverOffers"], + NFLWaiverOffer, + ); + this.Extensions = this.convertValues( + source["Extensions"], + NFLExtensionOffer, + ); + } + + 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 NFLDepthChartPosition { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - DepthChartID: number; - PlayerID: number; - Position: string; - PositionLevel: string; - FirstName: string; - LastName: string; - OriginalPosition: string; - NFLPlayer: NFLPlayer; - - 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.DepthChartID = source["DepthChartID"]; - this.PlayerID = source["PlayerID"]; - this.Position = source["Position"]; - this.PositionLevel = source["PositionLevel"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.OriginalPosition = source["OriginalPosition"]; - this.NFLPlayer = this.convertValues(source["NFLPlayer"], NFLPlayer); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + DepthChartID: number; + PlayerID: number; + Position: string; + PositionLevel: string; + FirstName: string; + LastName: string; + OriginalPosition: string; + NFLPlayer: NFLPlayer; + + 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.DepthChartID = source["DepthChartID"]; + this.PlayerID = source["PlayerID"]; + this.Position = source["Position"]; + this.PositionLevel = source["PositionLevel"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.OriginalPosition = source["OriginalPosition"]; + this.NFLPlayer = this.convertValues(source["NFLPlayer"], NFLPlayer); + } + + 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 NFLDepthChart { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - DepthChartPlayers: NFLDepthChartPosition[]; - - 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.TeamID = source["TeamID"]; - this.DepthChartPlayers = this.convertValues(source["DepthChartPlayers"], NFLDepthChartPosition); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + DepthChartPlayers: NFLDepthChartPosition[]; + + 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.TeamID = source["TeamID"]; + this.DepthChartPlayers = this.convertValues( + source["DepthChartPlayers"], + NFLDepthChartPosition, + ); + } + + 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 NFLTeamSeasonStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - SeasonID: number; - Year: number; - PointsScored: number; - PointsAgainst: number; - TwoPointTries: number; - TwoPointSucceed: number; - PassingYards: number; - PassingAttempts: number; - PassingCompletions: number; - LongestPass: number; - PassingTouchdowns: number; - PassingInterceptions: number; - QBRating: number; - QBSacks: number; - RushAttempts: number; - RushingYards: number; - RushingYardsPerAttempt: number; - LongestRush: number; - RushingTouchdowns: number; - RushingFumbles: number; - ReceivingTargets: number; - ReceivingCatches: number; - ReceivingYards: number; - YardsPerCatch: number; - ReceivingTouchdowns: number; - ReceivingFumbles: number; - PassingYardsAllowed: number; - PassingTDsAllowed: number; - PassingCompletionsAllowed: number; - RushingYardsAllowed: number; - RushingTDsAllowed: number; - RushingYardsPerAttemptAllowed: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - DefensiveSacks: number; - ForcedFumbles: number; - FumblesRecovered: number; - DefensiveInterceptions: number; - TurnoverYards: number; - DefensiveTDs: number; - Safeties: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - ExtraPointPercentage: number; - FieldGoalsMade: number; - FieldGoalsAttempted: number; - FieldGoalsPercentage: number; - LongestFieldGoal: number; - KickoffTBs: number; - PuntTBs: number; - Punts: number; - PuntYards: number; - PuntsInside20: number; - PuntAverage: number; - Inside20YardLine: number; - KickReturnYards: number; - KickReturnTDs: number; - PuntReturnYards: number; - PuntReturnTDs: number; - OffensivePenalties: number; - DefensivePenalties: number; - OffPenaltyYards: number; - DefPenaltyYards: number; - Score1Q: number; - Score2Q: number; - Score3Q: number; - Score4Q: number; - Score5Q: number; - Score6Q: number; - Score7Q: number; - ScoreOT: number; - OffensiveScheme: string; - DefensiveScheme: string; - OffensiveSnaps: number; - DefensiveSnaps: number; - SpecialTeamSnaps: number; - GameType: number; - RevealResults: boolean; - GamesPlayed: number; - TotalOffensiveYards: number; - TotalYardsAllowed: number; - Fumbles: number; - QBRating: number; - Tackles: number; - Turnovers: 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.TeamID = source["TeamID"]; - this.SeasonID = source["SeasonID"]; - this.Year = source["Year"]; - this.PointsScored = source["PointsScored"]; - this.PointsAgainst = source["PointsAgainst"]; - this.TwoPointTries = source["TwoPointTries"]; - this.TwoPointSucceed = source["TwoPointSucceed"]; - this.PassingYards = source["PassingYards"]; - this.PassingAttempts = source["PassingAttempts"]; - this.PassingCompletions = source["PassingCompletions"]; - this.LongestPass = source["LongestPass"]; - this.PassingTouchdowns = source["PassingTouchdowns"]; - this.PassingInterceptions = source["PassingInterceptions"]; - this.QBRating = source["QBRating"]; - this.QBSacks = source["QBSacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; - this.LongestRush = source["LongestRush"]; - this.RushingTouchdowns = source["RushingTouchdowns"]; - this.RushingFumbles = source["RushingFumbles"]; - this.ReceivingTargets = source["ReceivingTargets"]; - this.ReceivingCatches = source["ReceivingCatches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.YardsPerCatch = source["YardsPerCatch"]; - this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; - this.ReceivingFumbles = source["ReceivingFumbles"]; - this.PassingYardsAllowed = source["PassingYardsAllowed"]; - this.PassingTDsAllowed = source["PassingTDsAllowed"]; - this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; - this.RushingYardsAllowed = source["RushingYardsAllowed"]; - this.RushingTDsAllowed = source["RushingTDsAllowed"]; - this.RushingYardsPerAttemptAllowed = source["RushingYardsPerAttemptAllowed"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.DefensiveSacks = source["DefensiveSacks"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.FumblesRecovered = source["FumblesRecovered"]; - this.DefensiveInterceptions = source["DefensiveInterceptions"]; - this.TurnoverYards = source["TurnoverYards"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.Safeties = source["Safeties"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.ExtraPointPercentage = source["ExtraPointPercentage"]; - this.FieldGoalsMade = source["FieldGoalsMade"]; - this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; - this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; - this.LongestFieldGoal = source["LongestFieldGoal"]; - this.KickoffTBs = source["KickoffTBs"]; - this.PuntTBs = source["PuntTBs"]; - this.Punts = source["Punts"]; - this.PuntYards = source["PuntYards"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.PuntAverage = source["PuntAverage"]; - this.Inside20YardLine = source["Inside20YardLine"]; - this.KickReturnYards = source["KickReturnYards"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.OffensivePenalties = source["OffensivePenalties"]; - this.DefensivePenalties = source["DefensivePenalties"]; - this.OffPenaltyYards = source["OffPenaltyYards"]; - this.DefPenaltyYards = source["DefPenaltyYards"]; - this.Score1Q = source["Score1Q"]; - this.Score2Q = source["Score2Q"]; - this.Score3Q = source["Score3Q"]; - this.Score4Q = source["Score4Q"]; - this.Score5Q = source["Score5Q"]; - this.Score6Q = source["Score6Q"]; - this.Score7Q = source["Score7Q"]; - this.ScoreOT = source["ScoreOT"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.OffensiveSnaps = source["OffensiveSnaps"]; - this.DefensiveSnaps = source["DefensiveSnaps"]; - this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; - this.GameType = source["GameType"]; - this.RevealResults = source["RevealResults"]; - this.GamesPlayed = source["GamesPlayed"]; - this.TotalOffensiveYards = source["TotalOffensiveYards"]; - this.TotalYardsAllowed = source["TotalYardsAllowed"]; - this.Fumbles = source["Fumbles"]; - this.QBRating = source["QBRating"]; - this.Tackles = source["Tackles"]; - this.Turnovers = source["Turnovers"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + SeasonID: number; + Year: number; + PointsScored: number; + PointsAgainst: number; + TwoPointTries: number; + TwoPointSucceed: number; + PassingYards: number; + PassingAttempts: number; + PassingCompletions: number; + LongestPass: number; + PassingTouchdowns: number; + PassingInterceptions: number; + QBRating: number; + QBSacks: number; + RushAttempts: number; + RushingYards: number; + RushingYardsPerAttempt: number; + LongestRush: number; + RushingTouchdowns: number; + RushingFumbles: number; + ReceivingTargets: number; + ReceivingCatches: number; + ReceivingYards: number; + YardsPerCatch: number; + ReceivingTouchdowns: number; + ReceivingFumbles: number; + PassingYardsAllowed: number; + PassingTDsAllowed: number; + PassingCompletionsAllowed: number; + RushingYardsAllowed: number; + RushingTDsAllowed: number; + RushingYardsPerAttemptAllowed: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + DefensiveSacks: number; + ForcedFumbles: number; + FumblesRecovered: number; + DefensiveInterceptions: number; + TurnoverYards: number; + DefensiveTDs: number; + Safeties: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + ExtraPointPercentage: number; + FieldGoalsMade: number; + FieldGoalsAttempted: number; + FieldGoalsPercentage: number; + LongestFieldGoal: number; + KickoffTBs: number; + PuntTBs: number; + Punts: number; + PuntYards: number; + PuntsInside20: number; + PuntAverage: number; + Inside20YardLine: number; + KickReturnYards: number; + KickReturnTDs: number; + PuntReturnYards: number; + PuntReturnTDs: number; + OffensivePenalties: number; + DefensivePenalties: number; + OffPenaltyYards: number; + DefPenaltyYards: number; + Score1Q: number; + Score2Q: number; + Score3Q: number; + Score4Q: number; + Score5Q: number; + Score6Q: number; + Score7Q: number; + ScoreOT: number; + OffensiveScheme: string; + DefensiveScheme: string; + OffensiveSnaps: number; + DefensiveSnaps: number; + SpecialTeamSnaps: number; + GameType: number; + RevealResults: boolean; + GamesPlayed: number; + TotalOffensiveYards: number; + TotalYardsAllowed: number; + Fumbles: number; + QBRating: number; + Tackles: number; + Turnovers: 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.TeamID = source["TeamID"]; + this.SeasonID = source["SeasonID"]; + this.Year = source["Year"]; + this.PointsScored = source["PointsScored"]; + this.PointsAgainst = source["PointsAgainst"]; + this.TwoPointTries = source["TwoPointTries"]; + this.TwoPointSucceed = source["TwoPointSucceed"]; + this.PassingYards = source["PassingYards"]; + this.PassingAttempts = source["PassingAttempts"]; + this.PassingCompletions = source["PassingCompletions"]; + this.LongestPass = source["LongestPass"]; + this.PassingTouchdowns = source["PassingTouchdowns"]; + this.PassingInterceptions = source["PassingInterceptions"]; + this.QBRating = source["QBRating"]; + this.QBSacks = source["QBSacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; + this.LongestRush = source["LongestRush"]; + this.RushingTouchdowns = source["RushingTouchdowns"]; + this.RushingFumbles = source["RushingFumbles"]; + this.ReceivingTargets = source["ReceivingTargets"]; + this.ReceivingCatches = source["ReceivingCatches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.YardsPerCatch = source["YardsPerCatch"]; + this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; + this.ReceivingFumbles = source["ReceivingFumbles"]; + this.PassingYardsAllowed = source["PassingYardsAllowed"]; + this.PassingTDsAllowed = source["PassingTDsAllowed"]; + this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; + this.RushingYardsAllowed = source["RushingYardsAllowed"]; + this.RushingTDsAllowed = source["RushingTDsAllowed"]; + this.RushingYardsPerAttemptAllowed = + source["RushingYardsPerAttemptAllowed"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.DefensiveSacks = source["DefensiveSacks"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.FumblesRecovered = source["FumblesRecovered"]; + this.DefensiveInterceptions = source["DefensiveInterceptions"]; + this.TurnoverYards = source["TurnoverYards"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.Safeties = source["Safeties"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.ExtraPointPercentage = source["ExtraPointPercentage"]; + this.FieldGoalsMade = source["FieldGoalsMade"]; + this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; + this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; + this.LongestFieldGoal = source["LongestFieldGoal"]; + this.KickoffTBs = source["KickoffTBs"]; + this.PuntTBs = source["PuntTBs"]; + this.Punts = source["Punts"]; + this.PuntYards = source["PuntYards"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.PuntAverage = source["PuntAverage"]; + this.Inside20YardLine = source["Inside20YardLine"]; + this.KickReturnYards = source["KickReturnYards"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.OffensivePenalties = source["OffensivePenalties"]; + this.DefensivePenalties = source["DefensivePenalties"]; + this.OffPenaltyYards = source["OffPenaltyYards"]; + this.DefPenaltyYards = source["DefPenaltyYards"]; + this.Score1Q = source["Score1Q"]; + this.Score2Q = source["Score2Q"]; + this.Score3Q = source["Score3Q"]; + this.Score4Q = source["Score4Q"]; + this.Score5Q = source["Score5Q"]; + this.Score6Q = source["Score6Q"]; + this.Score7Q = source["Score7Q"]; + this.ScoreOT = source["ScoreOT"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.OffensiveSnaps = source["OffensiveSnaps"]; + this.DefensiveSnaps = source["DefensiveSnaps"]; + this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; + this.GameType = source["GameType"]; + this.RevealResults = source["RevealResults"]; + this.GamesPlayed = source["GamesPlayed"]; + this.TotalOffensiveYards = source["TotalOffensiveYards"]; + this.TotalYardsAllowed = source["TotalYardsAllowed"]; + this.Fumbles = source["Fumbles"]; + this.QBRating = source["QBRating"]; + this.Tackles = source["Tackles"]; + this.Turnovers = source["Turnovers"]; + } + + 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 NFLTeamStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - GameID: number; - WeekID: number; - SeasonID: number; - OpposingTeam: string; - IsPreseasonGame: boolean; - PointsScored: number; - PointsAgainst: number; - TwoPointTries: number; - TwoPointSucceed: number; - PassingYards: number; - PassingAttempts: number; - PassingCompletions: number; - LongestPass: number; - PassingTouchdowns: number; - PassingInterceptions: number; - QBRating: number; - QBSacks: number; - RushAttempts: number; - RushingYards: number; - RushingYardsPerAttempt: number; - LongestRush: number; - RushingTouchdowns: number; - RushingFumbles: number; - ReceivingTargets: number; - ReceivingCatches: number; - ReceivingYards: number; - YardsPerCatch: number; - ReceivingTouchdowns: number; - ReceivingFumbles: number; - PassingYardsAllowed: number; - PassingTDsAllowed: number; - PassingCompletionsAllowed: number; - RushingYardsAllowed: number; - RushingTDsAllowed: number; - RushingYardsPerAttemptAllowed: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - DefensiveSacks: number; - ForcedFumbles: number; - FumblesRecovered: number; - DefensiveInterceptions: number; - TurnoverYards: number; - DefensiveTDs: number; - Safeties: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - ExtraPointPercentage: number; - FieldGoalsMade: number; - FieldGoalsAttempted: number; - FieldGoalsPercentage: number; - LongestFieldGoal: number; - KickoffTBs: number; - PuntTBs: number; - Punts: number; - PuntYards: number; - PuntsInside20: number; - PuntAverage: number; - Inside20YardLine: number; - KickReturnYards: number; - KickReturnTDs: number; - PuntReturnYards: number; - PuntReturnTDs: number; - OffensivePenalties: number; - DefensivePenalties: number; - OffPenaltyYards: number; - DefPenaltyYards: number; - Score1Q: number; - Score2Q: number; - Score3Q: number; - Score4Q: number; - Score5Q: number; - Score6Q: number; - Score7Q: number; - ScoreOT: number; - OffensiveScheme: string; - DefensiveScheme: string; - OffensiveSnaps: number; - DefensiveSnaps: number; - SpecialTeamSnaps: number; - GameType: number; - RevealResults: 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.TeamID = source["TeamID"]; - this.GameID = source["GameID"]; - this.WeekID = source["WeekID"]; - this.SeasonID = source["SeasonID"]; - this.OpposingTeam = source["OpposingTeam"]; - this.IsPreseasonGame = source["IsPreseasonGame"]; - this.PointsScored = source["PointsScored"]; - this.PointsAgainst = source["PointsAgainst"]; - this.TwoPointTries = source["TwoPointTries"]; - this.TwoPointSucceed = source["TwoPointSucceed"]; - this.PassingYards = source["PassingYards"]; - this.PassingAttempts = source["PassingAttempts"]; - this.PassingCompletions = source["PassingCompletions"]; - this.LongestPass = source["LongestPass"]; - this.PassingTouchdowns = source["PassingTouchdowns"]; - this.PassingInterceptions = source["PassingInterceptions"]; - this.QBRating = source["QBRating"]; - this.QBSacks = source["QBSacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; - this.LongestRush = source["LongestRush"]; - this.RushingTouchdowns = source["RushingTouchdowns"]; - this.RushingFumbles = source["RushingFumbles"]; - this.ReceivingTargets = source["ReceivingTargets"]; - this.ReceivingCatches = source["ReceivingCatches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.YardsPerCatch = source["YardsPerCatch"]; - this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; - this.ReceivingFumbles = source["ReceivingFumbles"]; - this.PassingYardsAllowed = source["PassingYardsAllowed"]; - this.PassingTDsAllowed = source["PassingTDsAllowed"]; - this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; - this.RushingYardsAllowed = source["RushingYardsAllowed"]; - this.RushingTDsAllowed = source["RushingTDsAllowed"]; - this.RushingYardsPerAttemptAllowed = source["RushingYardsPerAttemptAllowed"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.DefensiveSacks = source["DefensiveSacks"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.FumblesRecovered = source["FumblesRecovered"]; - this.DefensiveInterceptions = source["DefensiveInterceptions"]; - this.TurnoverYards = source["TurnoverYards"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.Safeties = source["Safeties"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.ExtraPointPercentage = source["ExtraPointPercentage"]; - this.FieldGoalsMade = source["FieldGoalsMade"]; - this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; - this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; - this.LongestFieldGoal = source["LongestFieldGoal"]; - this.KickoffTBs = source["KickoffTBs"]; - this.PuntTBs = source["PuntTBs"]; - this.Punts = source["Punts"]; - this.PuntYards = source["PuntYards"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.PuntAverage = source["PuntAverage"]; - this.Inside20YardLine = source["Inside20YardLine"]; - this.KickReturnYards = source["KickReturnYards"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.OffensivePenalties = source["OffensivePenalties"]; - this.DefensivePenalties = source["DefensivePenalties"]; - this.OffPenaltyYards = source["OffPenaltyYards"]; - this.DefPenaltyYards = source["DefPenaltyYards"]; - this.Score1Q = source["Score1Q"]; - this.Score2Q = source["Score2Q"]; - this.Score3Q = source["Score3Q"]; - this.Score4Q = source["Score4Q"]; - this.Score5Q = source["Score5Q"]; - this.Score6Q = source["Score6Q"]; - this.Score7Q = source["Score7Q"]; - this.ScoreOT = source["ScoreOT"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.OffensiveSnaps = source["OffensiveSnaps"]; - this.DefensiveSnaps = source["DefensiveSnaps"]; - this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; - this.GameType = source["GameType"]; - this.RevealResults = source["RevealResults"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + GameID: number; + WeekID: number; + SeasonID: number; + OpposingTeam: string; + IsPreseasonGame: boolean; + PointsScored: number; + PointsAgainst: number; + TwoPointTries: number; + TwoPointSucceed: number; + PassingYards: number; + PassingAttempts: number; + PassingCompletions: number; + LongestPass: number; + PassingTouchdowns: number; + PassingInterceptions: number; + QBRating: number; + QBSacks: number; + RushAttempts: number; + RushingYards: number; + RushingYardsPerAttempt: number; + LongestRush: number; + RushingTouchdowns: number; + RushingFumbles: number; + ReceivingTargets: number; + ReceivingCatches: number; + ReceivingYards: number; + YardsPerCatch: number; + ReceivingTouchdowns: number; + ReceivingFumbles: number; + PassingYardsAllowed: number; + PassingTDsAllowed: number; + PassingCompletionsAllowed: number; + RushingYardsAllowed: number; + RushingTDsAllowed: number; + RushingYardsPerAttemptAllowed: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + DefensiveSacks: number; + ForcedFumbles: number; + FumblesRecovered: number; + DefensiveInterceptions: number; + TurnoverYards: number; + DefensiveTDs: number; + Safeties: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + ExtraPointPercentage: number; + FieldGoalsMade: number; + FieldGoalsAttempted: number; + FieldGoalsPercentage: number; + LongestFieldGoal: number; + KickoffTBs: number; + PuntTBs: number; + Punts: number; + PuntYards: number; + PuntsInside20: number; + PuntAverage: number; + Inside20YardLine: number; + KickReturnYards: number; + KickReturnTDs: number; + PuntReturnYards: number; + PuntReturnTDs: number; + OffensivePenalties: number; + DefensivePenalties: number; + OffPenaltyYards: number; + DefPenaltyYards: number; + Score1Q: number; + Score2Q: number; + Score3Q: number; + Score4Q: number; + Score5Q: number; + Score6Q: number; + Score7Q: number; + ScoreOT: number; + OffensiveScheme: string; + DefensiveScheme: string; + OffensiveSnaps: number; + DefensiveSnaps: number; + SpecialTeamSnaps: number; + GameType: number; + RevealResults: 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.TeamID = source["TeamID"]; + this.GameID = source["GameID"]; + this.WeekID = source["WeekID"]; + this.SeasonID = source["SeasonID"]; + this.OpposingTeam = source["OpposingTeam"]; + this.IsPreseasonGame = source["IsPreseasonGame"]; + this.PointsScored = source["PointsScored"]; + this.PointsAgainst = source["PointsAgainst"]; + this.TwoPointTries = source["TwoPointTries"]; + this.TwoPointSucceed = source["TwoPointSucceed"]; + this.PassingYards = source["PassingYards"]; + this.PassingAttempts = source["PassingAttempts"]; + this.PassingCompletions = source["PassingCompletions"]; + this.LongestPass = source["LongestPass"]; + this.PassingTouchdowns = source["PassingTouchdowns"]; + this.PassingInterceptions = source["PassingInterceptions"]; + this.QBRating = source["QBRating"]; + this.QBSacks = source["QBSacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; + this.LongestRush = source["LongestRush"]; + this.RushingTouchdowns = source["RushingTouchdowns"]; + this.RushingFumbles = source["RushingFumbles"]; + this.ReceivingTargets = source["ReceivingTargets"]; + this.ReceivingCatches = source["ReceivingCatches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.YardsPerCatch = source["YardsPerCatch"]; + this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; + this.ReceivingFumbles = source["ReceivingFumbles"]; + this.PassingYardsAllowed = source["PassingYardsAllowed"]; + this.PassingTDsAllowed = source["PassingTDsAllowed"]; + this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; + this.RushingYardsAllowed = source["RushingYardsAllowed"]; + this.RushingTDsAllowed = source["RushingTDsAllowed"]; + this.RushingYardsPerAttemptAllowed = + source["RushingYardsPerAttemptAllowed"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.DefensiveSacks = source["DefensiveSacks"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.FumblesRecovered = source["FumblesRecovered"]; + this.DefensiveInterceptions = source["DefensiveInterceptions"]; + this.TurnoverYards = source["TurnoverYards"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.Safeties = source["Safeties"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.ExtraPointPercentage = source["ExtraPointPercentage"]; + this.FieldGoalsMade = source["FieldGoalsMade"]; + this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; + this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; + this.LongestFieldGoal = source["LongestFieldGoal"]; + this.KickoffTBs = source["KickoffTBs"]; + this.PuntTBs = source["PuntTBs"]; + this.Punts = source["Punts"]; + this.PuntYards = source["PuntYards"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.PuntAverage = source["PuntAverage"]; + this.Inside20YardLine = source["Inside20YardLine"]; + this.KickReturnYards = source["KickReturnYards"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.OffensivePenalties = source["OffensivePenalties"]; + this.DefensivePenalties = source["DefensivePenalties"]; + this.OffPenaltyYards = source["OffPenaltyYards"]; + this.DefPenaltyYards = source["DefPenaltyYards"]; + this.Score1Q = source["Score1Q"]; + this.Score2Q = source["Score2Q"]; + this.Score3Q = source["Score3Q"]; + this.Score4Q = source["Score4Q"]; + this.Score5Q = source["Score5Q"]; + this.Score6Q = source["Score6Q"]; + this.Score7Q = source["Score7Q"]; + this.ScoreOT = source["ScoreOT"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.OffensiveSnaps = source["OffensiveSnaps"]; + this.DefensiveSnaps = source["DefensiveSnaps"]; + this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; + this.GameType = source["GameType"]; + this.RevealResults = source["RevealResults"]; + } + + 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 NFLDraftPick { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - SeasonID: number; - Season: number; - DrafteeID: number; - DraftRound: number; - DraftNumber: number; - OverallPickNumber: number; - TeamID: number; - Team: string; - OriginalTeamID: number; - OriginalTeam: string; - PreviousTeamID: number; - PreviousTeam: string; - DraftValue: number; - Notes: string; - SelectedPlayerID: number; - SelectedPlayerName: string; - SelectedPlayerPosition: string; - IsCompensation: boolean; - IsVoid: 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.SeasonID = source["SeasonID"]; - this.Season = source["Season"]; - this.DrafteeID = source["DrafteeID"]; - this.DraftRound = source["DraftRound"]; - this.DraftNumber = source["DraftNumber"]; - this.OverallPickNumber = source["OverallPickNumber"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.OriginalTeamID = source["OriginalTeamID"]; - this.OriginalTeam = source["OriginalTeam"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.DraftValue = source["DraftValue"]; - this.Notes = source["Notes"]; - this.SelectedPlayerID = source["SelectedPlayerID"]; - this.SelectedPlayerName = source["SelectedPlayerName"]; - this.SelectedPlayerPosition = source["SelectedPlayerPosition"]; - this.IsCompensation = source["IsCompensation"]; - this.IsVoid = source["IsVoid"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + SeasonID: number; + Season: number; + DrafteeID: number; + DraftRound: number; + DraftNumber: number; + OverallPickNumber: number; + TeamID: number; + Team: string; + OriginalTeamID: number; + OriginalTeam: string; + PreviousTeamID: number; + PreviousTeam: string; + DraftValue: number; + Notes: string; + SelectedPlayerID: number; + SelectedPlayerName: string; + SelectedPlayerPosition: string; + IsCompensation: boolean; + IsVoid: 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.SeasonID = source["SeasonID"]; + this.Season = source["Season"]; + this.DrafteeID = source["DrafteeID"]; + this.DraftRound = source["DraftRound"]; + this.DraftNumber = source["DraftNumber"]; + this.OverallPickNumber = source["OverallPickNumber"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.OriginalTeamID = source["OriginalTeamID"]; + this.OriginalTeam = source["OriginalTeam"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.DraftValue = source["DraftValue"]; + this.Notes = source["Notes"]; + this.SelectedPlayerID = source["SelectedPlayerID"]; + this.SelectedPlayerName = source["SelectedPlayerName"]; + this.SelectedPlayerPosition = source["SelectedPlayerPosition"]; + this.IsCompensation = source["IsCompensation"]; + this.IsVoid = source["IsVoid"]; + } + + 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 NFLContract { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - PlayerID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - OriginalTeamID: number; - OriginalTeam: string; - ContractLength: number; - Y1BaseSalary: number; - Y1Bonus: number; - Y2BaseSalary: number; - Y2Bonus: number; - Y3BaseSalary: number; - Y3Bonus: number; - Y4BaseSalary: number; - Y4Bonus: number; - Y5BaseSalary: number; - Y5Bonus: number; - BonusPercentage: number; - ContractType: string; - ContractValue: number; - SigningValue: number; - IsActive: boolean; - IsComplete: boolean; - IsExtended: boolean; - HasProgressed: boolean; - PlayerRetired: boolean; - TagType: number; - IsTagged: boolean; - IsCut: 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.PlayerID = source["PlayerID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.OriginalTeamID = source["OriginalTeamID"]; - this.OriginalTeam = source["OriginalTeam"]; - 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.BonusPercentage = source["BonusPercentage"]; - this.ContractType = source["ContractType"]; - this.ContractValue = source["ContractValue"]; - this.SigningValue = source["SigningValue"]; - this.IsActive = source["IsActive"]; - this.IsComplete = source["IsComplete"]; - this.IsExtended = source["IsExtended"]; - this.HasProgressed = source["HasProgressed"]; - this.PlayerRetired = source["PlayerRetired"]; - this.TagType = source["TagType"]; - this.IsTagged = source["IsTagged"]; - this.IsCut = source["IsCut"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + PlayerID: number; + NFLPlayerID: number; + TeamID: number; + Team: string; + OriginalTeamID: number; + OriginalTeam: string; + ContractLength: number; + Y1BaseSalary: number; + Y1Bonus: number; + Y2BaseSalary: number; + Y2Bonus: number; + Y3BaseSalary: number; + Y3Bonus: number; + Y4BaseSalary: number; + Y4Bonus: number; + Y5BaseSalary: number; + Y5Bonus: number; + BonusPercentage: number; + ContractType: string; + ContractValue: number; + SigningValue: number; + IsActive: boolean; + IsComplete: boolean; + IsExtended: boolean; + HasProgressed: boolean; + PlayerRetired: boolean; + TagType: number; + IsTagged: boolean; + IsCut: 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.PlayerID = source["PlayerID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.OriginalTeamID = source["OriginalTeamID"]; + this.OriginalTeam = source["OriginalTeam"]; + 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.BonusPercentage = source["BonusPercentage"]; + this.ContractType = source["ContractType"]; + this.ContractValue = source["ContractValue"]; + this.SigningValue = source["SigningValue"]; + this.IsActive = source["IsActive"]; + this.IsComplete = source["IsComplete"]; + this.IsExtended = source["IsExtended"]; + this.HasProgressed = source["HasProgressed"]; + this.PlayerRetired = source["PlayerRetired"]; + this.TagType = source["TagType"]; + this.IsTagged = source["IsTagged"]; + this.IsCut = source["IsCut"]; + } + + 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 NFLCapsheet { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - Y1Bonus: number; - Y1Salary: number; - Y1CapHit: number; - Y2Bonus: number; - Y2Salary: number; - Y2CapHit: number; - Y3Bonus: number; - Y3Salary: number; - Y3CapHit: number; - Y4Bonus: number; - Y4Salary: number; - Y4CapHit: number; - Y5Bonus: number; - Y5Salary: number; - Y5CapHit: 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.NFLTeamID = source["NFLTeamID"]; - this.Y1Bonus = source["Y1Bonus"]; - this.Y1Salary = source["Y1Salary"]; - this.Y1CapHit = source["Y1CapHit"]; - this.Y2Bonus = source["Y2Bonus"]; - this.Y2Salary = source["Y2Salary"]; - this.Y2CapHit = source["Y2CapHit"]; - this.Y3Bonus = source["Y3Bonus"]; - this.Y3Salary = source["Y3Salary"]; - this.Y3CapHit = source["Y3CapHit"]; - this.Y4Bonus = source["Y4Bonus"]; - this.Y4Salary = source["Y4Salary"]; - this.Y4CapHit = source["Y4CapHit"]; - this.Y5Bonus = source["Y5Bonus"]; - this.Y5Salary = source["Y5Salary"]; - this.Y5CapHit = source["Y5CapHit"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLTeamID: number; + Y1Bonus: number; + Y1Salary: number; + Y1CapHit: number; + Y2Bonus: number; + Y2Salary: number; + Y2CapHit: number; + Y3Bonus: number; + Y3Salary: number; + Y3CapHit: number; + Y4Bonus: number; + Y4Salary: number; + Y4CapHit: number; + Y5Bonus: number; + Y5Salary: number; + Y5CapHit: 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.NFLTeamID = source["NFLTeamID"]; + this.Y1Bonus = source["Y1Bonus"]; + this.Y1Salary = source["Y1Salary"]; + this.Y1CapHit = source["Y1CapHit"]; + this.Y2Bonus = source["Y2Bonus"]; + this.Y2Salary = source["Y2Salary"]; + this.Y2CapHit = source["Y2CapHit"]; + this.Y3Bonus = source["Y3Bonus"]; + this.Y3Salary = source["Y3Salary"]; + this.Y3CapHit = source["Y3CapHit"]; + this.Y4Bonus = source["Y4Bonus"]; + this.Y4Salary = source["Y4Salary"]; + this.Y4CapHit = source["Y4CapHit"]; + this.Y5Bonus = source["Y5Bonus"]; + this.Y5Salary = source["Y5Salary"]; + this.Y5CapHit = source["Y5CapHit"]; + } + + 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 NFLTeam { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - ConferenceID: number; - Conference: string; - DivisionID: number; - Division: string; - NFLOwnerID: number; - NFLOwnerName: string; - NFLCoachID: number; - NFLCoachName: string; - NFLGMID: number; - NFLGMName: string; - NFLAssistantID: number; - NFLAssistantName: string; - WaiverOrder: number; - UsedTagThisSeason: boolean; - Capsheet: NFLCapsheet; - Contracts: NFLContract[]; - DraftPicks: NFLDraftPick[]; - TeamStats: NFLTeamStats[]; - TeamSeasonStats: NFLTeamSeasonStats[]; - TeamDepthChart: NFLDepthChart; - TeamGameplan: NFLGameplan; - Standings: NFLStandings[]; - - 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.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.ConferenceID = source["ConferenceID"]; - this.Conference = source["Conference"]; - this.DivisionID = source["DivisionID"]; - this.Division = source["Division"]; - this.NFLOwnerID = source["NFLOwnerID"]; - this.NFLOwnerName = source["NFLOwnerName"]; - this.NFLCoachID = source["NFLCoachID"]; - this.NFLCoachName = source["NFLCoachName"]; - this.NFLGMID = source["NFLGMID"]; - this.NFLGMName = source["NFLGMName"]; - this.NFLAssistantID = source["NFLAssistantID"]; - this.NFLAssistantName = source["NFLAssistantName"]; - this.WaiverOrder = source["WaiverOrder"]; - this.UsedTagThisSeason = source["UsedTagThisSeason"]; - this.Capsheet = this.convertValues(source["Capsheet"], NFLCapsheet); - this.Contracts = this.convertValues(source["Contracts"], NFLContract); - this.DraftPicks = this.convertValues(source["DraftPicks"], NFLDraftPick); - this.TeamStats = this.convertValues(source["TeamStats"], NFLTeamStats); - this.TeamSeasonStats = this.convertValues(source["TeamSeasonStats"], NFLTeamSeasonStats); - this.TeamDepthChart = this.convertValues(source["TeamDepthChart"], NFLDepthChart); - this.TeamGameplan = this.convertValues(source["TeamGameplan"], NFLGameplan); - this.Standings = this.convertValues(source["Standings"], NFLStandings); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + ConferenceID: number; + Conference: string; + DivisionID: number; + Division: string; + NFLOwnerID: number; + NFLOwnerName: string; + NFLCoachID: number; + NFLCoachName: string; + NFLGMID: number; + NFLGMName: string; + NFLAssistantID: number; + NFLAssistantName: string; + WaiverOrder: number; + UsedTagThisSeason: boolean; + Capsheet: NFLCapsheet; + Contracts: NFLContract[]; + DraftPicks: NFLDraftPick[]; + TeamStats: NFLTeamStats[]; + TeamSeasonStats: NFLTeamSeasonStats[]; + TeamDepthChart: NFLDepthChart; + TeamGameplan: NFLGameplan; + Standings: NFLStandings[]; + + 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.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.ConferenceID = source["ConferenceID"]; + this.Conference = source["Conference"]; + this.DivisionID = source["DivisionID"]; + this.Division = source["Division"]; + this.NFLOwnerID = source["NFLOwnerID"]; + this.NFLOwnerName = source["NFLOwnerName"]; + this.NFLCoachID = source["NFLCoachID"]; + this.NFLCoachName = source["NFLCoachName"]; + this.NFLGMID = source["NFLGMID"]; + this.NFLGMName = source["NFLGMName"]; + this.NFLAssistantID = source["NFLAssistantID"]; + this.NFLAssistantName = source["NFLAssistantName"]; + this.WaiverOrder = source["WaiverOrder"]; + this.UsedTagThisSeason = source["UsedTagThisSeason"]; + this.Capsheet = this.convertValues(source["Capsheet"], NFLCapsheet); + this.Contracts = this.convertValues(source["Contracts"], NFLContract); + this.DraftPicks = this.convertValues(source["DraftPicks"], NFLDraftPick); + this.TeamStats = this.convertValues(source["TeamStats"], NFLTeamStats); + this.TeamSeasonStats = this.convertValues( + source["TeamSeasonStats"], + NFLTeamSeasonStats, + ); + this.TeamDepthChart = this.convertValues( + source["TeamDepthChart"], + NFLDepthChart, + ); + this.TeamGameplan = this.convertValues(source["TeamGameplan"], NFLGameplan); + this.Standings = this.convertValues(source["Standings"], NFLStandings); + } + + 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; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - TeamName: string; - SeasonID: number; - Season: number; - LeagueID: number; - LeagueName: string; - ConferenceID: number; - ConferenceName: string; - DivisionID: number; - PostSeasonStatus: string; - IsFBS: boolean; - Rank: number; - IsConferenceChampion: boolean; - ToucanRank: number; - PreseasonRank: number; - RegularSeasonRank: number; - SOS: number; - SOR: number; - RPI: number; - ConferenceStrengthAdj: number; - Tier1Wins: number; - Tier2Wins: number; - BadLosses: number; - TotalWins: number; - TotalLosses: number; - ConferenceWins: number; - ConferenceLosses: number; - RankedWins: number; - RankedLosses: number; - PointsFor: number; - PointsAgainst: number; - Streak: number; - HomeWins: number; - AwayWins: number; - Coach: string; - TeamAbbr: string; - TotalWinPercentage: number; - ConfWinPercentage: 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.TeamID = source["TeamID"]; - this.TeamName = source["TeamName"]; - this.SeasonID = source["SeasonID"]; - this.Season = source["Season"]; - this.LeagueID = source["LeagueID"]; - this.LeagueName = source["LeagueName"]; - this.ConferenceID = source["ConferenceID"]; - this.ConferenceName = source["ConferenceName"]; - this.DivisionID = source["DivisionID"]; - this.PostSeasonStatus = source["PostSeasonStatus"]; - this.IsFBS = source["IsFBS"]; - this.Rank = source["Rank"]; - this.IsConferenceChampion = source["IsConferenceChampion"]; - this.ToucanRank = source["ToucanRank"]; - this.PreseasonRank = source["PreseasonRank"]; - this.RegularSeasonRank = source["RegularSeasonRank"]; - this.SOS = source["SOS"]; - this.SOR = source["SOR"]; - this.RPI = source["RPI"]; - this.ConferenceStrengthAdj = source["ConferenceStrengthAdj"]; - this.Tier1Wins = source["Tier1Wins"]; - this.Tier2Wins = source["Tier2Wins"]; - this.BadLosses = source["BadLosses"]; - this.TotalWins = source["TotalWins"]; - this.TotalLosses = source["TotalLosses"]; - this.ConferenceWins = source["ConferenceWins"]; - this.ConferenceLosses = source["ConferenceLosses"]; - this.RankedWins = source["RankedWins"]; - this.RankedLosses = source["RankedLosses"]; - this.PointsFor = source["PointsFor"]; - this.PointsAgainst = source["PointsAgainst"]; - this.Streak = source["Streak"]; - this.HomeWins = source["HomeWins"]; - this.AwayWins = source["AwayWins"]; - this.Coach = source["Coach"]; - this.TeamAbbr = source["TeamAbbr"]; - this.TotalWinPercentage = source["TotalWinPercentage"]; - this.ConfWinPercentage = source["ConfWinPercentage"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + TeamName: string; + SeasonID: number; + Season: number; + LeagueID: number; + LeagueName: string; + ConferenceID: number; + ConferenceName: string; + DivisionID: number; + PostSeasonStatus: string; + IsFBS: boolean; + Rank: number; + IsConferenceChampion: boolean; + ToucanRank: number; + PreseasonRank: number; + RegularSeasonRank: number; + SOS: number; + SOR: number; + RPI: number; + ConferenceStrengthAdj: number; + Tier1Wins: number; + Tier2Wins: number; + BadLosses: number; + TotalWins: number; + TotalLosses: number; + ConferenceWins: number; + ConferenceLosses: number; + RankedWins: number; + RankedLosses: number; + PointsFor: number; + PointsAgainst: number; + Streak: number; + HomeWins: number; + AwayWins: number; + Coach: string; + TeamAbbr: string; + TotalWinPercentage: number; + ConfWinPercentage: 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.TeamID = source["TeamID"]; + this.TeamName = source["TeamName"]; + this.SeasonID = source["SeasonID"]; + this.Season = source["Season"]; + this.LeagueID = source["LeagueID"]; + this.LeagueName = source["LeagueName"]; + this.ConferenceID = source["ConferenceID"]; + this.ConferenceName = source["ConferenceName"]; + this.DivisionID = source["DivisionID"]; + this.PostSeasonStatus = source["PostSeasonStatus"]; + this.IsFBS = source["IsFBS"]; + this.Rank = source["Rank"]; + this.IsConferenceChampion = source["IsConferenceChampion"]; + this.ToucanRank = source["ToucanRank"]; + this.PreseasonRank = source["PreseasonRank"]; + this.RegularSeasonRank = source["RegularSeasonRank"]; + this.SOS = source["SOS"]; + this.SOR = source["SOR"]; + this.RPI = source["RPI"]; + this.ConferenceStrengthAdj = source["ConferenceStrengthAdj"]; + this.Tier1Wins = source["Tier1Wins"]; + this.Tier2Wins = source["Tier2Wins"]; + this.BadLosses = source["BadLosses"]; + this.TotalWins = source["TotalWins"]; + this.TotalLosses = source["TotalLosses"]; + this.ConferenceWins = source["ConferenceWins"]; + this.ConferenceLosses = source["ConferenceLosses"]; + this.RankedWins = source["RankedWins"]; + this.RankedLosses = source["RankedLosses"]; + this.PointsFor = source["PointsFor"]; + this.PointsAgainst = source["PointsAgainst"]; + this.Streak = source["Streak"]; + this.HomeWins = source["HomeWins"]; + this.AwayWins = source["AwayWins"]; + this.Coach = source["Coach"]; + this.TeamAbbr = source["TeamAbbr"]; + this.TotalWinPercentage = source["TotalWinPercentage"]; + this.ConfWinPercentage = source["ConfWinPercentage"]; + } + + 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 CollegePlayerSeasonStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - CollegePlayerID: number; - SeasonID: number; - Year: number; - IsRedshirt: boolean; - PassingYards: number; - PassAttempts: number; - PassCompletions: number; - PassingTDs: number; - Interceptions: number; - LongestPass: number; - Sacks: number; - RushAttempts: number; - RushingYards: number; - RushingTDs: number; - Fumbles: number; - LongestRush: number; - Targets: number; - Catches: number; - ReceivingYards: number; - ReceivingTDs: number; - LongestReception: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - SacksMade: number; - ForcedFumbles: number; - RecoveredFumbles: number; - PassDeflections: number; - InterceptionsCaught: number; - Safeties: number; - DefensiveTDs: number; - FGMade: number; - FGAttempts: number; - LongestFG: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - KickoffTouchbacks: number; - Punts: number; - GrossPuntDistance: number; - NetPuntDistance: number; - PuntTouchbacks: number; - PuntsInside20: number; - KickReturns: number; - KickReturnTDs: number; - KickReturnYards: number; - PuntReturns: number; - PuntReturnTDs: number; - PuntReturnYards: number; - STSoloTackles: number; - STAssistedTackles: number; - PuntsBlocked: number; - FGBlocked: number; - Snaps: number; - Pancakes: number; - SacksAllowed: number; - PlayedGame: number; - StartedGame: number; - WasInjured: boolean; - WeeksOfRecovery: number; - InjuryType: string; - RevealResults: boolean; - TeamID: number; - Team: string; - PreviousTeamID: number; - PreviousTeam: string; - GameType: number; - GamesPlayed: number; - QBRating: number; - Tackles: number; - RushingAvg: number; - PassingAvg: number; - ReceivingAvg: number; - Completion: 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.CollegePlayerID = source["CollegePlayerID"]; - this.SeasonID = source["SeasonID"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PassingYards = source["PassingYards"]; - this.PassAttempts = source["PassAttempts"]; - this.PassCompletions = source["PassCompletions"]; - this.PassingTDs = source["PassingTDs"]; - this.Interceptions = source["Interceptions"]; - this.LongestPass = source["LongestPass"]; - this.Sacks = source["Sacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingTDs = source["RushingTDs"]; - this.Fumbles = source["Fumbles"]; - this.LongestRush = source["LongestRush"]; - this.Targets = source["Targets"]; - this.Catches = source["Catches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.ReceivingTDs = source["ReceivingTDs"]; - this.LongestReception = source["LongestReception"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.SacksMade = source["SacksMade"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.RecoveredFumbles = source["RecoveredFumbles"]; - this.PassDeflections = source["PassDeflections"]; - this.InterceptionsCaught = source["InterceptionsCaught"]; - this.Safeties = source["Safeties"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.FGMade = source["FGMade"]; - this.FGAttempts = source["FGAttempts"]; - this.LongestFG = source["LongestFG"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.KickoffTouchbacks = source["KickoffTouchbacks"]; - this.Punts = source["Punts"]; - this.GrossPuntDistance = source["GrossPuntDistance"]; - this.NetPuntDistance = source["NetPuntDistance"]; - this.PuntTouchbacks = source["PuntTouchbacks"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.KickReturns = source["KickReturns"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.KickReturnYards = source["KickReturnYards"]; - this.PuntReturns = source["PuntReturns"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.STSoloTackles = source["STSoloTackles"]; - this.STAssistedTackles = source["STAssistedTackles"]; - this.PuntsBlocked = source["PuntsBlocked"]; - this.FGBlocked = source["FGBlocked"]; - this.Snaps = source["Snaps"]; - this.Pancakes = source["Pancakes"]; - this.SacksAllowed = source["SacksAllowed"]; - this.PlayedGame = source["PlayedGame"]; - this.StartedGame = source["StartedGame"]; - this.WasInjured = source["WasInjured"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryType = source["InjuryType"]; - this.RevealResults = source["RevealResults"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.GameType = source["GameType"]; - this.GamesPlayed = source["GamesPlayed"]; - this.QBRating = source["QBRating"]; - this.Tackles = source["Tackles"]; - this.RushingAvg = source["RushingAvg"]; - this.PassingAvg = source["PassingAvg"]; - this.ReceivingAvg = source["ReceivingAvg"]; - this.Completion = source["Completion"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + CollegePlayerID: number; + SeasonID: number; + Year: number; + IsRedshirt: boolean; + PassingYards: number; + PassAttempts: number; + PassCompletions: number; + PassingTDs: number; + Interceptions: number; + LongestPass: number; + Sacks: number; + RushAttempts: number; + RushingYards: number; + RushingTDs: number; + Fumbles: number; + LongestRush: number; + Targets: number; + Catches: number; + ReceivingYards: number; + ReceivingTDs: number; + LongestReception: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + SacksMade: number; + ForcedFumbles: number; + RecoveredFumbles: number; + PassDeflections: number; + InterceptionsCaught: number; + Safeties: number; + DefensiveTDs: number; + FGMade: number; + FGAttempts: number; + LongestFG: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + KickoffTouchbacks: number; + Punts: number; + GrossPuntDistance: number; + NetPuntDistance: number; + PuntTouchbacks: number; + PuntsInside20: number; + KickReturns: number; + KickReturnTDs: number; + KickReturnYards: number; + PuntReturns: number; + PuntReturnTDs: number; + PuntReturnYards: number; + STSoloTackles: number; + STAssistedTackles: number; + PuntsBlocked: number; + FGBlocked: number; + Snaps: number; + Pancakes: number; + SacksAllowed: number; + PlayedGame: number; + StartedGame: number; + WasInjured: boolean; + WeeksOfRecovery: number; + InjuryType: string; + RevealResults: boolean; + TeamID: number; + Team: string; + PreviousTeamID: number; + PreviousTeam: string; + GameType: number; + GamesPlayed: number; + QBRating: number; + Tackles: number; + RushingAvg: number; + PassingAvg: number; + ReceivingAvg: number; + Completion: 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.CollegePlayerID = source["CollegePlayerID"]; + this.SeasonID = source["SeasonID"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.PassingYards = source["PassingYards"]; + this.PassAttempts = source["PassAttempts"]; + this.PassCompletions = source["PassCompletions"]; + this.PassingTDs = source["PassingTDs"]; + this.Interceptions = source["Interceptions"]; + this.LongestPass = source["LongestPass"]; + this.Sacks = source["Sacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingTDs = source["RushingTDs"]; + this.Fumbles = source["Fumbles"]; + this.LongestRush = source["LongestRush"]; + this.Targets = source["Targets"]; + this.Catches = source["Catches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.ReceivingTDs = source["ReceivingTDs"]; + this.LongestReception = source["LongestReception"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.SacksMade = source["SacksMade"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.RecoveredFumbles = source["RecoveredFumbles"]; + this.PassDeflections = source["PassDeflections"]; + this.InterceptionsCaught = source["InterceptionsCaught"]; + this.Safeties = source["Safeties"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.FGMade = source["FGMade"]; + this.FGAttempts = source["FGAttempts"]; + this.LongestFG = source["LongestFG"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.KickoffTouchbacks = source["KickoffTouchbacks"]; + this.Punts = source["Punts"]; + this.GrossPuntDistance = source["GrossPuntDistance"]; + this.NetPuntDistance = source["NetPuntDistance"]; + this.PuntTouchbacks = source["PuntTouchbacks"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.KickReturns = source["KickReturns"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.KickReturnYards = source["KickReturnYards"]; + this.PuntReturns = source["PuntReturns"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.STSoloTackles = source["STSoloTackles"]; + this.STAssistedTackles = source["STAssistedTackles"]; + this.PuntsBlocked = source["PuntsBlocked"]; + this.FGBlocked = source["FGBlocked"]; + this.Snaps = source["Snaps"]; + this.Pancakes = source["Pancakes"]; + this.SacksAllowed = source["SacksAllowed"]; + this.PlayedGame = source["PlayedGame"]; + this.StartedGame = source["StartedGame"]; + this.WasInjured = source["WasInjured"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryType = source["InjuryType"]; + this.RevealResults = source["RevealResults"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.GameType = source["GameType"]; + this.GamesPlayed = source["GamesPlayed"]; + this.QBRating = source["QBRating"]; + this.Tackles = source["Tackles"]; + this.RushingAvg = source["RushingAvg"]; + this.PassingAvg = source["PassingAvg"]; + this.ReceivingAvg = source["ReceivingAvg"]; + this.Completion = source["Completion"]; + } + + 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 CollegePlayerStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - CollegePlayerID: number; - GameID: number; - WeekID: number; - SeasonID: number; - OpposingTeam: string; - Year: number; - IsRedshirt: boolean; - PassingYards: number; - PassAttempts: number; - PassCompletions: number; - PassingTDs: number; - Interceptions: number; - LongestPass: number; - Sacks: number; - RushAttempts: number; - RushingYards: number; - RushingTDs: number; - Fumbles: number; - LongestRush: number; - Targets: number; - Catches: number; - ReceivingYards: number; - ReceivingTDs: number; - LongestReception: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - SacksMade: number; - ForcedFumbles: number; - RecoveredFumbles: number; - PassDeflections: number; - InterceptionsCaught: number; - Safeties: number; - DefensiveTDs: number; - FGMade: number; - FGAttempts: number; - LongestFG: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - KickoffTouchbacks: number; - Punts: number; - GrossPuntDistance: number; - NetPuntDistance: number; - PuntTouchbacks: number; - PuntsInside20: number; - KickReturns: number; - KickReturnTDs: number; - KickReturnYards: number; - PuntReturns: number; - PuntReturnTDs: number; - PuntReturnYards: number; - STSoloTackles: number; - STAssistedTackles: number; - PuntsBlocked: number; - FGBlocked: number; - Snaps: number; - Pancakes: number; - SacksAllowed: number; - PlayedGame: number; - StartedGame: number; - WasInjured: boolean; - WeeksOfRecovery: number; - InjuryType: string; - RevealResults: boolean; - TeamID: number; - Team: string; - PreviousTeamID: number; - PreviousTeam: string; - GameType: 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.CollegePlayerID = source["CollegePlayerID"]; - this.GameID = source["GameID"]; - this.WeekID = source["WeekID"]; - this.SeasonID = source["SeasonID"]; - this.OpposingTeam = source["OpposingTeam"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PassingYards = source["PassingYards"]; - this.PassAttempts = source["PassAttempts"]; - this.PassCompletions = source["PassCompletions"]; - this.PassingTDs = source["PassingTDs"]; - this.Interceptions = source["Interceptions"]; - this.LongestPass = source["LongestPass"]; - this.Sacks = source["Sacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingTDs = source["RushingTDs"]; - this.Fumbles = source["Fumbles"]; - this.LongestRush = source["LongestRush"]; - this.Targets = source["Targets"]; - this.Catches = source["Catches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.ReceivingTDs = source["ReceivingTDs"]; - this.LongestReception = source["LongestReception"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.SacksMade = source["SacksMade"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.RecoveredFumbles = source["RecoveredFumbles"]; - this.PassDeflections = source["PassDeflections"]; - this.InterceptionsCaught = source["InterceptionsCaught"]; - this.Safeties = source["Safeties"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.FGMade = source["FGMade"]; - this.FGAttempts = source["FGAttempts"]; - this.LongestFG = source["LongestFG"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.KickoffTouchbacks = source["KickoffTouchbacks"]; - this.Punts = source["Punts"]; - this.GrossPuntDistance = source["GrossPuntDistance"]; - this.NetPuntDistance = source["NetPuntDistance"]; - this.PuntTouchbacks = source["PuntTouchbacks"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.KickReturns = source["KickReturns"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.KickReturnYards = source["KickReturnYards"]; - this.PuntReturns = source["PuntReturns"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.STSoloTackles = source["STSoloTackles"]; - this.STAssistedTackles = source["STAssistedTackles"]; - this.PuntsBlocked = source["PuntsBlocked"]; - this.FGBlocked = source["FGBlocked"]; - this.Snaps = source["Snaps"]; - this.Pancakes = source["Pancakes"]; - this.SacksAllowed = source["SacksAllowed"]; - this.PlayedGame = source["PlayedGame"]; - this.StartedGame = source["StartedGame"]; - this.WasInjured = source["WasInjured"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryType = source["InjuryType"]; - this.RevealResults = source["RevealResults"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.GameType = source["GameType"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + CollegePlayerID: number; + GameID: number; + WeekID: number; + SeasonID: number; + OpposingTeam: string; + Year: number; + IsRedshirt: boolean; + PassingYards: number; + PassAttempts: number; + PassCompletions: number; + PassingTDs: number; + Interceptions: number; + LongestPass: number; + Sacks: number; + RushAttempts: number; + RushingYards: number; + RushingTDs: number; + Fumbles: number; + LongestRush: number; + Targets: number; + Catches: number; + ReceivingYards: number; + ReceivingTDs: number; + LongestReception: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + SacksMade: number; + ForcedFumbles: number; + RecoveredFumbles: number; + PassDeflections: number; + InterceptionsCaught: number; + Safeties: number; + DefensiveTDs: number; + FGMade: number; + FGAttempts: number; + LongestFG: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + KickoffTouchbacks: number; + Punts: number; + GrossPuntDistance: number; + NetPuntDistance: number; + PuntTouchbacks: number; + PuntsInside20: number; + KickReturns: number; + KickReturnTDs: number; + KickReturnYards: number; + PuntReturns: number; + PuntReturnTDs: number; + PuntReturnYards: number; + STSoloTackles: number; + STAssistedTackles: number; + PuntsBlocked: number; + FGBlocked: number; + Snaps: number; + Pancakes: number; + SacksAllowed: number; + PlayedGame: number; + StartedGame: number; + WasInjured: boolean; + WeeksOfRecovery: number; + InjuryType: string; + RevealResults: boolean; + TeamID: number; + Team: string; + PreviousTeamID: number; + PreviousTeam: string; + GameType: 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.CollegePlayerID = source["CollegePlayerID"]; + this.GameID = source["GameID"]; + this.WeekID = source["WeekID"]; + this.SeasonID = source["SeasonID"]; + this.OpposingTeam = source["OpposingTeam"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.PassingYards = source["PassingYards"]; + this.PassAttempts = source["PassAttempts"]; + this.PassCompletions = source["PassCompletions"]; + this.PassingTDs = source["PassingTDs"]; + this.Interceptions = source["Interceptions"]; + this.LongestPass = source["LongestPass"]; + this.Sacks = source["Sacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingTDs = source["RushingTDs"]; + this.Fumbles = source["Fumbles"]; + this.LongestRush = source["LongestRush"]; + this.Targets = source["Targets"]; + this.Catches = source["Catches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.ReceivingTDs = source["ReceivingTDs"]; + this.LongestReception = source["LongestReception"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.SacksMade = source["SacksMade"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.RecoveredFumbles = source["RecoveredFumbles"]; + this.PassDeflections = source["PassDeflections"]; + this.InterceptionsCaught = source["InterceptionsCaught"]; + this.Safeties = source["Safeties"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.FGMade = source["FGMade"]; + this.FGAttempts = source["FGAttempts"]; + this.LongestFG = source["LongestFG"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.KickoffTouchbacks = source["KickoffTouchbacks"]; + this.Punts = source["Punts"]; + this.GrossPuntDistance = source["GrossPuntDistance"]; + this.NetPuntDistance = source["NetPuntDistance"]; + this.PuntTouchbacks = source["PuntTouchbacks"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.KickReturns = source["KickReturns"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.KickReturnYards = source["KickReturnYards"]; + this.PuntReturns = source["PuntReturns"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.STSoloTackles = source["STSoloTackles"]; + this.STAssistedTackles = source["STAssistedTackles"]; + this.PuntsBlocked = source["PuntsBlocked"]; + this.FGBlocked = source["FGBlocked"]; + this.Snaps = source["Snaps"]; + this.Pancakes = source["Pancakes"]; + this.SacksAllowed = source["SacksAllowed"]; + this.PlayedGame = source["PlayedGame"]; + this.StartedGame = source["StartedGame"]; + this.WasInjured = source["WasInjured"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryType = source["InjuryType"]; + this.RevealResults = source["RevealResults"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.GameType = source["GameType"]; + } + + 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 CollegePlayer { - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - 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; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + 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 CollegeDepthChartPosition { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - DepthChartID: number; - PlayerID: number; - Position: string; - PositionLevel: string; - FirstName: string; - LastName: string; - OriginalPosition: string; - CollegePlayer: CollegePlayer; - - 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.DepthChartID = source["DepthChartID"]; - this.PlayerID = source["PlayerID"]; - this.Position = source["Position"]; - this.PositionLevel = source["PositionLevel"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.OriginalPosition = source["OriginalPosition"]; - this.CollegePlayer = this.convertValues(source["CollegePlayer"], CollegePlayer); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + DepthChartID: number; + PlayerID: number; + Position: string; + PositionLevel: string; + FirstName: string; + LastName: string; + OriginalPosition: string; + CollegePlayer: CollegePlayer; + + 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.DepthChartID = source["DepthChartID"]; + this.PlayerID = source["PlayerID"]; + this.Position = source["Position"]; + this.PositionLevel = source["PositionLevel"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.OriginalPosition = source["OriginalPosition"]; + this.CollegePlayer = this.convertValues( + source["CollegePlayer"], + CollegePlayer, + ); + } + + 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 CollegeTeamDepthChart { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - DepthChartPlayers: CollegeDepthChartPosition[]; - - 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.DepthChartPlayers = this.convertValues(source["DepthChartPlayers"], CollegeDepthChartPosition); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + TeamID: number; + DepthChartPlayers: CollegeDepthChartPosition[]; + + 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.DepthChartPlayers = this.convertValues( + source["DepthChartPlayers"], + CollegeDepthChartPosition, + ); + } + + 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 CollegeGameplan { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - OffensiveScheme: string; - OffRunToPassRatio: number; - OffFormation1Name: string; - OffForm1Weight: number; - OffForm1TraditionalRun: number; - OffForm1OptionRun: number; - OffForm1Pass: number; - OffForm1RPO: number; - OffFormation2Name: string; - OffForm2Weight: number; - OffForm2TraditionalRun: number; - OffForm2OptionRun: number; - OffForm2Pass: number; - OffForm2RPO: number; - OffFormation3Name: string; - OffForm3Weight: number; - OffForm3TraditionalRun: number; - OffForm3OptionRun: number; - OffForm3Pass: number; - OffForm3RPO: number; - OffFormation4Name: string; - OffForm4Weight: number; - OffForm4TraditionalRun: number; - OffForm4OptionRun: number; - OffForm4Pass: number; - OffForm4RPO: number; - OffFormation5Name: string; - OffForm5Weight: number; - OffForm5TraditionalRun: number; - OffForm5OptionRun: number; - OffForm5Pass: number; - OffForm5RPO: number; - RunnerDistributionQB: number; - RunnerDistributionRB1: number; - RunnerDistributionRB2: number; - RunnerDistributionRB3: number; - RunnerDistributionFB1: number; - RunnerDistributionFB2: number; - RunnerDistributionWR: number; - RunnerDistributionWRPosition: string; - RunnerDistributionWRID: number; - RunOutsideLeft: number; - RunOutsideRight: number; - RunInsideLeft: number; - RunInsideRight: number; - RunPowerLeft: number; - RunPowerRight: number; - RunDrawLeft: number; - RunDrawRight: number; - ReadOptionLeft: number; - ReadOptionRight: number; - SpeedOptionLeft: number; - SpeedOptionRight: number; - InvertedOptionLeft: number; - InvertedOptionRight: number; - TripleOptionLeft: number; - TripleOptionRight: number; - PassQuick: number; - PassShort: number; - PassMedium: number; - PassLong: number; - PassDeep: number; - PassScreen: number; - PassPAShort: number; - PassPAMedium: number; - PassPALong: number; - PassPADeep: number; - LeftVsRight: number; - ChoiceOutside: number; - ChoiceInside: number; - ChoicePower: number; - PeekOutside: number; - PeekInside: number; - PeekPower: number; - TargetingWR1: number; - TargetDepthWR1: string; - TargetingWR2: number; - TargetDepthWR2: string; - TargetingWR3: number; - TargetDepthWR3: string; - TargetingWR4: number; - TargetDepthWR4: string; - TargetingWR5: number; - TargetDepthWR5: string; - TargetingTE1: number; - TargetDepthTE1: string; - TargetingTE2: number; - TargetDepthTE2: string; - TargetingTE3: number; - TargetDepthTE3: string; - TargetingRB1: number; - TargetDepthRB1: string; - TargetingRB2: number; - TargetDepthRB2: string; - TargetingFB1: number; - TargetDepthFB1: string; - DefensiveScheme: string; - DefFormation1: string; - DefFormation1RunToPass: number; - DefFormation1BlitzWeight: number; - DefFormation1BlitzAggression: string; - DefFormation2: string; - DefFormation2RunToPass: number; - DefFormation2BlitzWeight: number; - DefFormation2BlitzAggression: string; - DefFormation3: string; - DefFormation3RunToPass: number; - DefFormation3BlitzWeight: number; - DefFormation3BlitzAggression: string; - DefFormation4: string; - DefFormation4RunToPass: number; - DefFormation4BlitzWeight: number; - DefFormation4BlitzAggression: string; - DefFormation5: string; - DefFormation5RunToPass: number; - DefFormation5BlitzWeight: number; - DefFormation5BlitzAggression: string; - BlitzSafeties: boolean; - BlitzCorners: boolean; - LinebackerCoverage: string; - CornersCoverage: string; - SafetiesCoverage: string; - DiveFocus: number; - PitchFocus: number; - PrimaryHB: number; - MaximumFGDistance: number; - GoFor4AndShort: number; - GoFor4AndLong: number; - HasSchemePenalty: boolean; - OffenseSchemePenalty: number; - DefenseSchemePenalty: number; - DefaultOffense: boolean; - DefaultDefense: boolean; - PreviousWeekBye: boolean; - FocusPlays: string; - DoubleTeam: 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.TeamID = source["TeamID"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.OffRunToPassRatio = source["OffRunToPassRatio"]; - this.OffFormation1Name = source["OffFormation1Name"]; - this.OffForm1Weight = source["OffForm1Weight"]; - this.OffForm1TraditionalRun = source["OffForm1TraditionalRun"]; - this.OffForm1OptionRun = source["OffForm1OptionRun"]; - this.OffForm1Pass = source["OffForm1Pass"]; - this.OffForm1RPO = source["OffForm1RPO"]; - this.OffFormation2Name = source["OffFormation2Name"]; - this.OffForm2Weight = source["OffForm2Weight"]; - this.OffForm2TraditionalRun = source["OffForm2TraditionalRun"]; - this.OffForm2OptionRun = source["OffForm2OptionRun"]; - this.OffForm2Pass = source["OffForm2Pass"]; - this.OffForm2RPO = source["OffForm2RPO"]; - this.OffFormation3Name = source["OffFormation3Name"]; - this.OffForm3Weight = source["OffForm3Weight"]; - this.OffForm3TraditionalRun = source["OffForm3TraditionalRun"]; - this.OffForm3OptionRun = source["OffForm3OptionRun"]; - this.OffForm3Pass = source["OffForm3Pass"]; - this.OffForm3RPO = source["OffForm3RPO"]; - this.OffFormation4Name = source["OffFormation4Name"]; - this.OffForm4Weight = source["OffForm4Weight"]; - this.OffForm4TraditionalRun = source["OffForm4TraditionalRun"]; - this.OffForm4OptionRun = source["OffForm4OptionRun"]; - this.OffForm4Pass = source["OffForm4Pass"]; - this.OffForm4RPO = source["OffForm4RPO"]; - this.OffFormation5Name = source["OffFormation5Name"]; - this.OffForm5Weight = source["OffForm5Weight"]; - this.OffForm5TraditionalRun = source["OffForm5TraditionalRun"]; - this.OffForm5OptionRun = source["OffForm5OptionRun"]; - this.OffForm5Pass = source["OffForm5Pass"]; - this.OffForm5RPO = source["OffForm5RPO"]; - this.RunnerDistributionQB = source["RunnerDistributionQB"]; - this.RunnerDistributionRB1 = source["RunnerDistributionRB1"]; - this.RunnerDistributionRB2 = source["RunnerDistributionRB2"]; - this.RunnerDistributionRB3 = source["RunnerDistributionRB3"]; - this.RunnerDistributionFB1 = source["RunnerDistributionFB1"]; - this.RunnerDistributionFB2 = source["RunnerDistributionFB2"]; - this.RunnerDistributionWR = source["RunnerDistributionWR"]; - this.RunnerDistributionWRPosition = source["RunnerDistributionWRPosition"]; - this.RunnerDistributionWRID = source["RunnerDistributionWRID"]; - this.RunOutsideLeft = source["RunOutsideLeft"]; - this.RunOutsideRight = source["RunOutsideRight"]; - this.RunInsideLeft = source["RunInsideLeft"]; - this.RunInsideRight = source["RunInsideRight"]; - this.RunPowerLeft = source["RunPowerLeft"]; - this.RunPowerRight = source["RunPowerRight"]; - this.RunDrawLeft = source["RunDrawLeft"]; - this.RunDrawRight = source["RunDrawRight"]; - this.ReadOptionLeft = source["ReadOptionLeft"]; - this.ReadOptionRight = source["ReadOptionRight"]; - this.SpeedOptionLeft = source["SpeedOptionLeft"]; - this.SpeedOptionRight = source["SpeedOptionRight"]; - this.InvertedOptionLeft = source["InvertedOptionLeft"]; - this.InvertedOptionRight = source["InvertedOptionRight"]; - this.TripleOptionLeft = source["TripleOptionLeft"]; - this.TripleOptionRight = source["TripleOptionRight"]; - this.PassQuick = source["PassQuick"]; - this.PassShort = source["PassShort"]; - this.PassMedium = source["PassMedium"]; - this.PassLong = source["PassLong"]; - 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"]; - this.ChoiceOutside = source["ChoiceOutside"]; - this.ChoiceInside = source["ChoiceInside"]; - this.ChoicePower = source["ChoicePower"]; - this.PeekOutside = source["PeekOutside"]; - this.PeekInside = source["PeekInside"]; - this.PeekPower = source["PeekPower"]; - this.TargetingWR1 = source["TargetingWR1"]; - this.TargetDepthWR1 = source["TargetDepthWR1"]; - this.TargetingWR2 = source["TargetingWR2"]; - this.TargetDepthWR2 = source["TargetDepthWR2"]; - this.TargetingWR3 = source["TargetingWR3"]; - this.TargetDepthWR3 = source["TargetDepthWR3"]; - this.TargetingWR4 = source["TargetingWR4"]; - this.TargetDepthWR4 = source["TargetDepthWR4"]; - this.TargetingWR5 = source["TargetingWR5"]; - this.TargetDepthWR5 = source["TargetDepthWR5"]; - this.TargetingTE1 = source["TargetingTE1"]; - this.TargetDepthTE1 = source["TargetDepthTE1"]; - this.TargetingTE2 = source["TargetingTE2"]; - this.TargetDepthTE2 = source["TargetDepthTE2"]; - this.TargetingTE3 = source["TargetingTE3"]; - this.TargetDepthTE3 = source["TargetDepthTE3"]; - this.TargetingRB1 = source["TargetingRB1"]; - this.TargetDepthRB1 = source["TargetDepthRB1"]; - this.TargetingRB2 = source["TargetingRB2"]; - this.TargetDepthRB2 = source["TargetDepthRB2"]; - this.TargetingFB1 = source["TargetingFB1"]; - this.TargetDepthFB1 = source["TargetDepthFB1"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.DefFormation1 = source["DefFormation1"]; - this.DefFormation1RunToPass = source["DefFormation1RunToPass"]; - this.DefFormation1BlitzWeight = source["DefFormation1BlitzWeight"]; - this.DefFormation1BlitzAggression = source["DefFormation1BlitzAggression"]; - this.DefFormation2 = source["DefFormation2"]; - this.DefFormation2RunToPass = source["DefFormation2RunToPass"]; - this.DefFormation2BlitzWeight = source["DefFormation2BlitzWeight"]; - this.DefFormation2BlitzAggression = source["DefFormation2BlitzAggression"]; - this.DefFormation3 = source["DefFormation3"]; - this.DefFormation3RunToPass = source["DefFormation3RunToPass"]; - this.DefFormation3BlitzWeight = source["DefFormation3BlitzWeight"]; - this.DefFormation3BlitzAggression = source["DefFormation3BlitzAggression"]; - this.DefFormation4 = source["DefFormation4"]; - this.DefFormation4RunToPass = source["DefFormation4RunToPass"]; - this.DefFormation4BlitzWeight = source["DefFormation4BlitzWeight"]; - this.DefFormation4BlitzAggression = source["DefFormation4BlitzAggression"]; - this.DefFormation5 = source["DefFormation5"]; - this.DefFormation5RunToPass = source["DefFormation5RunToPass"]; - this.DefFormation5BlitzWeight = source["DefFormation5BlitzWeight"]; - this.DefFormation5BlitzAggression = source["DefFormation5BlitzAggression"]; - this.BlitzSafeties = source["BlitzSafeties"]; - this.BlitzCorners = source["BlitzCorners"]; - this.LinebackerCoverage = source["LinebackerCoverage"]; - this.CornersCoverage = source["CornersCoverage"]; - this.SafetiesCoverage = source["SafetiesCoverage"]; - this.DiveFocus = source["DiveFocus"]; - this.PitchFocus = source["PitchFocus"]; - this.PrimaryHB = source["PrimaryHB"]; - this.MaximumFGDistance = source["MaximumFGDistance"]; - this.GoFor4AndShort = source["GoFor4AndShort"]; - this.GoFor4AndLong = source["GoFor4AndLong"]; - this.HasSchemePenalty = source["HasSchemePenalty"]; - this.OffenseSchemePenalty = source["OffenseSchemePenalty"]; - this.DefenseSchemePenalty = source["DefenseSchemePenalty"]; - this.DefaultOffense = source["DefaultOffense"]; - this.DefaultDefense = source["DefaultDefense"]; - this.PreviousWeekBye = source["PreviousWeekBye"]; - this.FocusPlays = source["FocusPlays"]; - this.DoubleTeam = source["DoubleTeam"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + TeamID: number; + OffensiveScheme: string; + OffRunToPassRatio: number; + OffFormation1Name: string; + OffForm1Weight: number; + OffForm1TraditionalRun: number; + OffForm1OptionRun: number; + OffForm1Pass: number; + OffForm1RPO: number; + OffFormation2Name: string; + OffForm2Weight: number; + OffForm2TraditionalRun: number; + OffForm2OptionRun: number; + OffForm2Pass: number; + OffForm2RPO: number; + OffFormation3Name: string; + OffForm3Weight: number; + OffForm3TraditionalRun: number; + OffForm3OptionRun: number; + OffForm3Pass: number; + OffForm3RPO: number; + OffFormation4Name: string; + OffForm4Weight: number; + OffForm4TraditionalRun: number; + OffForm4OptionRun: number; + OffForm4Pass: number; + OffForm4RPO: number; + OffFormation5Name: string; + OffForm5Weight: number; + OffForm5TraditionalRun: number; + OffForm5OptionRun: number; + OffForm5Pass: number; + OffForm5RPO: number; + RunnerDistributionQB: number; + RunnerDistributionRB1: number; + RunnerDistributionRB2: number; + RunnerDistributionRB3: number; + RunnerDistributionFB1: number; + RunnerDistributionFB2: number; + RunnerDistributionWR: number; + RunnerDistributionWRPosition: string; + RunnerDistributionWRID: number; + RunOutsideLeft: number; + RunOutsideRight: number; + RunInsideLeft: number; + RunInsideRight: number; + RunPowerLeft: number; + RunPowerRight: number; + RunDrawLeft: number; + RunDrawRight: number; + ReadOptionLeft: number; + ReadOptionRight: number; + SpeedOptionLeft: number; + SpeedOptionRight: number; + InvertedOptionLeft: number; + InvertedOptionRight: number; + TripleOptionLeft: number; + TripleOptionRight: number; + PassQuick: number; + PassShort: number; + PassMedium: number; + PassLong: number; + PassDeep: number; + PassScreen: number; + PassPAShort: number; + PassPAMedium: number; + PassPALong: number; + PassPADeep: number; + LeftVsRight: number; + ChoiceOutside: number; + ChoiceInside: number; + ChoicePower: number; + PeekOutside: number; + PeekInside: number; + PeekPower: number; + TargetingWR1: number; + TargetDepthWR1: string; + TargetingWR2: number; + TargetDepthWR2: string; + TargetingWR3: number; + TargetDepthWR3: string; + TargetingWR4: number; + TargetDepthWR4: string; + TargetingWR5: number; + TargetDepthWR5: string; + TargetingTE1: number; + TargetDepthTE1: string; + TargetingTE2: number; + TargetDepthTE2: string; + TargetingTE3: number; + TargetDepthTE3: string; + TargetingRB1: number; + TargetDepthRB1: string; + TargetingRB2: number; + TargetDepthRB2: string; + TargetingFB1: number; + TargetDepthFB1: string; + DefensiveScheme: string; + DefFormation1: string; + DefFormation1RunToPass: number; + DefFormation1BlitzWeight: number; + DefFormation1BlitzAggression: string; + DefFormation2: string; + DefFormation2RunToPass: number; + DefFormation2BlitzWeight: number; + DefFormation2BlitzAggression: string; + DefFormation3: string; + DefFormation3RunToPass: number; + DefFormation3BlitzWeight: number; + DefFormation3BlitzAggression: string; + DefFormation4: string; + DefFormation4RunToPass: number; + DefFormation4BlitzWeight: number; + DefFormation4BlitzAggression: string; + DefFormation5: string; + DefFormation5RunToPass: number; + DefFormation5BlitzWeight: number; + DefFormation5BlitzAggression: string; + BlitzSafeties: boolean; + BlitzCorners: boolean; + LinebackerCoverage: string; + CornersCoverage: string; + SafetiesCoverage: string; + DiveFocus: number; + PitchFocus: number; + PrimaryHB: number; + MaximumFGDistance: number; + GoFor4AndShort: number; + GoFor4AndLong: number; + HasSchemePenalty: boolean; + OffenseSchemePenalty: number; + DefenseSchemePenalty: number; + DefaultOffense: boolean; + DefaultDefense: boolean; + PreviousWeekBye: boolean; + FocusPlays: string; + DoubleTeam: 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.TeamID = source["TeamID"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.OffRunToPassRatio = source["OffRunToPassRatio"]; + this.OffFormation1Name = source["OffFormation1Name"]; + this.OffForm1Weight = source["OffForm1Weight"]; + this.OffForm1TraditionalRun = source["OffForm1TraditionalRun"]; + this.OffForm1OptionRun = source["OffForm1OptionRun"]; + this.OffForm1Pass = source["OffForm1Pass"]; + this.OffForm1RPO = source["OffForm1RPO"]; + this.OffFormation2Name = source["OffFormation2Name"]; + this.OffForm2Weight = source["OffForm2Weight"]; + this.OffForm2TraditionalRun = source["OffForm2TraditionalRun"]; + this.OffForm2OptionRun = source["OffForm2OptionRun"]; + this.OffForm2Pass = source["OffForm2Pass"]; + this.OffForm2RPO = source["OffForm2RPO"]; + this.OffFormation3Name = source["OffFormation3Name"]; + this.OffForm3Weight = source["OffForm3Weight"]; + this.OffForm3TraditionalRun = source["OffForm3TraditionalRun"]; + this.OffForm3OptionRun = source["OffForm3OptionRun"]; + this.OffForm3Pass = source["OffForm3Pass"]; + this.OffForm3RPO = source["OffForm3RPO"]; + this.OffFormation4Name = source["OffFormation4Name"]; + this.OffForm4Weight = source["OffForm4Weight"]; + this.OffForm4TraditionalRun = source["OffForm4TraditionalRun"]; + this.OffForm4OptionRun = source["OffForm4OptionRun"]; + this.OffForm4Pass = source["OffForm4Pass"]; + this.OffForm4RPO = source["OffForm4RPO"]; + this.OffFormation5Name = source["OffFormation5Name"]; + this.OffForm5Weight = source["OffForm5Weight"]; + this.OffForm5TraditionalRun = source["OffForm5TraditionalRun"]; + this.OffForm5OptionRun = source["OffForm5OptionRun"]; + this.OffForm5Pass = source["OffForm5Pass"]; + this.OffForm5RPO = source["OffForm5RPO"]; + this.RunnerDistributionQB = source["RunnerDistributionQB"]; + this.RunnerDistributionRB1 = source["RunnerDistributionRB1"]; + this.RunnerDistributionRB2 = source["RunnerDistributionRB2"]; + this.RunnerDistributionRB3 = source["RunnerDistributionRB3"]; + this.RunnerDistributionFB1 = source["RunnerDistributionFB1"]; + this.RunnerDistributionFB2 = source["RunnerDistributionFB2"]; + this.RunnerDistributionWR = source["RunnerDistributionWR"]; + this.RunnerDistributionWRPosition = source["RunnerDistributionWRPosition"]; + this.RunnerDistributionWRID = source["RunnerDistributionWRID"]; + this.RunOutsideLeft = source["RunOutsideLeft"]; + this.RunOutsideRight = source["RunOutsideRight"]; + this.RunInsideLeft = source["RunInsideLeft"]; + this.RunInsideRight = source["RunInsideRight"]; + this.RunPowerLeft = source["RunPowerLeft"]; + this.RunPowerRight = source["RunPowerRight"]; + this.RunDrawLeft = source["RunDrawLeft"]; + this.RunDrawRight = source["RunDrawRight"]; + this.ReadOptionLeft = source["ReadOptionLeft"]; + this.ReadOptionRight = source["ReadOptionRight"]; + this.SpeedOptionLeft = source["SpeedOptionLeft"]; + this.SpeedOptionRight = source["SpeedOptionRight"]; + this.InvertedOptionLeft = source["InvertedOptionLeft"]; + this.InvertedOptionRight = source["InvertedOptionRight"]; + this.TripleOptionLeft = source["TripleOptionLeft"]; + this.TripleOptionRight = source["TripleOptionRight"]; + this.PassQuick = source["PassQuick"]; + this.PassShort = source["PassShort"]; + this.PassMedium = source["PassMedium"]; + this.PassLong = source["PassLong"]; + 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"]; + this.ChoiceOutside = source["ChoiceOutside"]; + this.ChoiceInside = source["ChoiceInside"]; + this.ChoicePower = source["ChoicePower"]; + this.PeekOutside = source["PeekOutside"]; + this.PeekInside = source["PeekInside"]; + this.PeekPower = source["PeekPower"]; + this.TargetingWR1 = source["TargetingWR1"]; + this.TargetDepthWR1 = source["TargetDepthWR1"]; + this.TargetingWR2 = source["TargetingWR2"]; + this.TargetDepthWR2 = source["TargetDepthWR2"]; + this.TargetingWR3 = source["TargetingWR3"]; + this.TargetDepthWR3 = source["TargetDepthWR3"]; + this.TargetingWR4 = source["TargetingWR4"]; + this.TargetDepthWR4 = source["TargetDepthWR4"]; + this.TargetingWR5 = source["TargetingWR5"]; + this.TargetDepthWR5 = source["TargetDepthWR5"]; + this.TargetingTE1 = source["TargetingTE1"]; + this.TargetDepthTE1 = source["TargetDepthTE1"]; + this.TargetingTE2 = source["TargetingTE2"]; + this.TargetDepthTE2 = source["TargetDepthTE2"]; + this.TargetingTE3 = source["TargetingTE3"]; + this.TargetDepthTE3 = source["TargetDepthTE3"]; + this.TargetingRB1 = source["TargetingRB1"]; + this.TargetDepthRB1 = source["TargetDepthRB1"]; + this.TargetingRB2 = source["TargetingRB2"]; + this.TargetDepthRB2 = source["TargetDepthRB2"]; + this.TargetingFB1 = source["TargetingFB1"]; + this.TargetDepthFB1 = source["TargetDepthFB1"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.DefFormation1 = source["DefFormation1"]; + this.DefFormation1RunToPass = source["DefFormation1RunToPass"]; + this.DefFormation1BlitzWeight = source["DefFormation1BlitzWeight"]; + this.DefFormation1BlitzAggression = source["DefFormation1BlitzAggression"]; + this.DefFormation2 = source["DefFormation2"]; + this.DefFormation2RunToPass = source["DefFormation2RunToPass"]; + this.DefFormation2BlitzWeight = source["DefFormation2BlitzWeight"]; + this.DefFormation2BlitzAggression = source["DefFormation2BlitzAggression"]; + this.DefFormation3 = source["DefFormation3"]; + this.DefFormation3RunToPass = source["DefFormation3RunToPass"]; + this.DefFormation3BlitzWeight = source["DefFormation3BlitzWeight"]; + this.DefFormation3BlitzAggression = source["DefFormation3BlitzAggression"]; + this.DefFormation4 = source["DefFormation4"]; + this.DefFormation4RunToPass = source["DefFormation4RunToPass"]; + this.DefFormation4BlitzWeight = source["DefFormation4BlitzWeight"]; + this.DefFormation4BlitzAggression = source["DefFormation4BlitzAggression"]; + this.DefFormation5 = source["DefFormation5"]; + this.DefFormation5RunToPass = source["DefFormation5RunToPass"]; + this.DefFormation5BlitzWeight = source["DefFormation5BlitzWeight"]; + this.DefFormation5BlitzAggression = source["DefFormation5BlitzAggression"]; + this.BlitzSafeties = source["BlitzSafeties"]; + this.BlitzCorners = source["BlitzCorners"]; + this.LinebackerCoverage = source["LinebackerCoverage"]; + this.CornersCoverage = source["CornersCoverage"]; + this.SafetiesCoverage = source["SafetiesCoverage"]; + this.DiveFocus = source["DiveFocus"]; + this.PitchFocus = source["PitchFocus"]; + this.PrimaryHB = source["PrimaryHB"]; + this.MaximumFGDistance = source["MaximumFGDistance"]; + this.GoFor4AndShort = source["GoFor4AndShort"]; + this.GoFor4AndLong = source["GoFor4AndLong"]; + this.HasSchemePenalty = source["HasSchemePenalty"]; + this.OffenseSchemePenalty = source["OffenseSchemePenalty"]; + this.DefenseSchemePenalty = source["DefenseSchemePenalty"]; + this.DefaultOffense = source["DefaultOffense"]; + this.DefaultDefense = source["DefaultDefense"]; + this.PreviousWeekBye = source["PreviousWeekBye"]; + this.FocusPlays = source["FocusPlays"]; + this.DoubleTeam = source["DoubleTeam"]; + } + + 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 CollegeTeamRecords { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - PassingTDCareerHolderID: number; - PassingTDCareerHolder: string; - PassingTDCareerRecord: number; - PassingTDGameHolderID: number; - PassingTDGameHolder: string; - PassingTDGameRecord: number; - PassingTDSeasonHolderID: number; - PassingTDSeasonHolder: string; - PassingTDSeasonRecord: number; - PassingYardsCareerHolderID: number; - PassingYardsCareerHolder: string; - PassingYardsCareerRecord: number; - PassingYardsGameHolderID: number; - PassingYardsGameHolder: string; - PassingYardsGameRecord: number; - PassingYardsSeasonHolderID: number; - PassingYardsSeasonHolder: string; - PassingYardsSeasonRecord: number; - RushingTDCareerHolderID: number; - RushingTDCareerHolder: string; - RushingTDCareerRecord: number; - RushingTDGameHolderID: number; - RushingTDGameHolder: string; - RushingTDGameRecord: number; - RushingTDSeasonHolderID: number; - RushingTDSeasonHolder: string; - RushingTDSeasonRecord: number; - RushingYardsCareerHolderID: number; - RushingYardsCareerHolder: string; - RushingYardsCareerRecord: number; - RushingYardsGameHolderID: number; - RushingYardsGameHolder: string; - RushingYardsGameRecord: number; - RushingYardsSeasonHolderID: number; - RushingYardsSeasonHolder: string; - RushingYardsSeasonRecord: number; - ReceivingTDCareerHolderID: number; - ReceivingTDCareerHolder: string; - ReceivingTDCareerRecord: number; - ReceivingTDGameHolderID: number; - ReceivingTDGameHolder: string; - ReceivingTDGameRecord: number; - ReceivingTDSeasonHolderID: number; - ReceivingTDSeasonHolder: string; - ReceivingTDSeasonRecord: number; - ReceivingYardsCareerHolderID: number; - ReceivingYardsCareerHolder: string; - ReceivingYardsCareerRecord: number; - ReceivingYardsGameHolderID: number; - ReceivingYardsGameHolder: string; - ReceivingYardsGameRecord: number; - ReceivingYardsSeasonHolderID: number; - ReceivingYardsSeasonHolder: string; - ReceivingYardsSeasonRecord: number; - ReceptionsCareerHolderID: number; - ReceptionsCareerHolder: string; - ReceptionsCareerRecord: number; - ReceptionsGameHolderID: number; - ReceptionsGameHolder: string; - ReceptionsGameRecord: number; - ReceptionsSeasonHolderID: number; - ReceptionsSeasonHolder: string; - ReceptionsSeasonRecord: number; - InterceptionsCareerHolderID: number; - InterceptionsCareerHolder: string; - InterceptionsCareerRecord: number; - InterceptionsGameHolderID: number; - InterceptionsGameHolder: string; - InterceptionsGameRecord: number; - InterceptionsSeasonHolderID: number; - InterceptionsSeasonHolder: string; - InterceptionsSeasonRecord: number; - SacksCareerHolderID: number; - SacksCareerHolder: string; - SacksCareerRecord: number; - SacksGameHolderID: number; - SacksGameHolder: string; - SacksGameRecord: number; - SacksSeasonHolderID: number; - SacksSeasonHolder: string; - SacksSeasonRecord: number; - TacklesCareerHolderID: number; - TacklesCareerHolder: string; - TacklesCareerRecord: number; - TacklesGameHolderID: number; - TacklesGameHolder: string; - TacklesGameRecord: number; - TacklesSeasonHolderID: number; - TacklesSeasonHolder: string; - TacklesSeasonRecord: 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.TeamID = source["TeamID"]; - this.PassingTDCareerHolderID = source["PassingTDCareerHolderID"]; - this.PassingTDCareerHolder = source["PassingTDCareerHolder"]; - this.PassingTDCareerRecord = source["PassingTDCareerRecord"]; - this.PassingTDGameHolderID = source["PassingTDGameHolderID"]; - this.PassingTDGameHolder = source["PassingTDGameHolder"]; - this.PassingTDGameRecord = source["PassingTDGameRecord"]; - this.PassingTDSeasonHolderID = source["PassingTDSeasonHolderID"]; - this.PassingTDSeasonHolder = source["PassingTDSeasonHolder"]; - this.PassingTDSeasonRecord = source["PassingTDSeasonRecord"]; - this.PassingYardsCareerHolderID = source["PassingYardsCareerHolderID"]; - this.PassingYardsCareerHolder = source["PassingYardsCareerHolder"]; - this.PassingYardsCareerRecord = source["PassingYardsCareerRecord"]; - this.PassingYardsGameHolderID = source["PassingYardsGameHolderID"]; - this.PassingYardsGameHolder = source["PassingYardsGameHolder"]; - this.PassingYardsGameRecord = source["PassingYardsGameRecord"]; - this.PassingYardsSeasonHolderID = source["PassingYardsSeasonHolderID"]; - this.PassingYardsSeasonHolder = source["PassingYardsSeasonHolder"]; - this.PassingYardsSeasonRecord = source["PassingYardsSeasonRecord"]; - this.RushingTDCareerHolderID = source["RushingTDCareerHolderID"]; - this.RushingTDCareerHolder = source["RushingTDCareerHolder"]; - this.RushingTDCareerRecord = source["RushingTDCareerRecord"]; - this.RushingTDGameHolderID = source["RushingTDGameHolderID"]; - this.RushingTDGameHolder = source["RushingTDGameHolder"]; - this.RushingTDGameRecord = source["RushingTDGameRecord"]; - this.RushingTDSeasonHolderID = source["RushingTDSeasonHolderID"]; - this.RushingTDSeasonHolder = source["RushingTDSeasonHolder"]; - this.RushingTDSeasonRecord = source["RushingTDSeasonRecord"]; - this.RushingYardsCareerHolderID = source["RushingYardsCareerHolderID"]; - this.RushingYardsCareerHolder = source["RushingYardsCareerHolder"]; - this.RushingYardsCareerRecord = source["RushingYardsCareerRecord"]; - this.RushingYardsGameHolderID = source["RushingYardsGameHolderID"]; - this.RushingYardsGameHolder = source["RushingYardsGameHolder"]; - this.RushingYardsGameRecord = source["RushingYardsGameRecord"]; - this.RushingYardsSeasonHolderID = source["RushingYardsSeasonHolderID"]; - this.RushingYardsSeasonHolder = source["RushingYardsSeasonHolder"]; - this.RushingYardsSeasonRecord = source["RushingYardsSeasonRecord"]; - this.ReceivingTDCareerHolderID = source["ReceivingTDCareerHolderID"]; - this.ReceivingTDCareerHolder = source["ReceivingTDCareerHolder"]; - this.ReceivingTDCareerRecord = source["ReceivingTDCareerRecord"]; - this.ReceivingTDGameHolderID = source["ReceivingTDGameHolderID"]; - this.ReceivingTDGameHolder = source["ReceivingTDGameHolder"]; - this.ReceivingTDGameRecord = source["ReceivingTDGameRecord"]; - this.ReceivingTDSeasonHolderID = source["ReceivingTDSeasonHolderID"]; - this.ReceivingTDSeasonHolder = source["ReceivingTDSeasonHolder"]; - this.ReceivingTDSeasonRecord = source["ReceivingTDSeasonRecord"]; - this.ReceivingYardsCareerHolderID = source["ReceivingYardsCareerHolderID"]; - this.ReceivingYardsCareerHolder = source["ReceivingYardsCareerHolder"]; - this.ReceivingYardsCareerRecord = source["ReceivingYardsCareerRecord"]; - this.ReceivingYardsGameHolderID = source["ReceivingYardsGameHolderID"]; - this.ReceivingYardsGameHolder = source["ReceivingYardsGameHolder"]; - this.ReceivingYardsGameRecord = source["ReceivingYardsGameRecord"]; - this.ReceivingYardsSeasonHolderID = source["ReceivingYardsSeasonHolderID"]; - this.ReceivingYardsSeasonHolder = source["ReceivingYardsSeasonHolder"]; - this.ReceivingYardsSeasonRecord = source["ReceivingYardsSeasonRecord"]; - this.ReceptionsCareerHolderID = source["ReceptionsCareerHolderID"]; - this.ReceptionsCareerHolder = source["ReceptionsCareerHolder"]; - this.ReceptionsCareerRecord = source["ReceptionsCareerRecord"]; - this.ReceptionsGameHolderID = source["ReceptionsGameHolderID"]; - this.ReceptionsGameHolder = source["ReceptionsGameHolder"]; - this.ReceptionsGameRecord = source["ReceptionsGameRecord"]; - this.ReceptionsSeasonHolderID = source["ReceptionsSeasonHolderID"]; - this.ReceptionsSeasonHolder = source["ReceptionsSeasonHolder"]; - this.ReceptionsSeasonRecord = source["ReceptionsSeasonRecord"]; - this.InterceptionsCareerHolderID = source["InterceptionsCareerHolderID"]; - this.InterceptionsCareerHolder = source["InterceptionsCareerHolder"]; - this.InterceptionsCareerRecord = source["InterceptionsCareerRecord"]; - this.InterceptionsGameHolderID = source["InterceptionsGameHolderID"]; - this.InterceptionsGameHolder = source["InterceptionsGameHolder"]; - this.InterceptionsGameRecord = source["InterceptionsGameRecord"]; - this.InterceptionsSeasonHolderID = source["InterceptionsSeasonHolderID"]; - this.InterceptionsSeasonHolder = source["InterceptionsSeasonHolder"]; - this.InterceptionsSeasonRecord = source["InterceptionsSeasonRecord"]; - this.SacksCareerHolderID = source["SacksCareerHolderID"]; - this.SacksCareerHolder = source["SacksCareerHolder"]; - this.SacksCareerRecord = source["SacksCareerRecord"]; - this.SacksGameHolderID = source["SacksGameHolderID"]; - this.SacksGameHolder = source["SacksGameHolder"]; - this.SacksGameRecord = source["SacksGameRecord"]; - this.SacksSeasonHolderID = source["SacksSeasonHolderID"]; - this.SacksSeasonHolder = source["SacksSeasonHolder"]; - this.SacksSeasonRecord = source["SacksSeasonRecord"]; - this.TacklesCareerHolderID = source["TacklesCareerHolderID"]; - this.TacklesCareerHolder = source["TacklesCareerHolder"]; - this.TacklesCareerRecord = source["TacklesCareerRecord"]; - this.TacklesGameHolderID = source["TacklesGameHolderID"]; - this.TacklesGameHolder = source["TacklesGameHolder"]; - this.TacklesGameRecord = source["TacklesGameRecord"]; - this.TacklesSeasonHolderID = source["TacklesSeasonHolderID"]; - this.TacklesSeasonHolder = source["TacklesSeasonHolder"]; - this.TacklesSeasonRecord = source["TacklesSeasonRecord"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + PassingTDCareerHolderID: number; + PassingTDCareerHolder: string; + PassingTDCareerRecord: number; + PassingTDGameHolderID: number; + PassingTDGameHolder: string; + PassingTDGameRecord: number; + PassingTDSeasonHolderID: number; + PassingTDSeasonHolder: string; + PassingTDSeasonRecord: number; + PassingYardsCareerHolderID: number; + PassingYardsCareerHolder: string; + PassingYardsCareerRecord: number; + PassingYardsGameHolderID: number; + PassingYardsGameHolder: string; + PassingYardsGameRecord: number; + PassingYardsSeasonHolderID: number; + PassingYardsSeasonHolder: string; + PassingYardsSeasonRecord: number; + RushingTDCareerHolderID: number; + RushingTDCareerHolder: string; + RushingTDCareerRecord: number; + RushingTDGameHolderID: number; + RushingTDGameHolder: string; + RushingTDGameRecord: number; + RushingTDSeasonHolderID: number; + RushingTDSeasonHolder: string; + RushingTDSeasonRecord: number; + RushingYardsCareerHolderID: number; + RushingYardsCareerHolder: string; + RushingYardsCareerRecord: number; + RushingYardsGameHolderID: number; + RushingYardsGameHolder: string; + RushingYardsGameRecord: number; + RushingYardsSeasonHolderID: number; + RushingYardsSeasonHolder: string; + RushingYardsSeasonRecord: number; + ReceivingTDCareerHolderID: number; + ReceivingTDCareerHolder: string; + ReceivingTDCareerRecord: number; + ReceivingTDGameHolderID: number; + ReceivingTDGameHolder: string; + ReceivingTDGameRecord: number; + ReceivingTDSeasonHolderID: number; + ReceivingTDSeasonHolder: string; + ReceivingTDSeasonRecord: number; + ReceivingYardsCareerHolderID: number; + ReceivingYardsCareerHolder: string; + ReceivingYardsCareerRecord: number; + ReceivingYardsGameHolderID: number; + ReceivingYardsGameHolder: string; + ReceivingYardsGameRecord: number; + ReceivingYardsSeasonHolderID: number; + ReceivingYardsSeasonHolder: string; + ReceivingYardsSeasonRecord: number; + ReceptionsCareerHolderID: number; + ReceptionsCareerHolder: string; + ReceptionsCareerRecord: number; + ReceptionsGameHolderID: number; + ReceptionsGameHolder: string; + ReceptionsGameRecord: number; + ReceptionsSeasonHolderID: number; + ReceptionsSeasonHolder: string; + ReceptionsSeasonRecord: number; + InterceptionsCareerHolderID: number; + InterceptionsCareerHolder: string; + InterceptionsCareerRecord: number; + InterceptionsGameHolderID: number; + InterceptionsGameHolder: string; + InterceptionsGameRecord: number; + InterceptionsSeasonHolderID: number; + InterceptionsSeasonHolder: string; + InterceptionsSeasonRecord: number; + SacksCareerHolderID: number; + SacksCareerHolder: string; + SacksCareerRecord: number; + SacksGameHolderID: number; + SacksGameHolder: string; + SacksGameRecord: number; + SacksSeasonHolderID: number; + SacksSeasonHolder: string; + SacksSeasonRecord: number; + TacklesCareerHolderID: number; + TacklesCareerHolder: string; + TacklesCareerRecord: number; + TacklesGameHolderID: number; + TacklesGameHolder: string; + TacklesGameRecord: number; + TacklesSeasonHolderID: number; + TacklesSeasonHolder: string; + TacklesSeasonRecord: 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.TeamID = source["TeamID"]; + this.PassingTDCareerHolderID = source["PassingTDCareerHolderID"]; + this.PassingTDCareerHolder = source["PassingTDCareerHolder"]; + this.PassingTDCareerRecord = source["PassingTDCareerRecord"]; + this.PassingTDGameHolderID = source["PassingTDGameHolderID"]; + this.PassingTDGameHolder = source["PassingTDGameHolder"]; + this.PassingTDGameRecord = source["PassingTDGameRecord"]; + this.PassingTDSeasonHolderID = source["PassingTDSeasonHolderID"]; + this.PassingTDSeasonHolder = source["PassingTDSeasonHolder"]; + this.PassingTDSeasonRecord = source["PassingTDSeasonRecord"]; + this.PassingYardsCareerHolderID = source["PassingYardsCareerHolderID"]; + this.PassingYardsCareerHolder = source["PassingYardsCareerHolder"]; + this.PassingYardsCareerRecord = source["PassingYardsCareerRecord"]; + this.PassingYardsGameHolderID = source["PassingYardsGameHolderID"]; + this.PassingYardsGameHolder = source["PassingYardsGameHolder"]; + this.PassingYardsGameRecord = source["PassingYardsGameRecord"]; + this.PassingYardsSeasonHolderID = source["PassingYardsSeasonHolderID"]; + this.PassingYardsSeasonHolder = source["PassingYardsSeasonHolder"]; + this.PassingYardsSeasonRecord = source["PassingYardsSeasonRecord"]; + this.RushingTDCareerHolderID = source["RushingTDCareerHolderID"]; + this.RushingTDCareerHolder = source["RushingTDCareerHolder"]; + this.RushingTDCareerRecord = source["RushingTDCareerRecord"]; + this.RushingTDGameHolderID = source["RushingTDGameHolderID"]; + this.RushingTDGameHolder = source["RushingTDGameHolder"]; + this.RushingTDGameRecord = source["RushingTDGameRecord"]; + this.RushingTDSeasonHolderID = source["RushingTDSeasonHolderID"]; + this.RushingTDSeasonHolder = source["RushingTDSeasonHolder"]; + this.RushingTDSeasonRecord = source["RushingTDSeasonRecord"]; + this.RushingYardsCareerHolderID = source["RushingYardsCareerHolderID"]; + this.RushingYardsCareerHolder = source["RushingYardsCareerHolder"]; + this.RushingYardsCareerRecord = source["RushingYardsCareerRecord"]; + this.RushingYardsGameHolderID = source["RushingYardsGameHolderID"]; + this.RushingYardsGameHolder = source["RushingYardsGameHolder"]; + this.RushingYardsGameRecord = source["RushingYardsGameRecord"]; + this.RushingYardsSeasonHolderID = source["RushingYardsSeasonHolderID"]; + this.RushingYardsSeasonHolder = source["RushingYardsSeasonHolder"]; + this.RushingYardsSeasonRecord = source["RushingYardsSeasonRecord"]; + this.ReceivingTDCareerHolderID = source["ReceivingTDCareerHolderID"]; + this.ReceivingTDCareerHolder = source["ReceivingTDCareerHolder"]; + this.ReceivingTDCareerRecord = source["ReceivingTDCareerRecord"]; + this.ReceivingTDGameHolderID = source["ReceivingTDGameHolderID"]; + this.ReceivingTDGameHolder = source["ReceivingTDGameHolder"]; + this.ReceivingTDGameRecord = source["ReceivingTDGameRecord"]; + this.ReceivingTDSeasonHolderID = source["ReceivingTDSeasonHolderID"]; + this.ReceivingTDSeasonHolder = source["ReceivingTDSeasonHolder"]; + this.ReceivingTDSeasonRecord = source["ReceivingTDSeasonRecord"]; + this.ReceivingYardsCareerHolderID = source["ReceivingYardsCareerHolderID"]; + this.ReceivingYardsCareerHolder = source["ReceivingYardsCareerHolder"]; + this.ReceivingYardsCareerRecord = source["ReceivingYardsCareerRecord"]; + this.ReceivingYardsGameHolderID = source["ReceivingYardsGameHolderID"]; + this.ReceivingYardsGameHolder = source["ReceivingYardsGameHolder"]; + this.ReceivingYardsGameRecord = source["ReceivingYardsGameRecord"]; + this.ReceivingYardsSeasonHolderID = source["ReceivingYardsSeasonHolderID"]; + this.ReceivingYardsSeasonHolder = source["ReceivingYardsSeasonHolder"]; + this.ReceivingYardsSeasonRecord = source["ReceivingYardsSeasonRecord"]; + this.ReceptionsCareerHolderID = source["ReceptionsCareerHolderID"]; + this.ReceptionsCareerHolder = source["ReceptionsCareerHolder"]; + this.ReceptionsCareerRecord = source["ReceptionsCareerRecord"]; + this.ReceptionsGameHolderID = source["ReceptionsGameHolderID"]; + this.ReceptionsGameHolder = source["ReceptionsGameHolder"]; + this.ReceptionsGameRecord = source["ReceptionsGameRecord"]; + this.ReceptionsSeasonHolderID = source["ReceptionsSeasonHolderID"]; + this.ReceptionsSeasonHolder = source["ReceptionsSeasonHolder"]; + this.ReceptionsSeasonRecord = source["ReceptionsSeasonRecord"]; + this.InterceptionsCareerHolderID = source["InterceptionsCareerHolderID"]; + this.InterceptionsCareerHolder = source["InterceptionsCareerHolder"]; + this.InterceptionsCareerRecord = source["InterceptionsCareerRecord"]; + this.InterceptionsGameHolderID = source["InterceptionsGameHolderID"]; + this.InterceptionsGameHolder = source["InterceptionsGameHolder"]; + this.InterceptionsGameRecord = source["InterceptionsGameRecord"]; + this.InterceptionsSeasonHolderID = source["InterceptionsSeasonHolderID"]; + this.InterceptionsSeasonHolder = source["InterceptionsSeasonHolder"]; + this.InterceptionsSeasonRecord = source["InterceptionsSeasonRecord"]; + this.SacksCareerHolderID = source["SacksCareerHolderID"]; + this.SacksCareerHolder = source["SacksCareerHolder"]; + this.SacksCareerRecord = source["SacksCareerRecord"]; + this.SacksGameHolderID = source["SacksGameHolderID"]; + this.SacksGameHolder = source["SacksGameHolder"]; + this.SacksGameRecord = source["SacksGameRecord"]; + this.SacksSeasonHolderID = source["SacksSeasonHolderID"]; + this.SacksSeasonHolder = source["SacksSeasonHolder"]; + this.SacksSeasonRecord = source["SacksSeasonRecord"]; + this.TacklesCareerHolderID = source["TacklesCareerHolderID"]; + this.TacklesCareerHolder = source["TacklesCareerHolder"]; + this.TacklesCareerRecord = source["TacklesCareerRecord"]; + this.TacklesGameHolderID = source["TacklesGameHolderID"]; + this.TacklesGameHolder = source["TacklesGameHolder"]; + this.TacklesGameRecord = source["TacklesGameRecord"]; + this.TacklesSeasonHolderID = source["TacklesSeasonHolderID"]; + this.TacklesSeasonHolder = source["TacklesSeasonHolder"]; + this.TacklesSeasonRecord = source["TacklesSeasonRecord"]; + } + + 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 DeletedAt { - Time: Time; - Valid: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Time = this.convertValues(source["Time"], Time); - this.Valid = source["Valid"]; - } - - 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; - } + Time: Time; + Valid: boolean; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.Time = this.convertValues(source["Time"], Time); + this.Valid = source["Valid"]; + } + + 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 CollegeTeamSeasonStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - SeasonID: number; - Year: number; - PointsScored: number; - PointsAgainst: number; - TwoPointTries: number; - TwoPointSucceed: number; - PassingYards: number; - PassingAttempts: number; - PassingCompletions: number; - LongestPass: number; - PassingTouchdowns: number; - PassingInterceptions: number; - QBRating: number; - QBSacks: number; - RushAttempts: number; - RushingYards: number; - RushingYardsPerAttempt: number; - LongestRush: number; - RushingTouchdowns: number; - RushingFumbles: number; - ReceivingTargets: number; - ReceivingCatches: number; - ReceivingYards: number; - YardsPerCatch: number; - ReceivingTouchdowns: number; - ReceivingFumbles: number; - PassingYardsAllowed: number; - PassingTDsAllowed: number; - PassingCompletionsAllowed: number; - RushingYardsAllowed: number; - RushingTDsAllowed: number; - RushingYardsPerAttemptAllowed: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - DefensiveSacks: number; - ForcedFumbles: number; - FumblesRecovered: number; - DefensiveInterceptions: number; - TurnoverYards: number; - DefensiveTDs: number; - Safeties: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - ExtraPointPercentage: number; - FieldGoalsMade: number; - FieldGoalsAttempted: number; - FieldGoalsPercentage: number; - LongestFieldGoal: number; - KickoffTBs: number; - PuntTBs: number; - Punts: number; - PuntYards: number; - PuntsInside20: number; - PuntAverage: number; - Inside20YardLine: number; - KickReturnYards: number; - KickReturnTDs: number; - PuntReturnYards: number; - PuntReturnTDs: number; - OffensivePenalties: number; - DefensivePenalties: number; - OffPenaltyYards: number; - DefPenaltyYards: number; - Score1Q: number; - Score2Q: number; - Score3Q: number; - Score4Q: number; - Score5Q: number; - Score6Q: number; - Score7Q: number; - ScoreOT: number; - OffensiveScheme: string; - DefensiveScheme: string; - OffensiveSnaps: number; - DefensiveSnaps: number; - SpecialTeamSnaps: number; - GameType: number; - RevealResults: boolean; - GamesPlayed: number; - TotalOffensiveYards: number; - TotalYardsAllowed: number; - Fumbles: number; - QBRating: number; - Tackles: number; - Turnovers: 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.TeamID = source["TeamID"]; - this.SeasonID = source["SeasonID"]; - this.Year = source["Year"]; - this.PointsScored = source["PointsScored"]; - this.PointsAgainst = source["PointsAgainst"]; - this.TwoPointTries = source["TwoPointTries"]; - this.TwoPointSucceed = source["TwoPointSucceed"]; - this.PassingYards = source["PassingYards"]; - this.PassingAttempts = source["PassingAttempts"]; - this.PassingCompletions = source["PassingCompletions"]; - this.LongestPass = source["LongestPass"]; - this.PassingTouchdowns = source["PassingTouchdowns"]; - this.PassingInterceptions = source["PassingInterceptions"]; - this.QBRating = source["QBRating"]; - this.QBSacks = source["QBSacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; - this.LongestRush = source["LongestRush"]; - this.RushingTouchdowns = source["RushingTouchdowns"]; - this.RushingFumbles = source["RushingFumbles"]; - this.ReceivingTargets = source["ReceivingTargets"]; - this.ReceivingCatches = source["ReceivingCatches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.YardsPerCatch = source["YardsPerCatch"]; - this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; - this.ReceivingFumbles = source["ReceivingFumbles"]; - this.PassingYardsAllowed = source["PassingYardsAllowed"]; - this.PassingTDsAllowed = source["PassingTDsAllowed"]; - this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; - this.RushingYardsAllowed = source["RushingYardsAllowed"]; - this.RushingTDsAllowed = source["RushingTDsAllowed"]; - this.RushingYardsPerAttemptAllowed = source["RushingYardsPerAttemptAllowed"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.DefensiveSacks = source["DefensiveSacks"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.FumblesRecovered = source["FumblesRecovered"]; - this.DefensiveInterceptions = source["DefensiveInterceptions"]; - this.TurnoverYards = source["TurnoverYards"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.Safeties = source["Safeties"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.ExtraPointPercentage = source["ExtraPointPercentage"]; - this.FieldGoalsMade = source["FieldGoalsMade"]; - this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; - this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; - this.LongestFieldGoal = source["LongestFieldGoal"]; - this.KickoffTBs = source["KickoffTBs"]; - this.PuntTBs = source["PuntTBs"]; - this.Punts = source["Punts"]; - this.PuntYards = source["PuntYards"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.PuntAverage = source["PuntAverage"]; - this.Inside20YardLine = source["Inside20YardLine"]; - this.KickReturnYards = source["KickReturnYards"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.OffensivePenalties = source["OffensivePenalties"]; - this.DefensivePenalties = source["DefensivePenalties"]; - this.OffPenaltyYards = source["OffPenaltyYards"]; - this.DefPenaltyYards = source["DefPenaltyYards"]; - this.Score1Q = source["Score1Q"]; - this.Score2Q = source["Score2Q"]; - this.Score3Q = source["Score3Q"]; - this.Score4Q = source["Score4Q"]; - this.Score5Q = source["Score5Q"]; - this.Score6Q = source["Score6Q"]; - this.Score7Q = source["Score7Q"]; - this.ScoreOT = source["ScoreOT"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.OffensiveSnaps = source["OffensiveSnaps"]; - this.DefensiveSnaps = source["DefensiveSnaps"]; - this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; - this.GameType = source["GameType"]; - this.RevealResults = source["RevealResults"]; - this.GamesPlayed = source["GamesPlayed"]; - this.TotalOffensiveYards = source["TotalOffensiveYards"]; - this.TotalYardsAllowed = source["TotalYardsAllowed"]; - this.Fumbles = source["Fumbles"]; - this.QBRating = source["QBRating"]; - this.Tackles = source["Tackles"]; - this.Turnovers = source["Turnovers"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + TeamID: number; + SeasonID: number; + Year: number; + PointsScored: number; + PointsAgainst: number; + TwoPointTries: number; + TwoPointSucceed: number; + PassingYards: number; + PassingAttempts: number; + PassingCompletions: number; + LongestPass: number; + PassingTouchdowns: number; + PassingInterceptions: number; + QBRating: number; + QBSacks: number; + RushAttempts: number; + RushingYards: number; + RushingYardsPerAttempt: number; + LongestRush: number; + RushingTouchdowns: number; + RushingFumbles: number; + ReceivingTargets: number; + ReceivingCatches: number; + ReceivingYards: number; + YardsPerCatch: number; + ReceivingTouchdowns: number; + ReceivingFumbles: number; + PassingYardsAllowed: number; + PassingTDsAllowed: number; + PassingCompletionsAllowed: number; + RushingYardsAllowed: number; + RushingTDsAllowed: number; + RushingYardsPerAttemptAllowed: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + DefensiveSacks: number; + ForcedFumbles: number; + FumblesRecovered: number; + DefensiveInterceptions: number; + TurnoverYards: number; + DefensiveTDs: number; + Safeties: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + ExtraPointPercentage: number; + FieldGoalsMade: number; + FieldGoalsAttempted: number; + FieldGoalsPercentage: number; + LongestFieldGoal: number; + KickoffTBs: number; + PuntTBs: number; + Punts: number; + PuntYards: number; + PuntsInside20: number; + PuntAverage: number; + Inside20YardLine: number; + KickReturnYards: number; + KickReturnTDs: number; + PuntReturnYards: number; + PuntReturnTDs: number; + OffensivePenalties: number; + DefensivePenalties: number; + OffPenaltyYards: number; + DefPenaltyYards: number; + Score1Q: number; + Score2Q: number; + Score3Q: number; + Score4Q: number; + Score5Q: number; + Score6Q: number; + Score7Q: number; + ScoreOT: number; + OffensiveScheme: string; + DefensiveScheme: string; + OffensiveSnaps: number; + DefensiveSnaps: number; + SpecialTeamSnaps: number; + GameType: number; + RevealResults: boolean; + GamesPlayed: number; + TotalOffensiveYards: number; + TotalYardsAllowed: number; + Fumbles: number; + QBRating: number; + Tackles: number; + Turnovers: 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.TeamID = source["TeamID"]; + this.SeasonID = source["SeasonID"]; + this.Year = source["Year"]; + this.PointsScored = source["PointsScored"]; + this.PointsAgainst = source["PointsAgainst"]; + this.TwoPointTries = source["TwoPointTries"]; + this.TwoPointSucceed = source["TwoPointSucceed"]; + this.PassingYards = source["PassingYards"]; + this.PassingAttempts = source["PassingAttempts"]; + this.PassingCompletions = source["PassingCompletions"]; + this.LongestPass = source["LongestPass"]; + this.PassingTouchdowns = source["PassingTouchdowns"]; + this.PassingInterceptions = source["PassingInterceptions"]; + this.QBRating = source["QBRating"]; + this.QBSacks = source["QBSacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; + this.LongestRush = source["LongestRush"]; + this.RushingTouchdowns = source["RushingTouchdowns"]; + this.RushingFumbles = source["RushingFumbles"]; + this.ReceivingTargets = source["ReceivingTargets"]; + this.ReceivingCatches = source["ReceivingCatches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.YardsPerCatch = source["YardsPerCatch"]; + this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; + this.ReceivingFumbles = source["ReceivingFumbles"]; + this.PassingYardsAllowed = source["PassingYardsAllowed"]; + this.PassingTDsAllowed = source["PassingTDsAllowed"]; + this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; + this.RushingYardsAllowed = source["RushingYardsAllowed"]; + this.RushingTDsAllowed = source["RushingTDsAllowed"]; + this.RushingYardsPerAttemptAllowed = + source["RushingYardsPerAttemptAllowed"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.DefensiveSacks = source["DefensiveSacks"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.FumblesRecovered = source["FumblesRecovered"]; + this.DefensiveInterceptions = source["DefensiveInterceptions"]; + this.TurnoverYards = source["TurnoverYards"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.Safeties = source["Safeties"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.ExtraPointPercentage = source["ExtraPointPercentage"]; + this.FieldGoalsMade = source["FieldGoalsMade"]; + this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; + this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; + this.LongestFieldGoal = source["LongestFieldGoal"]; + this.KickoffTBs = source["KickoffTBs"]; + this.PuntTBs = source["PuntTBs"]; + this.Punts = source["Punts"]; + this.PuntYards = source["PuntYards"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.PuntAverage = source["PuntAverage"]; + this.Inside20YardLine = source["Inside20YardLine"]; + this.KickReturnYards = source["KickReturnYards"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.OffensivePenalties = source["OffensivePenalties"]; + this.DefensivePenalties = source["DefensivePenalties"]; + this.OffPenaltyYards = source["OffPenaltyYards"]; + this.DefPenaltyYards = source["DefPenaltyYards"]; + this.Score1Q = source["Score1Q"]; + this.Score2Q = source["Score2Q"]; + this.Score3Q = source["Score3Q"]; + this.Score4Q = source["Score4Q"]; + this.Score5Q = source["Score5Q"]; + this.Score6Q = source["Score6Q"]; + this.Score7Q = source["Score7Q"]; + this.ScoreOT = source["ScoreOT"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.OffensiveSnaps = source["OffensiveSnaps"]; + this.DefensiveSnaps = source["DefensiveSnaps"]; + this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; + this.GameType = source["GameType"]; + this.RevealResults = source["RevealResults"]; + this.GamesPlayed = source["GamesPlayed"]; + this.TotalOffensiveYards = source["TotalOffensiveYards"]; + this.TotalYardsAllowed = source["TotalYardsAllowed"]; + this.Fumbles = source["Fumbles"]; + this.QBRating = source["QBRating"]; + this.Tackles = source["Tackles"]; + this.Turnovers = source["Turnovers"]; + } + + 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 CollegeTeamStats { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - GameID: number; - WeekID: number; - SeasonID: number; - OpposingTeam: string; - PointsScored: number; - PointsAgainst: number; - TwoPointTries: number; - TwoPointSucceed: number; - PassingYards: number; - PassingAttempts: number; - PassingCompletions: number; - LongestPass: number; - PassingTouchdowns: number; - PassingInterceptions: number; - QBRating: number; - QBSacks: number; - RushAttempts: number; - RushingYards: number; - RushingYardsPerAttempt: number; - LongestRush: number; - RushingTouchdowns: number; - RushingFumbles: number; - ReceivingTargets: number; - ReceivingCatches: number; - ReceivingYards: number; - YardsPerCatch: number; - ReceivingTouchdowns: number; - ReceivingFumbles: number; - PassingYardsAllowed: number; - PassingTDsAllowed: number; - PassingCompletionsAllowed: number; - RushingYardsAllowed: number; - RushingTDsAllowed: number; - RushingYardsPerAttemptAllowed: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - DefensiveSacks: number; - ForcedFumbles: number; - FumblesRecovered: number; - DefensiveInterceptions: number; - TurnoverYards: number; - DefensiveTDs: number; - Safeties: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - ExtraPointPercentage: number; - FieldGoalsMade: number; - FieldGoalsAttempted: number; - FieldGoalsPercentage: number; - LongestFieldGoal: number; - KickoffTBs: number; - PuntTBs: number; - Punts: number; - PuntYards: number; - PuntsInside20: number; - PuntAverage: number; - Inside20YardLine: number; - KickReturnYards: number; - KickReturnTDs: number; - PuntReturnYards: number; - PuntReturnTDs: number; - OffensivePenalties: number; - DefensivePenalties: number; - OffPenaltyYards: number; - DefPenaltyYards: number; - Score1Q: number; - Score2Q: number; - Score3Q: number; - Score4Q: number; - Score5Q: number; - Score6Q: number; - Score7Q: number; - ScoreOT: number; - OffensiveScheme: string; - DefensiveScheme: string; - OffensiveSnaps: number; - DefensiveSnaps: number; - SpecialTeamSnaps: number; - GameType: number; - RevealResults: 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.TeamID = source["TeamID"]; - this.GameID = source["GameID"]; - this.WeekID = source["WeekID"]; - this.SeasonID = source["SeasonID"]; - this.OpposingTeam = source["OpposingTeam"]; - this.PointsScored = source["PointsScored"]; - this.PointsAgainst = source["PointsAgainst"]; - this.TwoPointTries = source["TwoPointTries"]; - this.TwoPointSucceed = source["TwoPointSucceed"]; - this.PassingYards = source["PassingYards"]; - this.PassingAttempts = source["PassingAttempts"]; - this.PassingCompletions = source["PassingCompletions"]; - this.LongestPass = source["LongestPass"]; - this.PassingTouchdowns = source["PassingTouchdowns"]; - this.PassingInterceptions = source["PassingInterceptions"]; - this.QBRating = source["QBRating"]; - this.QBSacks = source["QBSacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; - this.LongestRush = source["LongestRush"]; - this.RushingTouchdowns = source["RushingTouchdowns"]; - this.RushingFumbles = source["RushingFumbles"]; - this.ReceivingTargets = source["ReceivingTargets"]; - this.ReceivingCatches = source["ReceivingCatches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.YardsPerCatch = source["YardsPerCatch"]; - this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; - this.ReceivingFumbles = source["ReceivingFumbles"]; - this.PassingYardsAllowed = source["PassingYardsAllowed"]; - this.PassingTDsAllowed = source["PassingTDsAllowed"]; - this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; - this.RushingYardsAllowed = source["RushingYardsAllowed"]; - this.RushingTDsAllowed = source["RushingTDsAllowed"]; - this.RushingYardsPerAttemptAllowed = source["RushingYardsPerAttemptAllowed"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.DefensiveSacks = source["DefensiveSacks"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.FumblesRecovered = source["FumblesRecovered"]; - this.DefensiveInterceptions = source["DefensiveInterceptions"]; - this.TurnoverYards = source["TurnoverYards"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.Safeties = source["Safeties"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.ExtraPointPercentage = source["ExtraPointPercentage"]; - this.FieldGoalsMade = source["FieldGoalsMade"]; - this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; - this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; - this.LongestFieldGoal = source["LongestFieldGoal"]; - this.KickoffTBs = source["KickoffTBs"]; - this.PuntTBs = source["PuntTBs"]; - this.Punts = source["Punts"]; - this.PuntYards = source["PuntYards"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.PuntAverage = source["PuntAverage"]; - this.Inside20YardLine = source["Inside20YardLine"]; - this.KickReturnYards = source["KickReturnYards"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.OffensivePenalties = source["OffensivePenalties"]; - this.DefensivePenalties = source["DefensivePenalties"]; - this.OffPenaltyYards = source["OffPenaltyYards"]; - this.DefPenaltyYards = source["DefPenaltyYards"]; - this.Score1Q = source["Score1Q"]; - this.Score2Q = source["Score2Q"]; - this.Score3Q = source["Score3Q"]; - this.Score4Q = source["Score4Q"]; - this.Score5Q = source["Score5Q"]; - this.Score6Q = source["Score6Q"]; - this.Score7Q = source["Score7Q"]; - this.ScoreOT = source["ScoreOT"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.OffensiveSnaps = source["OffensiveSnaps"]; - this.DefensiveSnaps = source["DefensiveSnaps"]; - this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; - this.GameType = source["GameType"]; - this.RevealResults = source["RevealResults"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + GameID: number; + WeekID: number; + SeasonID: number; + OpposingTeam: string; + PointsScored: number; + PointsAgainst: number; + TwoPointTries: number; + TwoPointSucceed: number; + PassingYards: number; + PassingAttempts: number; + PassingCompletions: number; + LongestPass: number; + PassingTouchdowns: number; + PassingInterceptions: number; + QBRating: number; + QBSacks: number; + RushAttempts: number; + RushingYards: number; + RushingYardsPerAttempt: number; + LongestRush: number; + RushingTouchdowns: number; + RushingFumbles: number; + ReceivingTargets: number; + ReceivingCatches: number; + ReceivingYards: number; + YardsPerCatch: number; + ReceivingTouchdowns: number; + ReceivingFumbles: number; + PassingYardsAllowed: number; + PassingTDsAllowed: number; + PassingCompletionsAllowed: number; + RushingYardsAllowed: number; + RushingTDsAllowed: number; + RushingYardsPerAttemptAllowed: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + DefensiveSacks: number; + ForcedFumbles: number; + FumblesRecovered: number; + DefensiveInterceptions: number; + TurnoverYards: number; + DefensiveTDs: number; + Safeties: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + ExtraPointPercentage: number; + FieldGoalsMade: number; + FieldGoalsAttempted: number; + FieldGoalsPercentage: number; + LongestFieldGoal: number; + KickoffTBs: number; + PuntTBs: number; + Punts: number; + PuntYards: number; + PuntsInside20: number; + PuntAverage: number; + Inside20YardLine: number; + KickReturnYards: number; + KickReturnTDs: number; + PuntReturnYards: number; + PuntReturnTDs: number; + OffensivePenalties: number; + DefensivePenalties: number; + OffPenaltyYards: number; + DefPenaltyYards: number; + Score1Q: number; + Score2Q: number; + Score3Q: number; + Score4Q: number; + Score5Q: number; + Score6Q: number; + Score7Q: number; + ScoreOT: number; + OffensiveScheme: string; + DefensiveScheme: string; + OffensiveSnaps: number; + DefensiveSnaps: number; + SpecialTeamSnaps: number; + GameType: number; + RevealResults: 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.TeamID = source["TeamID"]; + this.GameID = source["GameID"]; + this.WeekID = source["WeekID"]; + this.SeasonID = source["SeasonID"]; + this.OpposingTeam = source["OpposingTeam"]; + this.PointsScored = source["PointsScored"]; + this.PointsAgainst = source["PointsAgainst"]; + this.TwoPointTries = source["TwoPointTries"]; + this.TwoPointSucceed = source["TwoPointSucceed"]; + this.PassingYards = source["PassingYards"]; + this.PassingAttempts = source["PassingAttempts"]; + this.PassingCompletions = source["PassingCompletions"]; + this.LongestPass = source["LongestPass"]; + this.PassingTouchdowns = source["PassingTouchdowns"]; + this.PassingInterceptions = source["PassingInterceptions"]; + this.QBRating = source["QBRating"]; + this.QBSacks = source["QBSacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingYardsPerAttempt = source["RushingYardsPerAttempt"]; + this.LongestRush = source["LongestRush"]; + this.RushingTouchdowns = source["RushingTouchdowns"]; + this.RushingFumbles = source["RushingFumbles"]; + this.ReceivingTargets = source["ReceivingTargets"]; + this.ReceivingCatches = source["ReceivingCatches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.YardsPerCatch = source["YardsPerCatch"]; + this.ReceivingTouchdowns = source["ReceivingTouchdowns"]; + this.ReceivingFumbles = source["ReceivingFumbles"]; + this.PassingYardsAllowed = source["PassingYardsAllowed"]; + this.PassingTDsAllowed = source["PassingTDsAllowed"]; + this.PassingCompletionsAllowed = source["PassingCompletionsAllowed"]; + this.RushingYardsAllowed = source["RushingYardsAllowed"]; + this.RushingTDsAllowed = source["RushingTDsAllowed"]; + this.RushingYardsPerAttemptAllowed = + source["RushingYardsPerAttemptAllowed"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.DefensiveSacks = source["DefensiveSacks"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.FumblesRecovered = source["FumblesRecovered"]; + this.DefensiveInterceptions = source["DefensiveInterceptions"]; + this.TurnoverYards = source["TurnoverYards"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.Safeties = source["Safeties"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.ExtraPointPercentage = source["ExtraPointPercentage"]; + this.FieldGoalsMade = source["FieldGoalsMade"]; + this.FieldGoalsAttempted = source["FieldGoalsAttempted"]; + this.FieldGoalsPercentage = source["FieldGoalsPercentage"]; + this.LongestFieldGoal = source["LongestFieldGoal"]; + this.KickoffTBs = source["KickoffTBs"]; + this.PuntTBs = source["PuntTBs"]; + this.Punts = source["Punts"]; + this.PuntYards = source["PuntYards"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.PuntAverage = source["PuntAverage"]; + this.Inside20YardLine = source["Inside20YardLine"]; + this.KickReturnYards = source["KickReturnYards"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.OffensivePenalties = source["OffensivePenalties"]; + this.DefensivePenalties = source["DefensivePenalties"]; + this.OffPenaltyYards = source["OffPenaltyYards"]; + this.DefPenaltyYards = source["DefPenaltyYards"]; + this.Score1Q = source["Score1Q"]; + this.Score2Q = source["Score2Q"]; + this.Score3Q = source["Score3Q"]; + this.Score4Q = source["Score4Q"]; + this.Score5Q = source["Score5Q"]; + this.Score6Q = source["Score6Q"]; + this.Score7Q = source["Score7Q"]; + this.ScoreOT = source["ScoreOT"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.OffensiveSnaps = source["OffensiveSnaps"]; + this.DefensiveSnaps = source["DefensiveSnaps"]; + this.SpecialTeamSnaps = source["SpecialTeamSnaps"]; + this.GameType = source["GameType"]; + this.RevealResults = source["RevealResults"]; + } + + 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 ProfileAffinity { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - AffinityID: number; - ProfileID: number; - AffinityName: string; - IsApplicable: boolean; - IsDynamicAffinity: boolean; - IsCheckedWeekly: boolean; - IsCheckedSeasonal: boolean; - AffinityValue: 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.AffinityID = source["AffinityID"]; - this.ProfileID = source["ProfileID"]; - this.AffinityName = source["AffinityName"]; - this.IsApplicable = source["IsApplicable"]; - this.IsDynamicAffinity = source["IsDynamicAffinity"]; - this.IsCheckedWeekly = source["IsCheckedWeekly"]; - this.IsCheckedSeasonal = source["IsCheckedSeasonal"]; - this.AffinityValue = source["AffinityValue"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + AffinityID: number; + ProfileID: number; + AffinityName: string; + IsApplicable: boolean; + IsDynamicAffinity: boolean; + IsCheckedWeekly: boolean; + IsCheckedSeasonal: boolean; + AffinityValue: 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.AffinityID = source["AffinityID"]; + this.ProfileID = source["ProfileID"]; + this.AffinityName = source["AffinityName"]; + this.IsApplicable = source["IsApplicable"]; + this.IsDynamicAffinity = source["IsDynamicAffinity"]; + this.IsCheckedWeekly = source["IsCheckedWeekly"]; + this.IsCheckedSeasonal = source["IsCheckedSeasonal"]; + this.AffinityValue = source["AffinityValue"]; + } + + 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 Recruit { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - PlayerID: number; - TeamID: number; - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - HighSchool: string; - City: string; - State: string; - AffinityOne: string; - AffinityTwo: string; - IsSigned: boolean; - IsCustomCroot: boolean; - CustomCrootFor: string; - College: string; - OverallRank: number; - RivalsRank: number; - ESPNRank: number; - Rank247: number; - TopRankModifier: number; - RecruitingModifier: number; - RecruitingStatus: string; - RecruitPlayerProfiles: RecruitPlayerProfile[]; - - 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.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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.AffinityOne = source["AffinityOne"]; - this.AffinityTwo = source["AffinityTwo"]; - this.IsSigned = source["IsSigned"]; - this.IsCustomCroot = source["IsCustomCroot"]; - this.CustomCrootFor = source["CustomCrootFor"]; - this.College = source["College"]; - this.OverallRank = source["OverallRank"]; - this.RivalsRank = source["RivalsRank"]; - this.ESPNRank = source["ESPNRank"]; - this.Rank247 = source["Rank247"]; - this.TopRankModifier = source["TopRankModifier"]; - this.RecruitingModifier = source["RecruitingModifier"]; - this.RecruitingStatus = source["RecruitingStatus"]; - this.RecruitPlayerProfiles = this.convertValues(source["RecruitPlayerProfiles"], RecruitPlayerProfile); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + PlayerID: number; + TeamID: number; + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + HighSchool: string; + City: string; + State: string; + AffinityOne: string; + AffinityTwo: string; + IsSigned: boolean; + IsCustomCroot: boolean; + CustomCrootFor: string; + College: string; + OverallRank: number; + RivalsRank: number; + ESPNRank: number; + Rank247: number; + TopRankModifier: number; + RecruitingModifier: number; + RecruitingStatus: string; + RecruitPlayerProfiles: RecruitPlayerProfile[]; + + 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.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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.AffinityOne = source["AffinityOne"]; + this.AffinityTwo = source["AffinityTwo"]; + this.IsSigned = source["IsSigned"]; + this.IsCustomCroot = source["IsCustomCroot"]; + this.CustomCrootFor = source["CustomCrootFor"]; + this.College = source["College"]; + this.OverallRank = source["OverallRank"]; + this.RivalsRank = source["RivalsRank"]; + this.ESPNRank = source["ESPNRank"]; + this.Rank247 = source["Rank247"]; + this.TopRankModifier = source["TopRankModifier"]; + this.RecruitingModifier = source["RecruitingModifier"]; + this.RecruitingStatus = source["RecruitingStatus"]; + this.RecruitPlayerProfiles = this.convertValues( + source["RecruitPlayerProfiles"], + RecruitPlayerProfile, + ); + } + + 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 RecruitPlayerProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - SeasonID: number; - RecruitID: number; - ProfileID: number; - TotalPoints: number; - CurrentWeeksPoints: number; - PreviousWeekPoints: number; - SpendingCount: number; - RecruitingEfficiencyScore: number; - PreferenceModifier: number; - Scholarship: boolean; - ScholarshipRevoked: boolean; - AffinityOneEligible: boolean; - AffinityTwoEligible: boolean; - TeamAbbreviation: string; - Recruiter: string; - RemovedFromBoard: boolean; - IsSigned: boolean; - IsLocked: boolean; - CaughtCheating: boolean; - TeamReachedMax: boolean; - Recruit: Recruit; - - 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.SeasonID = source["SeasonID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviousWeekPoints = source["PreviousWeekPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; - this.PreferenceModifier = source["PreferenceModifier"]; - this.Scholarship = source["Scholarship"]; - this.ScholarshipRevoked = source["ScholarshipRevoked"]; - this.AffinityOneEligible = source["AffinityOneEligible"]; - this.AffinityTwoEligible = source["AffinityTwoEligible"]; - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.Recruiter = source["Recruiter"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.IsSigned = source["IsSigned"]; - this.IsLocked = source["IsLocked"]; - this.CaughtCheating = source["CaughtCheating"]; - this.TeamReachedMax = source["TeamReachedMax"]; - this.Recruit = this.convertValues(source["Recruit"], Recruit); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + SeasonID: number; + RecruitID: number; + ProfileID: number; + TotalPoints: number; + CurrentWeeksPoints: number; + PreviousWeekPoints: number; + SpendingCount: number; + RecruitingEfficiencyScore: number; + PreferenceModifier: number; + Scholarship: boolean; + ScholarshipRevoked: boolean; + AffinityOneEligible: boolean; + AffinityTwoEligible: boolean; + TeamAbbreviation: string; + Recruiter: string; + RemovedFromBoard: boolean; + IsSigned: boolean; + IsLocked: boolean; + CaughtCheating: boolean; + TeamReachedMax: boolean; + Recruit: Recruit; + + 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.SeasonID = source["SeasonID"]; + this.RecruitID = source["RecruitID"]; + this.ProfileID = source["ProfileID"]; + this.TotalPoints = source["TotalPoints"]; + this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; + this.PreviousWeekPoints = source["PreviousWeekPoints"]; + this.SpendingCount = source["SpendingCount"]; + this.RecruitingEfficiencyScore = source["RecruitingEfficiencyScore"]; + this.PreferenceModifier = source["PreferenceModifier"]; + this.Scholarship = source["Scholarship"]; + this.ScholarshipRevoked = source["ScholarshipRevoked"]; + this.AffinityOneEligible = source["AffinityOneEligible"]; + this.AffinityTwoEligible = source["AffinityTwoEligible"]; + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.Recruiter = source["Recruiter"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.IsSigned = source["IsSigned"]; + this.IsLocked = source["IsLocked"]; + this.CaughtCheating = source["CaughtCheating"]; + this.TeamReachedMax = source["TeamReachedMax"]; + this.Recruit = this.convertValues(source["Recruit"], Recruit); + } + + 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 RecruitingTeamProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - Team: string; - TeamAbbreviation: string; - State: string; - ScholarshipsAvailable: number; - WeeklyPoints: number; - SpentPoints: number; - TotalCommitments: number; - RecruitClassSize: number; - PortalReputation: number; - BaseEfficiencyScore: number; - RecruitingEfficiencyScore: number; - PreviousOverallWinPer: number; - PreviousConferenceWinPer: number; - CurrentOverallWinPer: number; - CurrentConferenceWinPer: number; - ESPNScore: number; - RivalsScore: number; - Rank247Score: number; - CompositeScore: number; - ThreeStars: number; - FourStars: number; - FiveStars: number; - RecruitingClassRank: number; - CaughtCheating: boolean; - IsFBS: boolean; - IsAI: boolean; - IsUserTeam: boolean; - AIBehavior: string; - AIQuality: string; - WeeksMissed: number; - BattlesWon: number; - BattlesLost: number; - AIMinThreshold: number; - AIMaxThreshold: number; - AIStarMin: number; - AIStarMax: number; - AIAutoOfferscholarships: boolean; - OffensiveScheme: string; - DefensiveScheme: string; - Recruiter: string; - AcademicsAffinity: boolean; - FrontrunnerAffinity: boolean; - LargeCrowdsAffinity: boolean; - ReligionAffinity: boolean; - ServiceAffinity: boolean; - SmallSchoolAffinity: boolean; - SmallTownAffinity: boolean; - BigCityAffinity: boolean; - MediaSpotlightAffinity: boolean; - RisingStarsAffinity: boolean; - ProgramPrestige: number; - ProfessionalPrestige: number; - Traditions: number; - Facilities: number; - Atmosphere: number; - Academics: number; - CampusLife: number; - ConferencePrestige: number; - CoachRating: number; - SeasonMomentum: number; - MediaSpotlight: number; - Recruits: RecruitPlayerProfile[]; - Affinities: ProfileAffinity[]; - - 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.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.PortalReputation = source["PortalReputation"]; - 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.ThreeStars = source["ThreeStars"]; - this.FourStars = source["FourStars"]; - this.FiveStars = source["FiveStars"]; - this.RecruitingClassRank = source["RecruitingClassRank"]; - this.CaughtCheating = source["CaughtCheating"]; - this.IsFBS = source["IsFBS"]; - this.IsAI = source["IsAI"]; - this.IsUserTeam = source["IsUserTeam"]; - this.AIBehavior = source["AIBehavior"]; - this.AIQuality = source["AIQuality"]; - this.WeeksMissed = source["WeeksMissed"]; - 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.AcademicsAffinity = source["AcademicsAffinity"]; - this.FrontrunnerAffinity = source["FrontrunnerAffinity"]; - this.LargeCrowdsAffinity = source["LargeCrowdsAffinity"]; - this.ReligionAffinity = source["ReligionAffinity"]; - this.ServiceAffinity = source["ServiceAffinity"]; - this.SmallSchoolAffinity = source["SmallSchoolAffinity"]; - this.SmallTownAffinity = source["SmallTownAffinity"]; - this.BigCityAffinity = source["BigCityAffinity"]; - this.MediaSpotlightAffinity = source["MediaSpotlightAffinity"]; - this.RisingStarsAffinity = source["RisingStarsAffinity"]; - this.ProgramPrestige = source["ProgramPrestige"]; - this.ProfessionalPrestige = source["ProfessionalPrestige"]; - this.Traditions = source["Traditions"]; - this.Facilities = source["Facilities"]; - this.Atmosphere = source["Atmosphere"]; - this.Academics = source["Academics"]; - this.CampusLife = source["CampusLife"]; - this.ConferencePrestige = source["ConferencePrestige"]; - this.CoachRating = source["CoachRating"]; - this.SeasonMomentum = source["SeasonMomentum"]; - this.MediaSpotlight = source["MediaSpotlight"]; - this.Recruits = this.convertValues(source["Recruits"], RecruitPlayerProfile); - this.Affinities = this.convertValues(source["Affinities"], ProfileAffinity); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + Team: string; + TeamAbbreviation: string; + State: string; + ScholarshipsAvailable: number; + WeeklyPoints: number; + SpentPoints: number; + TotalCommitments: number; + RecruitClassSize: number; + PortalReputation: number; + BaseEfficiencyScore: number; + RecruitingEfficiencyScore: number; + PreviousOverallWinPer: number; + PreviousConferenceWinPer: number; + CurrentOverallWinPer: number; + CurrentConferenceWinPer: number; + ESPNScore: number; + RivalsScore: number; + Rank247Score: number; + CompositeScore: number; + ThreeStars: number; + FourStars: number; + FiveStars: number; + RecruitingClassRank: number; + CaughtCheating: boolean; + IsFBS: boolean; + IsAI: boolean; + IsUserTeam: boolean; + AIBehavior: string; + AIQuality: string; + WeeksMissed: number; + BattlesWon: number; + BattlesLost: number; + AIMinThreshold: number; + AIMaxThreshold: number; + AIStarMin: number; + AIStarMax: number; + AIAutoOfferscholarships: boolean; + OffensiveScheme: string; + DefensiveScheme: string; + Recruiter: string; + AcademicsAffinity: boolean; + FrontrunnerAffinity: boolean; + LargeCrowdsAffinity: boolean; + ReligionAffinity: boolean; + ServiceAffinity: boolean; + SmallSchoolAffinity: boolean; + SmallTownAffinity: boolean; + BigCityAffinity: boolean; + MediaSpotlightAffinity: boolean; + RisingStarsAffinity: boolean; + ProgramPrestige: number; + ProfessionalPrestige: number; + Traditions: number; + Facilities: number; + Atmosphere: number; + Academics: number; + CampusLife: number; + ConferencePrestige: number; + CoachRating: number; + SeasonMomentum: number; + MediaSpotlight: number; + Recruits: RecruitPlayerProfile[]; + Affinities: ProfileAffinity[]; + + 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.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.PortalReputation = source["PortalReputation"]; + 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.ThreeStars = source["ThreeStars"]; + this.FourStars = source["FourStars"]; + this.FiveStars = source["FiveStars"]; + this.RecruitingClassRank = source["RecruitingClassRank"]; + this.CaughtCheating = source["CaughtCheating"]; + this.IsFBS = source["IsFBS"]; + this.IsAI = source["IsAI"]; + this.IsUserTeam = source["IsUserTeam"]; + this.AIBehavior = source["AIBehavior"]; + this.AIQuality = source["AIQuality"]; + this.WeeksMissed = source["WeeksMissed"]; + 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.AcademicsAffinity = source["AcademicsAffinity"]; + this.FrontrunnerAffinity = source["FrontrunnerAffinity"]; + this.LargeCrowdsAffinity = source["LargeCrowdsAffinity"]; + this.ReligionAffinity = source["ReligionAffinity"]; + this.ServiceAffinity = source["ServiceAffinity"]; + this.SmallSchoolAffinity = source["SmallSchoolAffinity"]; + this.SmallTownAffinity = source["SmallTownAffinity"]; + this.BigCityAffinity = source["BigCityAffinity"]; + this.MediaSpotlightAffinity = source["MediaSpotlightAffinity"]; + this.RisingStarsAffinity = source["RisingStarsAffinity"]; + this.ProgramPrestige = source["ProgramPrestige"]; + this.ProfessionalPrestige = source["ProfessionalPrestige"]; + this.Traditions = source["Traditions"]; + this.Facilities = source["Facilities"]; + this.Atmosphere = source["Atmosphere"]; + this.Academics = source["Academics"]; + this.CampusLife = source["CampusLife"]; + this.ConferencePrestige = source["ConferencePrestige"]; + this.CoachRating = source["CoachRating"]; + this.SeasonMomentum = source["SeasonMomentum"]; + this.MediaSpotlight = source["MediaSpotlight"]; + this.Recruits = this.convertValues( + source["Recruits"], + RecruitPlayerProfile, + ); + this.Affinities = this.convertValues(source["Affinities"], ProfileAffinity); + } + + 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 CollegeCoach { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - CoachName: string; - Age: number; - TeamID: number; - Team: string; - AlmaMaterID: number; - AlmaMater: string; - FormerPlayerID: number; - Prestige: number; - PointMin: number; - PointMax: number; - StarMin: number; - StarMax: number; - Odds1: number; - Odds2: number; - Odds3: number; - Odds4: number; - Odds5: number; - PositionOne: string; - PositionTwo: string; - PositionThree: string; - OffensiveScheme: string; - DefensiveScheme: string; - TeambuildingPreference: string; - CareerPreference: string; - PromiseTendency: string; - PortalReputation: number; - SchoolTenure: number; - CareerTenure: number; - ContractLength: number; - YearsRemaining: number; - OverallWins: number; - OverallLosses: number; - OverallConferenceChampionships: number; - BowlWins: number; - BowlLosses: number; - PlayoffWins: number; - PlayoffLosses: number; - NationalChampionships: number; - IsUser: boolean; - IsActive: boolean; - IsRetired: boolean; - IsFormerPlayer: 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.CoachName = source["CoachName"]; - this.Age = source["Age"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.AlmaMaterID = source["AlmaMaterID"]; - this.AlmaMater = source["AlmaMater"]; - this.FormerPlayerID = source["FormerPlayerID"]; - this.Prestige = source["Prestige"]; - this.PointMin = source["PointMin"]; - this.PointMax = source["PointMax"]; - this.StarMin = source["StarMin"]; - this.StarMax = source["StarMax"]; - this.Odds1 = source["Odds1"]; - this.Odds2 = source["Odds2"]; - this.Odds3 = source["Odds3"]; - this.Odds4 = source["Odds4"]; - this.Odds5 = source["Odds5"]; - this.PositionOne = source["PositionOne"]; - this.PositionTwo = source["PositionTwo"]; - this.PositionThree = source["PositionThree"]; - this.OffensiveScheme = source["OffensiveScheme"]; - this.DefensiveScheme = source["DefensiveScheme"]; - this.TeambuildingPreference = source["TeambuildingPreference"]; - this.CareerPreference = source["CareerPreference"]; - this.PromiseTendency = source["PromiseTendency"]; - this.PortalReputation = source["PortalReputation"]; - this.SchoolTenure = source["SchoolTenure"]; - this.CareerTenure = source["CareerTenure"]; - this.ContractLength = source["ContractLength"]; - this.YearsRemaining = source["YearsRemaining"]; - this.OverallWins = source["OverallWins"]; - this.OverallLosses = source["OverallLosses"]; - this.OverallConferenceChampionships = source["OverallConferenceChampionships"]; - this.BowlWins = source["BowlWins"]; - this.BowlLosses = source["BowlLosses"]; - this.PlayoffWins = source["PlayoffWins"]; - this.PlayoffLosses = source["PlayoffLosses"]; - this.NationalChampionships = source["NationalChampionships"]; - this.IsUser = source["IsUser"]; - this.IsActive = source["IsActive"]; - this.IsRetired = source["IsRetired"]; - this.IsFormerPlayer = source["IsFormerPlayer"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + CoachName: string; + Age: number; + TeamID: number; + Team: string; + AlmaMaterID: number; + AlmaMater: string; + FormerPlayerID: number; + Prestige: number; + PointMin: number; + PointMax: number; + StarMin: number; + StarMax: number; + Odds1: number; + Odds2: number; + Odds3: number; + Odds4: number; + Odds5: number; + PositionOne: string; + PositionTwo: string; + PositionThree: string; + OffensiveScheme: string; + DefensiveScheme: string; + TeambuildingPreference: string; + CareerPreference: string; + PromiseTendency: string; + PortalReputation: number; + SchoolTenure: number; + CareerTenure: number; + ContractLength: number; + YearsRemaining: number; + OverallWins: number; + OverallLosses: number; + OverallConferenceChampionships: number; + BowlWins: number; + BowlLosses: number; + PlayoffWins: number; + PlayoffLosses: number; + NationalChampionships: number; + IsUser: boolean; + IsActive: boolean; + IsRetired: boolean; + IsFormerPlayer: 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.CoachName = source["CoachName"]; + this.Age = source["Age"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.AlmaMaterID = source["AlmaMaterID"]; + this.AlmaMater = source["AlmaMater"]; + this.FormerPlayerID = source["FormerPlayerID"]; + this.Prestige = source["Prestige"]; + this.PointMin = source["PointMin"]; + this.PointMax = source["PointMax"]; + this.StarMin = source["StarMin"]; + this.StarMax = source["StarMax"]; + this.Odds1 = source["Odds1"]; + this.Odds2 = source["Odds2"]; + this.Odds3 = source["Odds3"]; + this.Odds4 = source["Odds4"]; + this.Odds5 = source["Odds5"]; + this.PositionOne = source["PositionOne"]; + this.PositionTwo = source["PositionTwo"]; + this.PositionThree = source["PositionThree"]; + this.OffensiveScheme = source["OffensiveScheme"]; + this.DefensiveScheme = source["DefensiveScheme"]; + this.TeambuildingPreference = source["TeambuildingPreference"]; + this.CareerPreference = source["CareerPreference"]; + this.PromiseTendency = source["PromiseTendency"]; + this.PortalReputation = source["PortalReputation"]; + this.SchoolTenure = source["SchoolTenure"]; + this.CareerTenure = source["CareerTenure"]; + this.ContractLength = source["ContractLength"]; + this.YearsRemaining = source["YearsRemaining"]; + this.OverallWins = source["OverallWins"]; + this.OverallLosses = source["OverallLosses"]; + this.OverallConferenceChampionships = + source["OverallConferenceChampionships"]; + this.BowlWins = source["BowlWins"]; + this.BowlLosses = source["BowlLosses"]; + this.PlayoffWins = source["PlayoffWins"]; + this.PlayoffLosses = source["PlayoffLosses"]; + this.NationalChampionships = source["NationalChampionships"]; + this.IsUser = source["IsUser"]; + this.IsActive = source["IsActive"]; + this.IsRetired = source["IsRetired"]; + this.IsFormerPlayer = source["IsFormerPlayer"]; + } + + 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 Time { - - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - - } + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + } } export class CollegeTeam { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - ConferenceID: number; - Conference: string; - DivisionID: number; - Division: string; - ProgramPrestige: number; - AcademicPrestige: number; - Facilities: number; - IsFBS: boolean; - IsActive: boolean; - PlayersProgressed: boolean; - RecruitsAdded: boolean; - CollegeCoach: CollegeCoach; - RecruitingProfile: RecruitingTeamProfile; - TeamStats: CollegeTeamStats[]; - TeamSeasonStats: CollegeTeamSeasonStats; - TeamRecord: CollegeTeamRecords; - TeamGameplan: CollegeGameplan; - TeamDepthChart: CollegeTeamDepthChart; - TeamStandings: CollegeStandings[]; - - 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.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.ConferenceID = source["ConferenceID"]; - this.Conference = source["Conference"]; - this.DivisionID = source["DivisionID"]; - this.Division = source["Division"]; - this.ProgramPrestige = source["ProgramPrestige"]; - this.AcademicPrestige = source["AcademicPrestige"]; - this.Facilities = source["Facilities"]; - this.IsFBS = source["IsFBS"]; - this.IsActive = source["IsActive"]; - this.PlayersProgressed = source["PlayersProgressed"]; - this.RecruitsAdded = source["RecruitsAdded"]; - this.CollegeCoach = this.convertValues(source["CollegeCoach"], CollegeCoach); - this.RecruitingProfile = this.convertValues(source["RecruitingProfile"], RecruitingTeamProfile); - this.TeamStats = this.convertValues(source["TeamStats"], CollegeTeamStats); - this.TeamSeasonStats = this.convertValues(source["TeamSeasonStats"], CollegeTeamSeasonStats); - this.TeamRecord = this.convertValues(source["TeamRecord"], CollegeTeamRecords); - this.TeamGameplan = this.convertValues(source["TeamGameplan"], CollegeGameplan); - this.TeamDepthChart = this.convertValues(source["TeamDepthChart"], CollegeTeamDepthChart); - this.TeamStandings = this.convertValues(source["TeamStandings"], CollegeStandings); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + ConferenceID: number; + Conference: string; + DivisionID: number; + Division: string; + ProgramPrestige: number; + AcademicPrestige: number; + Facilities: number; + IsFBS: boolean; + IsActive: boolean; + PlayersProgressed: boolean; + RecruitsAdded: boolean; + CollegeCoach: CollegeCoach; + RecruitingProfile: RecruitingTeamProfile; + TeamStats: CollegeTeamStats[]; + TeamSeasonStats: CollegeTeamSeasonStats; + TeamRecord: CollegeTeamRecords; + TeamGameplan: CollegeGameplan; + TeamDepthChart: CollegeTeamDepthChart; + TeamStandings: CollegeStandings[]; + + 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.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.ConferenceID = source["ConferenceID"]; + this.Conference = source["Conference"]; + this.DivisionID = source["DivisionID"]; + this.Division = source["Division"]; + this.ProgramPrestige = source["ProgramPrestige"]; + this.AcademicPrestige = source["AcademicPrestige"]; + this.Facilities = source["Facilities"]; + this.IsFBS = source["IsFBS"]; + this.IsActive = source["IsActive"]; + this.PlayersProgressed = source["PlayersProgressed"]; + this.RecruitsAdded = source["RecruitsAdded"]; + this.CollegeCoach = this.convertValues( + source["CollegeCoach"], + CollegeCoach, + ); + this.RecruitingProfile = this.convertValues( + source["RecruitingProfile"], + RecruitingTeamProfile, + ); + this.TeamStats = this.convertValues(source["TeamStats"], CollegeTeamStats); + this.TeamSeasonStats = this.convertValues( + source["TeamSeasonStats"], + CollegeTeamSeasonStats, + ); + this.TeamRecord = this.convertValues( + source["TeamRecord"], + CollegeTeamRecords, + ); + this.TeamGameplan = this.convertValues( + source["TeamGameplan"], + CollegeGameplan, + ); + this.TeamDepthChart = this.convertValues( + source["TeamDepthChart"], + CollegeTeamDepthChart, + ); + this.TeamStandings = this.convertValues( + source["TeamStandings"], + CollegeStandings, + ); + } + + 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 BootstrapDataTeams { - AllCollegeTeams: CollegeTeam[]; - AllProTeams: NFLTeam[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.AllCollegeTeams = this.convertValues(source["AllCollegeTeams"], CollegeTeam); - this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); - } - - 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; - } + AllCollegeTeams: CollegeTeam[]; + AllProTeams: NFLTeam[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.AllCollegeTeams = this.convertValues( + source["AllCollegeTeams"], + CollegeTeam, + ); + this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); + } + + 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 NFLRetiredPlayer { - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - PlayerID: number; - TeamID: number; - CollegeID: number; - College: string; - TeamAbbr: string; - Experience: number; - HighSchool: string; - Hometown: string; - State: string; - IsActive: boolean; - IsPracticeSquad: boolean; - IsFreeAgent: boolean; - IsWaived: boolean; - IsOnTradeBlock: boolean; - IsAcceptingOffers: boolean; - IsNegotiating: boolean; - NegotiationRound: number; - SigningRound: number; - MinimumValue: number; - OriginalMinimumValue: number; - AAV: number; - OriginalAAV: number; - DraftedTeamID: number; - DraftedTeam: string; - DraftedRound: number; - DraftPickID: number; - DraftedPick: number; - ShowLetterGrade: boolean; - HasProgressed: boolean; - Rejections: number; - ProBowls: number; - TagType: number; - Stats: NFLPlayerStats[]; - SeasonStats: NFLPlayerSeasonStats; - Contract: NFLContract; - Offers: FreeAgencyOffer[]; - WaiverOffers: NFLWaiverOffer[]; - Extensions: NFLExtensionOffer[]; - - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.CollegeID = source["CollegeID"]; - this.College = source["College"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Experience = source["Experience"]; - this.HighSchool = source["HighSchool"]; - this.Hometown = source["Hometown"]; - this.State = source["State"]; - this.IsActive = source["IsActive"]; - this.IsPracticeSquad = source["IsPracticeSquad"]; - this.IsFreeAgent = source["IsFreeAgent"]; - this.IsWaived = source["IsWaived"]; - this.IsOnTradeBlock = source["IsOnTradeBlock"]; - this.IsAcceptingOffers = source["IsAcceptingOffers"]; - this.IsNegotiating = source["IsNegotiating"]; - this.NegotiationRound = source["NegotiationRound"]; - this.SigningRound = source["SigningRound"]; - this.MinimumValue = source["MinimumValue"]; - this.OriginalMinimumValue = source["OriginalMinimumValue"]; - this.AAV = source["AAV"]; - this.OriginalAAV = source["OriginalAAV"]; - this.DraftedTeamID = source["DraftedTeamID"]; - this.DraftedTeam = source["DraftedTeam"]; - this.DraftedRound = source["DraftedRound"]; - this.DraftPickID = source["DraftPickID"]; - this.DraftedPick = source["DraftedPick"]; - this.ShowLetterGrade = source["ShowLetterGrade"]; - this.HasProgressed = source["HasProgressed"]; - this.Rejections = source["Rejections"]; - this.ProBowls = source["ProBowls"]; - this.TagType = source["TagType"]; - this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], NFLPlayerSeasonStats); - this.Contract = this.convertValues(source["Contract"], NFLContract); - this.Offers = this.convertValues(source["Offers"], FreeAgencyOffer); - this.WaiverOffers = this.convertValues(source["WaiverOffers"], NFLWaiverOffer); - this.Extensions = this.convertValues(source["Extensions"], NFLExtensionOffer); - } - - 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; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + PlayerID: number; + TeamID: number; + CollegeID: number; + College: string; + TeamAbbr: string; + Experience: number; + HighSchool: string; + Hometown: string; + State: string; + IsActive: boolean; + IsPracticeSquad: boolean; + IsFreeAgent: boolean; + IsWaived: boolean; + IsOnTradeBlock: boolean; + IsAcceptingOffers: boolean; + IsNegotiating: boolean; + NegotiationRound: number; + SigningRound: number; + MinimumValue: number; + OriginalMinimumValue: number; + AAV: number; + OriginalAAV: number; + DraftedTeamID: number; + DraftedTeam: string; + DraftedRound: number; + DraftPickID: number; + DraftedPick: number; + ShowLetterGrade: boolean; + HasProgressed: boolean; + Rejections: number; + ProBowls: number; + TagType: number; + Stats: NFLPlayerStats[]; + SeasonStats: NFLPlayerSeasonStats; + Contract: NFLContract; + Offers: FreeAgencyOffer[]; + WaiverOffers: NFLWaiverOffer[]; + Extensions: NFLExtensionOffer[]; + + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.CollegeID = source["CollegeID"]; + this.College = source["College"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Experience = source["Experience"]; + this.HighSchool = source["HighSchool"]; + this.Hometown = source["Hometown"]; + this.State = source["State"]; + this.IsActive = source["IsActive"]; + this.IsPracticeSquad = source["IsPracticeSquad"]; + this.IsFreeAgent = source["IsFreeAgent"]; + this.IsWaived = source["IsWaived"]; + this.IsOnTradeBlock = source["IsOnTradeBlock"]; + this.IsAcceptingOffers = source["IsAcceptingOffers"]; + this.IsNegotiating = source["IsNegotiating"]; + this.NegotiationRound = source["NegotiationRound"]; + this.SigningRound = source["SigningRound"]; + this.MinimumValue = source["MinimumValue"]; + this.OriginalMinimumValue = source["OriginalMinimumValue"]; + this.AAV = source["AAV"]; + this.OriginalAAV = source["OriginalAAV"]; + this.DraftedTeamID = source["DraftedTeamID"]; + this.DraftedTeam = source["DraftedTeam"]; + this.DraftedRound = source["DraftedRound"]; + this.DraftPickID = source["DraftPickID"]; + this.DraftedPick = source["DraftedPick"]; + this.ShowLetterGrade = source["ShowLetterGrade"]; + this.HasProgressed = source["HasProgressed"]; + this.Rejections = source["Rejections"]; + this.ProBowls = source["ProBowls"]; + this.TagType = source["TagType"]; + this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); + this.SeasonStats = this.convertValues( + source["SeasonStats"], + NFLPlayerSeasonStats, + ); + this.Contract = this.convertValues(source["Contract"], NFLContract); + this.Offers = this.convertValues(source["Offers"], FreeAgencyOffer); + this.WaiverOffers = this.convertValues( + source["WaiverOffers"], + NFLWaiverOffer, + ); + this.Extensions = this.convertValues( + source["Extensions"], + NFLExtensionOffer, + ); + } + + 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 CollegePollSubmission { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - Username: string; - SeasonID: 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; - - 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"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + Username: string; + SeasonID: 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; + + 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"]; + } + + 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 NFLGame { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - IsRevealed: boolean; - IsPreseasonGame: boolean; - GameTitle: string; - NextGameID: number; - NextGameHOA: string; - HomePreviousBye: boolean; - AwayPreviousBye: 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.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.IsRevealed = source["IsRevealed"]; - this.IsPreseasonGame = source["IsPreseasonGame"]; - this.GameTitle = source["GameTitle"]; - this.NextGameID = source["NextGameID"]; - this.NextGameHOA = source["NextGameHOA"]; - this.HomePreviousBye = source["HomePreviousBye"]; - this.AwayPreviousBye = source["AwayPreviousBye"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + IsRevealed: boolean; + IsPreseasonGame: boolean; + GameTitle: string; + NextGameID: number; + NextGameHOA: string; + HomePreviousBye: boolean; + AwayPreviousBye: 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.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.IsRevealed = source["IsRevealed"]; + this.IsPreseasonGame = source["IsPreseasonGame"]; + this.GameTitle = source["GameTitle"]; + this.NextGameID = source["NextGameID"]; + this.NextGameHOA = source["NextGameHOA"]; + this.HomePreviousBye = source["HomePreviousBye"]; + this.AwayPreviousBye = source["AwayPreviousBye"]; + } + + 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 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; - } + 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 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; - } + 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; - IsRevealed: 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.IsRevealed = source["IsRevealed"]; - 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; - } + 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; + IsRevealed: 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.IsRevealed = source["IsRevealed"]; + 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[]; - 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.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; - } + CollegeTeam: CollegeTeam; + CollegeRosterMap: { [key: number]: CollegePlayer[] }; + CollegeStandings: CollegeStandings[]; + AllCollegeGames: CollegeGame[]; + OfficialPolls: CollegePollOfficial[]; + TopCFBPassers: CollegePlayer[]; + TopCFBRushers: CollegePlayer[]; + TopCFBReceivers: 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.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; - } + 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 CollegePromise { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + 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: {[key: uint]: NFLTradeProposal[]}; - TradePreferences: {[key: uint]: NFLTradePreferences}; - NFLDraftPicks: NFLDraftPick[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - 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 = source["TradeProposals"]; - this.TradePreferences = this.convertValues(source["TradePreferences"], NFLTradePreferences, true); - this.NFLDraftPicks = this.convertValues(source["NFLDraftPicks"], 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; - } + ContractMap: { [key: uint]: NFLContract }; + ExtensionMap: { [key: uint]: NFLExtensionOffer }; + CollegePromises: CollegePromise[]; + TradeProposals: { [key: uint]: NFLTradeProposal[] }; + TradePreferences: { [key: uint]: NFLTradePreferences }; + NFLDraftPicks: NFLDraftPick[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + 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 = source["TradeProposals"]; + this.TradePreferences = this.convertValues( + source["TradePreferences"], + NFLTradePreferences, + true, + ); + this.NFLDraftPicks = this.convertValues( + source["NFLDraftPicks"], + 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 LeadingTeams { - TeamID: number; - TeamName: string; - TeamAbbr: string; - Odds: number; - HasScholarship: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.TeamID = source["TeamID"]; - this.TeamName = source["TeamName"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Odds = source["Odds"]; - this.HasScholarship = source["HasScholarship"]; - } + TeamID: number; + TeamName: string; + TeamAbbr: string; + Odds: number; + HasScholarship: boolean; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.TeamID = source["TeamID"]; + this.TeamName = source["TeamName"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Odds = source["Odds"]; + this.HasScholarship = source["HasScholarship"]; + } } export class Croot { - ID: number; - PlayerID: number; - TeamID: number; - College: string; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - Height: number; - Weight: number; - Stars: number; - PotentialGrade: string; - Personality: string; - RecruitingBias: string; - AcademicBias: string; - WorkEthic: string; - HighSchool: string; - City: string; - State: string; - AffinityOne: string; - AffinityTwo: string; - RecruitingStatus: string; - RecruitModifier: number; - IsCustomCroot: boolean; - CustomCrootFor: string; - IsSigned: boolean; - OverallGrade: string; - TotalRank: number; - LeadingTeams: LeadingTeams[]; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.College = source["College"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Stars = source["Stars"]; - this.PotentialGrade = source["PotentialGrade"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.AcademicBias = source["AcademicBias"]; - this.WorkEthic = source["WorkEthic"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.AffinityOne = source["AffinityOne"]; - this.AffinityTwo = source["AffinityTwo"]; - this.RecruitingStatus = source["RecruitingStatus"]; - this.RecruitModifier = source["RecruitModifier"]; - this.IsCustomCroot = source["IsCustomCroot"]; - this.CustomCrootFor = source["CustomCrootFor"]; - this.IsSigned = source["IsSigned"]; - this.OverallGrade = source["OverallGrade"]; - this.TotalRank = source["TotalRank"]; - this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); - this.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - } - - 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; - } + ID: number; + PlayerID: number; + TeamID: number; + College: string; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + Height: number; + Weight: number; + Stars: number; + PotentialGrade: string; + Personality: string; + RecruitingBias: string; + AcademicBias: string; + WorkEthic: string; + HighSchool: string; + City: string; + State: string; + AffinityOne: string; + AffinityTwo: string; + RecruitingStatus: string; + RecruitModifier: number; + IsCustomCroot: boolean; + CustomCrootFor: string; + IsSigned: boolean; + OverallGrade: string; + TotalRank: number; + LeadingTeams: LeadingTeams[]; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.College = source["College"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Stars = source["Stars"]; + this.PotentialGrade = source["PotentialGrade"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.AcademicBias = source["AcademicBias"]; + this.WorkEthic = source["WorkEthic"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.AffinityOne = source["AffinityOne"]; + this.AffinityTwo = source["AffinityTwo"]; + this.RecruitingStatus = source["RecruitingStatus"]; + this.RecruitModifier = source["RecruitModifier"]; + this.IsCustomCroot = source["IsCustomCroot"]; + this.CustomCrootFor = source["CustomCrootFor"]; + this.IsSigned = source["IsSigned"]; + this.OverallGrade = source["OverallGrade"]; + this.TotalRank = source["TotalRank"]; + this.LeadingTeams = this.convertValues( + source["LeadingTeams"], + LeadingTeams, + ); + this.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + } + + 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 BootstrapDataRecruiting { - Recruits: Croot[]; - RecruitProfiles: RecruitPlayerProfile[]; - 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.TeamProfileMap = source["TeamProfileMap"]; - } - - 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; - } + Recruits: Croot[]; + RecruitProfiles: RecruitPlayerProfile[]; + 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.TeamProfileMap = source["TeamProfileMap"]; + } + + 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 BootstrapDataFreeAgency { - FreeAgents: NFLPlayer[]; - WaiverPlayers: NFLPlayer[]; - FreeAgentOffers: FreeAgencyOffer[]; - WaiverOffers: NFLWaiverOffer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - 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 { - 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; - } + FreeAgents: NFLPlayer[]; + WaiverPlayers: NFLPlayer[]; + FreeAgentOffers: FreeAgencyOffer[]; + WaiverOffers: NFLWaiverOffer[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + 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 { + 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 NFLGameRequest { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - HomeTeamID: number; - AwayTeamID: number; - SendingTeamID: number; - RequestingTeamID: number; - IsAccepted: boolean; - IsApproved: boolean; - ArenaID: number; - Arena: string; - IsNeutralSite: boolean; - SeasonID: number; - WeekID: number; - Week: number; - Timeslot: string; - IsPreseason: 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.HomeTeamID = source["HomeTeamID"]; - this.AwayTeamID = source["AwayTeamID"]; - this.SendingTeamID = source["SendingTeamID"]; - this.RequestingTeamID = source["RequestingTeamID"]; - this.IsAccepted = source["IsAccepted"]; - this.IsApproved = source["IsApproved"]; - this.ArenaID = source["ArenaID"]; - this.Arena = source["Arena"]; - this.IsNeutralSite = source["IsNeutralSite"]; - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Timeslot = source["Timeslot"]; - this.IsPreseason = source["IsPreseason"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + HomeTeamID: number; + AwayTeamID: number; + SendingTeamID: number; + RequestingTeamID: number; + IsAccepted: boolean; + IsApproved: boolean; + ArenaID: number; + Arena: string; + IsNeutralSite: boolean; + SeasonID: number; + WeekID: number; + Week: number; + Timeslot: string; + IsPreseason: 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.HomeTeamID = source["HomeTeamID"]; + this.AwayTeamID = source["AwayTeamID"]; + this.SendingTeamID = source["SendingTeamID"]; + this.RequestingTeamID = source["RequestingTeamID"]; + this.IsAccepted = source["IsAccepted"]; + this.IsApproved = source["IsApproved"]; + this.ArenaID = source["ArenaID"]; + this.Arena = source["Arena"]; + this.IsNeutralSite = source["IsNeutralSite"]; + this.SeasonID = source["SeasonID"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.Timeslot = source["Timeslot"]; + this.IsPreseason = source["IsPreseason"]; + } + + 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 CFBGameRequest { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - HomeTeamID: number; - AwayTeamID: number; - SendingTeamID: number; - RequestingTeamID: number; - IsAccepted: boolean; - IsApproved: boolean; - ArenaID: number; - Arena: string; - IsNeutralSite: boolean; - SeasonID: number; - WeekID: number; - Week: number; - Timeslot: string; - IsSpringGame: 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.HomeTeamID = source["HomeTeamID"]; - this.AwayTeamID = source["AwayTeamID"]; - this.SendingTeamID = source["SendingTeamID"]; - this.RequestingTeamID = source["RequestingTeamID"]; - this.IsAccepted = source["IsAccepted"]; - this.IsApproved = source["IsApproved"]; - this.ArenaID = source["ArenaID"]; - this.Arena = source["Arena"]; - this.IsNeutralSite = source["IsNeutralSite"]; - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Timeslot = source["Timeslot"]; - this.IsSpringGame = source["IsSpringGame"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + HomeTeamID: number; + AwayTeamID: number; + SendingTeamID: number; + RequestingTeamID: number; + IsAccepted: boolean; + IsApproved: boolean; + ArenaID: number; + Arena: string; + IsNeutralSite: boolean; + SeasonID: number; + WeekID: number; + Week: number; + Timeslot: string; + IsSpringGame: 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.HomeTeamID = source["HomeTeamID"]; + this.AwayTeamID = source["AwayTeamID"]; + this.SendingTeamID = source["SendingTeamID"]; + this.RequestingTeamID = source["RequestingTeamID"]; + this.IsAccepted = source["IsAccepted"]; + this.IsApproved = source["IsApproved"]; + this.ArenaID = source["ArenaID"]; + this.Arena = source["Arena"]; + this.IsNeutralSite = source["IsNeutralSite"]; + this.SeasonID = source["SeasonID"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.Timeslot = source["Timeslot"]; + this.IsSpringGame = source["IsSpringGame"]; + } + + 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 Stadium { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - 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"], 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 { - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + 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"], 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 { + 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - 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; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + 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 BootstrapDataScheduling { - OfficialPolls: CollegePollOfficial[]; - PollSubmission: CollegePollSubmission; - HistoricCollegePlayers: HistoricCollegePlayer[]; - RetiredPlayers: NFLRetiredPlayer[]; - Stadiums: Stadium[]; - CFBGameRequests: CFBGameRequest[]; - NFLGameRequests: NFLGameRequest[]; - - 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); - this.HistoricCollegePlayers = this.convertValues(source["HistoricCollegePlayers"], HistoricCollegePlayer); - this.RetiredPlayers = this.convertValues(source["RetiredPlayers"], NFLRetiredPlayer); - this.Stadiums = this.convertValues(source["Stadiums"], Stadium); - this.CFBGameRequests = this.convertValues(source["CFBGameRequests"], CFBGameRequest); - this.NFLGameRequests = this.convertValues(source["NFLGameRequests"], NFLGameRequest); - } - - 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; - } + OfficialPolls: CollegePollOfficial[]; + PollSubmission: CollegePollSubmission; + HistoricCollegePlayers: HistoricCollegePlayer[]; + RetiredPlayers: NFLRetiredPlayer[]; + Stadiums: Stadium[]; + CFBGameRequests: CFBGameRequest[]; + NFLGameRequests: NFLGameRequest[]; + + 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, + ); + this.HistoricCollegePlayers = this.convertValues( + source["HistoricCollegePlayers"], + HistoricCollegePlayer, + ); + this.RetiredPlayers = this.convertValues( + source["RetiredPlayers"], + NFLRetiredPlayer, + ); + this.Stadiums = this.convertValues(source["Stadiums"], Stadium); + this.CFBGameRequests = this.convertValues( + source["CFBGameRequests"], + CFBGameRequest, + ); + this.NFLGameRequests = this.convertValues( + source["NFLGameRequests"], + NFLGameRequest, + ); + } + + 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 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; - - 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); - } - - 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; - } + 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; + + 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); + } + + 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 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.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 { - 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; - } + 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.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 { + 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 { - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - 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"]; - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - 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; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + 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"]; + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + 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[]}; - NFLGameplanMap: {[key: uint]: NFLGameplan}; - NFLDraftPicks: NFLDraftPick[]; - - 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 = source["DraftScoutingProfileMap"]; - this.NFLGameplanMap = this.convertValues(source["NFLGameplanMap"], NFLGameplan, true); - this.NFLDraftPicks = this.convertValues(source["NFLDraftPicks"], 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; - } + NFLDraftees: NFLDraftee[]; + NFLWarRoomMap: { [key: uint]: NFLWarRoom }; + DraftScoutingProfileMap: { [key: uint]: ScoutingProfile[] }; + NFLGameplanMap: { [key: uint]: NFLGameplan }; + NFLDraftPicks: NFLDraftPick[]; + + 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 = source["DraftScoutingProfileMap"]; + this.NFLGameplanMap = this.convertValues( + source["NFLGameplanMap"], + NFLGameplan, + true, + ); + this.NFLDraftPicks = this.convertValues( + source["NFLDraftPicks"], + 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 NullInt64 { - Int64: number; - Valid: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Int64 = source["Int64"]; - this.Valid = source["Valid"]; - } + 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; - } + 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 BootstrapDataPortal { - TeamProfileMap: {[key: string]: RecruitingTeamProfile}; - TransferPortalProfiles: TransferPortalProfile[]; - CollegePromises: CollegePromise[]; - PortalPlayers: CollegePlayer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.TeamProfileMap = source["TeamProfileMap"]; - this.TransferPortalProfiles = this.convertValues(source["TransferPortalProfiles"], TransferPortalProfile); - this.CollegePromises = this.convertValues(source["CollegePromises"], CollegePromise); - this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); - } - - 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; - } + TeamProfileMap: { [key: string]: RecruitingTeamProfile }; + TransferPortalProfiles: TransferPortalProfile[]; + CollegePromises: CollegePromise[]; + PortalPlayers: CollegePlayer[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.TeamProfileMap = source["TeamProfileMap"]; + this.TransferPortalProfiles = this.convertValues( + source["TransferPortalProfiles"], + TransferPortalProfile, + ); + this.CollegePromises = this.convertValues( + source["CollegePromises"], + CollegePromise, + ); + this.PortalPlayers = this.convertValues( + source["PortalPlayers"], + CollegePlayer, + ); + } + + 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 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); - } - - 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; - } + 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, + ); + } + + 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; - WeekID: number; - Week: number; - SeasonID: number; - TeamID: number; - MessageType: string; - Message: string; - League: 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.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; - this.TeamID = source["TeamID"]; - this.MessageType = source["MessageType"]; - this.Message = source["Message"]; - this.League = source["League"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + WeekID: number; + Week: number; + SeasonID: number; + TeamID: number; + MessageType: string; + Message: string; + League: 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.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.SeasonID = source["SeasonID"]; + this.TeamID = source["TeamID"]; + this.MessageType = source["MessageType"]; + this.Message = source["Message"]; + this.League = source["League"]; + } + + 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 BootstrapDataNews { - CollegeNews: NewsLog[]; - ProNews: NewsLog[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); - this.ProNews = this.convertValues(source["ProNews"], NewsLog); - } - - 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; - } + CollegeNews: NewsLog[]; + ProNews: NewsLog[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); + this.ProNews = this.convertValues(source["ProNews"], NewsLog); + } + + 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 AwardsModel { - PlayerID: number; - TeamID: number; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - School: string; - Score: number; - Games: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.School = source["School"]; - this.Score = source["Score"]; - this.Games = source["Games"]; - } + PlayerID: number; + TeamID: number; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + School: string; + Score: number; + Games: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.School = source["School"]; + this.Score = source["Score"]; + this.Games = source["Games"]; + } } export class AwardsList { - HeismanList: AwardsModel[]; - CoachOfTheYearList: AwardsModel[]; - DaveyOBrienList: AwardsModel[]; - DoakWalkerList: AwardsModel[]; - BiletnikoffList: AwardsModel[]; - MackeyList: AwardsModel[]; - RimingtonList: AwardsModel[]; - OutlandList: AwardsModel[]; - JoeMooreList: AwardsModel[]; - NagurskiList: AwardsModel[]; - HendricksList: AwardsModel[]; - ThorpeList: AwardsModel[]; - ButkusList: AwardsModel[]; - LouGrozaList: AwardsModel[]; - RayGuyList: AwardsModel[]; - JetAward: AwardsModel[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.HeismanList = this.convertValues(source["HeismanList"], AwardsModel); - this.CoachOfTheYearList = this.convertValues(source["CoachOfTheYearList"], AwardsModel); - this.DaveyOBrienList = this.convertValues(source["DaveyOBrienList"], AwardsModel); - this.DoakWalkerList = this.convertValues(source["DoakWalkerList"], AwardsModel); - this.BiletnikoffList = this.convertValues(source["BiletnikoffList"], AwardsModel); - this.MackeyList = this.convertValues(source["MackeyList"], AwardsModel); - this.RimingtonList = this.convertValues(source["RimingtonList"], AwardsModel); - this.OutlandList = this.convertValues(source["OutlandList"], AwardsModel); - this.JoeMooreList = this.convertValues(source["JoeMooreList"], AwardsModel); - this.NagurskiList = this.convertValues(source["NagurskiList"], AwardsModel); - this.HendricksList = this.convertValues(source["HendricksList"], AwardsModel); - this.ThorpeList = this.convertValues(source["ThorpeList"], AwardsModel); - this.ButkusList = this.convertValues(source["ButkusList"], AwardsModel); - this.LouGrozaList = this.convertValues(source["LouGrozaList"], AwardsModel); - this.RayGuyList = this.convertValues(source["RayGuyList"], AwardsModel); - this.JetAward = this.convertValues(source["JetAward"], AwardsModel); - } - - 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; - } + HeismanList: AwardsModel[]; + CoachOfTheYearList: AwardsModel[]; + DaveyOBrienList: AwardsModel[]; + DoakWalkerList: AwardsModel[]; + BiletnikoffList: AwardsModel[]; + MackeyList: AwardsModel[]; + RimingtonList: AwardsModel[]; + OutlandList: AwardsModel[]; + JoeMooreList: AwardsModel[]; + NagurskiList: AwardsModel[]; + HendricksList: AwardsModel[]; + ThorpeList: AwardsModel[]; + ButkusList: AwardsModel[]; + LouGrozaList: AwardsModel[]; + RayGuyList: AwardsModel[]; + JetAward: AwardsModel[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.HeismanList = this.convertValues(source["HeismanList"], AwardsModel); + this.CoachOfTheYearList = this.convertValues( + source["CoachOfTheYearList"], + AwardsModel, + ); + this.DaveyOBrienList = this.convertValues( + source["DaveyOBrienList"], + AwardsModel, + ); + this.DoakWalkerList = this.convertValues( + source["DoakWalkerList"], + AwardsModel, + ); + this.BiletnikoffList = this.convertValues( + source["BiletnikoffList"], + AwardsModel, + ); + this.MackeyList = this.convertValues(source["MackeyList"], AwardsModel); + this.RimingtonList = this.convertValues( + source["RimingtonList"], + AwardsModel, + ); + this.OutlandList = this.convertValues(source["OutlandList"], AwardsModel); + this.JoeMooreList = this.convertValues(source["JoeMooreList"], AwardsModel); + this.NagurskiList = this.convertValues(source["NagurskiList"], AwardsModel); + this.HendricksList = this.convertValues( + source["HendricksList"], + AwardsModel, + ); + this.ThorpeList = this.convertValues(source["ThorpeList"], AwardsModel); + this.ButkusList = this.convertValues(source["ButkusList"], AwardsModel); + this.LouGrozaList = this.convertValues(source["LouGrozaList"], AwardsModel); + this.RayGuyList = this.convertValues(source["RayGuyList"], AwardsModel); + this.JetAward = this.convertValues(source["JetAward"], AwardsModel); + } + + 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 BootstrapDataStats { - PostSeasonAwards: AwardsList; - HistoricCollegePlayers: HistoricCollegePlayer[]; - RetiredPlayers: NFLRetiredPlayer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PostSeasonAwards = this.convertValues(source["PostSeasonAwards"], AwardsList); - this.HistoricCollegePlayers = this.convertValues(source["HistoricCollegePlayers"], HistoricCollegePlayer); - 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; - } + PostSeasonAwards: AwardsList; + HistoricCollegePlayers: HistoricCollegePlayer[]; + RetiredPlayers: NFLRetiredPlayer[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.PostSeasonAwards = this.convertValues( + source["PostSeasonAwards"], + AwardsList, + ); + this.HistoricCollegePlayers = this.convertValues( + source["HistoricCollegePlayers"], + HistoricCollegePlayer, + ); + 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 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"]; - } + 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); - } - - 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; - } + 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 { + 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 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.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 { - 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; - } + 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.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 { + 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 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.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"]; - } + 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.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"]; + } } export class NFLTradeOption { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TradeProposalID: number; - NFLTeamID: number; - NFLPlayerID: number; - NFLDraftPickID: number; - OptionType: string; - SalaryPercentage: 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.TradeProposalID = source["TradeProposalID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.NFLDraftPickID = source["NFLDraftPickID"]; - this.OptionType = source["OptionType"]; - this.SalaryPercentage = source["SalaryPercentage"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TradeProposalID: number; + NFLTeamID: number; + NFLPlayerID: number; + NFLDraftPickID: number; + OptionType: string; + SalaryPercentage: 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.TradeProposalID = source["TradeProposalID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.NFLDraftPickID = source["NFLDraftPickID"]; + this.OptionType = source["OptionType"]; + this.SalaryPercentage = source["SalaryPercentage"]; + } + + 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 NFLTradeProposal { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - NFLTeam: string; - RecepientTeamID: number; - RecepientTeam: string; - IsTradeAccepted: boolean; - IsTradeRejected: boolean; - IsSynced: boolean; - NFLTeamTradeOptions: NFLTradeOption[]; - RecepientTeamTradeOptions: NFLTradeOption[]; - - 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.NFLTeam = source["NFLTeam"]; - this.RecepientTeamID = source["RecepientTeamID"]; - this.RecepientTeam = source["RecepientTeam"]; - this.IsTradeAccepted = source["IsTradeAccepted"]; - this.IsTradeRejected = source["IsTradeRejected"]; - this.IsSynced = source["IsSynced"]; - this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOption); - this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOption); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLTeamID: number; + NFLTeam: string; + RecepientTeamID: number; + RecepientTeam: string; + IsTradeAccepted: boolean; + IsTradeRejected: boolean; + IsSynced: boolean; + NFLTeamTradeOptions: NFLTradeOption[]; + RecepientTeamTradeOptions: NFLTradeOption[]; + + 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.NFLTeam = source["NFLTeam"]; + this.RecepientTeamID = source["RecepientTeamID"]; + this.RecepientTeam = source["RecepientTeam"]; + this.IsTradeAccepted = source["IsTradeAccepted"]; + this.IsTradeRejected = source["IsTradeRejected"]; + this.IsSynced = source["IsSynced"]; + this.NFLTeamTradeOptions = this.convertValues( + source["NFLTeamTradeOptions"], + NFLTradeOption, + ); + this.RecepientTeamTradeOptions = this.convertValues( + source["RecepientTeamTradeOptions"], + NFLTradeOption, + ); + } + + 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 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"]; - } - - 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; - } + 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"]; + } + + 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 TeamRequest { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - 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"], Time); - this.TeamID = source["TeamID"]; - this.Username = source["Username"]; - this.IsApproved = source["IsApproved"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + 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"], Time); + this.TeamID = source["TeamID"]; + this.Username = source["Username"]; + this.IsApproved = source["IsApproved"]; + } + + 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 TeamRequestsResponse { - CollegeRequests: TeamRequest[]; - ProRequests: NFLRequest[]; - AcceptedTrades: NFLTradeProposal[]; - DraftPicks: NFLDraftPick[]; - - 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.AcceptedTrades = this.convertValues(source["AcceptedTrades"], NFLTradeProposal); - this.DraftPicks = this.convertValues(source["DraftPicks"], 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; - } + CollegeRequests: TeamRequest[]; + ProRequests: NFLRequest[]; + AcceptedTrades: NFLTradeProposal[]; + DraftPicks: NFLDraftPick[]; + + 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.AcceptedTrades = this.convertValues( + source["AcceptedTrades"], + NFLTradeProposal, + ); + this.DraftPicks = this.convertValues(source["DraftPicks"], 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 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - - 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"]; - this.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - } + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + + 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"]; + this.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + } } - 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.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; - } + 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.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 CreateRecruitProfileDto { - PlayerID: number; - 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.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"]; - } - - 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; - } + PlayerID: number; + 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.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"]; + } + + 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 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"]; - } + 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; - 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); - } - - 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; - } + 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); + } + + 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 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.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 { - 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; - } + 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.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 { + 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 UpdateRecruitingBoardDTO { - Profile: RecruitingTeamProfile; - Recruits: RecruitPlayerProfile[]; - TeamID: number; - - 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"]; - } - - 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; - } + Profile: RecruitingTeamProfile; + Recruits: RecruitPlayerProfile[]; + TeamID: number; + + 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"]; + } + + 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 { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - RecruitID: number; - TeamProfileID: number; - RecruitProfileID: number; - WeekID: number; - Points: number; - RESAffectedPoints: number; - RES: 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"], 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.RES = source["RES"]; - this.AffinityOneApplied = source["AffinityOneApplied"]; - this.AffinityTwoApplied = source["AffinityTwoApplied"]; - this.CaughtCheating = source["CaughtCheating"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + RecruitID: number; + TeamProfileID: number; + RecruitProfileID: number; + WeekID: number; + Points: number; + RESAffectedPoints: number; + RES: 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"], 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.RES = source["RES"]; + this.AffinityOneApplied = source["AffinityOneApplied"]; + this.AffinityTwoApplied = source["AffinityTwoApplied"]; + this.CaughtCheating = source["CaughtCheating"]; + } + + 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 RedshirtDTO { - PlayerID: number; - RedshirtStatus: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.RedshirtStatus = source["RedshirtStatus"]; - } + 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; - } + 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; - } + 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.SeasonID = source["SeasonID"]; - 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 { - 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; - } + 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.SeasonID = source["SeasonID"]; + 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 { + 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); - } - - 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; - } + 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); + } + + 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 TransferPortalBoardDto { - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - 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; - } + Profiles: TransferPortalProfile[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + 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 { - 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; - } + 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 { + 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 NFLUDFAProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLUDFABoardID: number; - PlayerID: number; - PlayerName: string; - Position: string; - TeamID: number; - TeamAbbr: string; - Points: number; - IsSigned: 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.NFLUDFABoardID = source["NFLUDFABoardID"]; - this.PlayerID = source["PlayerID"]; - this.PlayerName = source["PlayerName"]; - this.Position = source["Position"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Points = source["Points"]; - this.IsSigned = source["IsSigned"]; - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLUDFABoardID: number; + PlayerID: number; + PlayerName: string; + Position: string; + TeamID: number; + TeamAbbr: string; + Points: number; + IsSigned: 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.NFLUDFABoardID = source["NFLUDFABoardID"]; + this.PlayerID = source["PlayerID"]; + this.PlayerName = source["PlayerName"]; + this.Position = source["Position"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Points = source["Points"]; + this.IsSigned = source["IsSigned"]; + } + + 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 NFLUDFABoard { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - TeamID: number; - TeamAbbr: string; - Profiles: NFLUDFAProfile[]; - - 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.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Profiles = this.convertValues(source["Profiles"], NFLUDFAProfile); - } - - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + TeamID: number; + TeamAbbr: string; + Profiles: NFLUDFAProfile[]; + + 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.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.Profiles = this.convertValues(source["Profiles"], NFLUDFAProfile); + } + + 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 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"]; - } + 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"]; - } + 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 { - 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; - } + 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 { + 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 NFLDraftPageResponse { - WarRoom: NFLWarRoom; - DraftablePlayers: NFLDraftee[]; - NFLTeams: NFLTeam[]; - AllDraftPicks: NFLDraftPick[][]; - CollegeTeams: CollegeTeam[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.WarRoom = this.convertValues(source["WarRoom"], NFLWarRoom); - this.DraftablePlayers = this.convertValues(source["DraftablePlayers"], NFLDraftee); - this.NFLTeams = this.convertValues(source["NFLTeams"], NFLTeam); - this.AllDraftPicks = this.convertValues(source["AllDraftPicks"], NFLDraftPick); - this.CollegeTeams = this.convertValues(source["CollegeTeams"], CollegeTeam); - } - - 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; - } + WarRoom: NFLWarRoom; + DraftablePlayers: NFLDraftee[]; + NFLTeams: NFLTeam[]; + AllDraftPicks: NFLDraftPick[][]; + CollegeTeams: CollegeTeam[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.WarRoom = this.convertValues(source["WarRoom"], NFLWarRoom); + this.DraftablePlayers = this.convertValues( + source["DraftablePlayers"], + NFLDraftee, + ); + this.NFLTeams = this.convertValues(source["NFLTeams"], NFLTeam); + this.AllDraftPicks = this.convertValues( + source["AllDraftPicks"], + NFLDraftPick, + ); + this.CollegeTeams = this.convertValues(source["CollegeTeams"], CollegeTeam); + } + + 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 ScoutingProfileDTO { - PlayerID: number; - TeamID: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - } + PlayerID: number; + TeamID: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + } } export class ScoutingDataResponse { - DrafteeSeasonStats: CollegePlayerSeasonStats; - TeamStandings: CollegeStandings; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.DrafteeSeasonStats = this.convertValues(source["DrafteeSeasonStats"], CollegePlayerSeasonStats); - this.TeamStandings = this.convertValues(source["TeamStandings"], CollegeStandings); - } - - 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; - } + DrafteeSeasonStats: CollegePlayerSeasonStats; + TeamStandings: CollegeStandings; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.DrafteeSeasonStats = this.convertValues( + source["DrafteeSeasonStats"], + CollegePlayerSeasonStats, + ); + this.TeamStandings = this.convertValues( + source["TeamStandings"], + CollegeStandings, + ); + } + + 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 RevealAttributeDTO { - ScoutProfileID: number; - Attribute: string; - Points: number; - TeamID: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ScoutProfileID = source["ScoutProfileID"]; - this.Attribute = source["Attribute"]; - this.Points = source["Points"]; - this.TeamID = source["TeamID"]; - } + ScoutProfileID: number; + Attribute: string; + Points: number; + TeamID: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ScoutProfileID = source["ScoutProfileID"]; + this.Attribute = source["Attribute"]; + this.Points = source["Points"]; + this.TeamID = source["TeamID"]; + } } export class ExportDraftPicksDTO { - DraftPicks: NFLDraftPick[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.DraftPicks = this.convertValues(source["DraftPicks"], 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; - } + DraftPicks: NFLDraftPick[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.DraftPicks = this.convertValues(source["DraftPicks"], 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 CollegePlayerResponse { - ID: number; - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - TeamID: number; - TeamAbbr: string; - City: string; - State: string; - Year: number; - IsRedshirt: boolean; - ConferenceID: number; - Conference: string; - Stats: CollegePlayerStats; - SeasonStats: CollegePlayerSeasonStats; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.ConferenceID = source["ConferenceID"]; - this.Conference = source["Conference"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - } - - 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; - } + ID: number; + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + TeamID: number; + TeamAbbr: string; + City: string; + State: string; + Year: number; + IsRedshirt: boolean; + ConferenceID: number; + Conference: string; + Stats: CollegePlayerStats; + SeasonStats: CollegePlayerSeasonStats; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.ConferenceID = source["ConferenceID"]; + this.Conference = source["Conference"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues( + source["SeasonStats"], + CollegePlayerSeasonStats, + ); + } + + 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 NFLPlayerResponse { - ID: number; - 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; - ProgramPref: number; - ProfDevPref: number; - TraditionsPref: number; - FacilitiesPref: number; - AtmospherePref: number; - AcademicsPref: number; - ConferencePref: number; - CoachPref: number; - SeasonMomentumPref: number; - CampusLifePref: number; - ReligionPref: number; - ServiceAcademyPref: number; - SmallTownPref: number; - BigCityPref: number; - MediaSpotlightPref: number; - TeamID: number; - TeamAbbr: string; - City: string; - State: string; - Year: number; - ConferenceID: number; - Conference: string; - DivisionID: number; - Division: string; - Stats: NFLPlayerStats; - SeasonStats: NFLPlayerSeasonStats; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - 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.ProgramPref = source["ProgramPref"]; - this.ProfDevPref = source["ProfDevPref"]; - this.TraditionsPref = source["TraditionsPref"]; - this.FacilitiesPref = source["FacilitiesPref"]; - this.AtmospherePref = source["AtmospherePref"]; - this.AcademicsPref = source["AcademicsPref"]; - this.ConferencePref = source["ConferencePref"]; - this.CoachPref = source["CoachPref"]; - this.SeasonMomentumPref = source["SeasonMomentumPref"]; - this.CampusLifePref = source["CampusLifePref"]; - this.ReligionPref = source["ReligionPref"]; - this.ServiceAcademyPref = source["ServiceAcademyPref"]; - this.SmallTownPref = source["SmallTownPref"]; - this.BigCityPref = source["BigCityPref"]; - this.MediaSpotlightPref = source["MediaSpotlightPref"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.ConferenceID = source["ConferenceID"]; - this.Conference = source["Conference"]; - this.DivisionID = source["DivisionID"]; - this.Division = source["Division"]; - this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], NFLPlayerSeasonStats); - } - - 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; - } + ID: number; + 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; + ProgramPref: number; + ProfDevPref: number; + TraditionsPref: number; + FacilitiesPref: number; + AtmospherePref: number; + AcademicsPref: number; + ConferencePref: number; + CoachPref: number; + SeasonMomentumPref: number; + CampusLifePref: number; + ReligionPref: number; + ServiceAcademyPref: number; + SmallTownPref: number; + BigCityPref: number; + MediaSpotlightPref: number; + TeamID: number; + TeamAbbr: string; + City: string; + State: string; + Year: number; + ConferenceID: number; + Conference: string; + DivisionID: number; + Division: string; + Stats: NFLPlayerStats; + SeasonStats: NFLPlayerSeasonStats; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + 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.ProgramPref = source["ProgramPref"]; + this.ProfDevPref = source["ProfDevPref"]; + this.TraditionsPref = source["TraditionsPref"]; + this.FacilitiesPref = source["FacilitiesPref"]; + this.AtmospherePref = source["AtmospherePref"]; + this.AcademicsPref = source["AcademicsPref"]; + this.ConferencePref = source["ConferencePref"]; + this.CoachPref = source["CoachPref"]; + this.SeasonMomentumPref = source["SeasonMomentumPref"]; + this.CampusLifePref = source["CampusLifePref"]; + this.ReligionPref = source["ReligionPref"]; + this.ServiceAcademyPref = source["ServiceAcademyPref"]; + this.SmallTownPref = source["SmallTownPref"]; + this.BigCityPref = source["BigCityPref"]; + this.MediaSpotlightPref = source["MediaSpotlightPref"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.ConferenceID = source["ConferenceID"]; + this.Conference = source["Conference"]; + this.DivisionID = source["DivisionID"]; + this.Division = source["Division"]; + this.Stats = this.convertValues(source["Stats"], NFLPlayerStats); + this.SeasonStats = this.convertValues( + source["SeasonStats"], + NFLPlayerSeasonStats, + ); + } + + 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 CollegePlayerCSV { - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PositionTwo: string; - ArchetypeTwo: string; - Year: string; - Team: string; - PreviousTeam: string; - Age: number; - Stars: number; - HighSchool: string; - City: string; - State: string; - College: string; - Height: number; - Weight: number; - Shotgun: number; - 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; - PotentialGrade: string; - RedshirtStatus: string; - Stats: CollegePlayerStats[]; - - 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.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Year = source["Year"]; - this.Team = source["Team"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.College = source["College"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Shotgun = source["Shotgun"]; - 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.PotentialGrade = source["PotentialGrade"]; - this.RedshirtStatus = source["RedshirtStatus"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - } - - 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; - } + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PositionTwo: string; + ArchetypeTwo: string; + Year: string; + Team: string; + PreviousTeam: string; + Age: number; + Stars: number; + HighSchool: string; + City: string; + State: string; + College: string; + Height: number; + Weight: number; + Shotgun: number; + 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; + PotentialGrade: string; + RedshirtStatus: string; + Stats: CollegePlayerStats[]; + + 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.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.Year = source["Year"]; + this.Team = source["Team"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.College = source["College"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Shotgun = source["Shotgun"]; + 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.PotentialGrade = source["PotentialGrade"]; + this.RedshirtStatus = source["RedshirtStatus"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + } + + 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; - } + 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; - } + 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; - } + 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 NFLTradePreferencesDTO { - 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.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"]; - } + 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.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"]; + } } export class NFLUser { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - Username: string; - TeamID: number; - TeamAbbreviation: string; - IsOwner: boolean; - IsManager: boolean; - IsHeadCoach: boolean; - IsAssistant: boolean; - TotalWins: number; - TotalLosses: number; - TotalTies: number; - ConferenceChampionships: number; - PlayoffWins: number; - PlayoffLosses: number; - SuperBowls: number; - SuperBowlLosses: number; - 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"], Time); - this.Username = source["Username"]; - this.TeamID = source["TeamID"]; - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.IsOwner = source["IsOwner"]; - this.IsManager = source["IsManager"]; - this.IsHeadCoach = source["IsHeadCoach"]; - this.IsAssistant = source["IsAssistant"]; - this.TotalWins = source["TotalWins"]; - this.TotalLosses = source["TotalLosses"]; - this.TotalTies = source["TotalTies"]; - this.ConferenceChampionships = source["ConferenceChampionships"]; - this.PlayoffWins = source["PlayoffWins"]; - this.PlayoffLosses = source["PlayoffLosses"]; - this.SuperBowls = source["SuperBowls"]; - this.SuperBowlLosses = source["SuperBowlLosses"]; - 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; - } + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + Username: string; + TeamID: number; + TeamAbbreviation: string; + IsOwner: boolean; + IsManager: boolean; + IsHeadCoach: boolean; + IsAssistant: boolean; + TotalWins: number; + TotalLosses: number; + TotalTies: number; + ConferenceChampionships: number; + PlayoffWins: number; + PlayoffLosses: number; + SuperBowls: number; + SuperBowlLosses: number; + 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"], Time); + this.Username = source["Username"]; + this.TeamID = source["TeamID"]; + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.IsOwner = source["IsOwner"]; + this.IsManager = source["IsManager"]; + this.IsHeadCoach = source["IsHeadCoach"]; + this.IsAssistant = source["IsAssistant"]; + this.TotalWins = source["TotalWins"]; + this.TotalLosses = source["TotalLosses"]; + this.TotalTies = source["TotalTies"]; + this.ConferenceChampionships = source["ConferenceChampionships"]; + this.PlayoffWins = source["PlayoffWins"]; + this.PlayoffLosses = source["PlayoffLosses"]; + this.SuperBowls = source["SuperBowls"]; + this.SuperBowlLosses = source["SuperBowlLosses"]; + 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 PlayByPlayResponse { - PlayNumber: number; - HomeTeamID: number; - HomeTeamScore: number; - AwayTeamID: number; - AwayTeamScore: number; - Quarter: number; - Possession: string; - TimeRemaining: string; - Down: number; - Distance: number; - LineOfScrimmage: string; - PlayType: string; - PlayName: string; - OffensiveFormation: string; - DefensiveFormation: string; - PointOfAttack: string; - DefensiveTendency: string; - BlitzNumber: number; - LBCoverage: string; - CBCoverage: string; - SCoverage: string; - QBPlayerID: number; - BallCarrierID: number; - Tackler1ID: number; - Tackler2ID: number; - PresureID: number; - 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; - Lcb: number; - Blitzer1: number; - Blitzer2: number; - Blitzer3: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayNumber = source["PlayNumber"]; - this.HomeTeamID = source["HomeTeamID"]; - this.HomeTeamScore = source["HomeTeamScore"]; - this.AwayTeamID = source["AwayTeamID"]; - this.AwayTeamScore = source["AwayTeamScore"]; - this.Quarter = source["Quarter"]; - this.Possession = source["Possession"]; - this.TimeRemaining = source["TimeRemaining"]; - this.Down = source["Down"]; - this.Distance = source["Distance"]; - this.LineOfScrimmage = source["LineOfScrimmage"]; - this.PlayType = source["PlayType"]; - this.PlayName = source["PlayName"]; - this.OffensiveFormation = source["OffensiveFormation"]; - this.DefensiveFormation = source["DefensiveFormation"]; - this.PointOfAttack = source["PointOfAttack"]; - this.DefensiveTendency = source["DefensiveTendency"]; - this.BlitzNumber = source["BlitzNumber"]; - this.LBCoverage = source["LBCoverage"]; - this.CBCoverage = source["CBCoverage"]; - this.SCoverage = source["SCoverage"]; - this.QBPlayerID = source["QBPlayerID"]; - this.BallCarrierID = source["BallCarrierID"]; - this.Tackler1ID = source["Tackler1ID"]; - this.Tackler2ID = source["Tackler2ID"]; - this.PresureID = source["PresureID"]; - 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.Lcb = source["Lcb"]; - this.Blitzer1 = source["Blitzer1"]; - this.Blitzer2 = source["Blitzer2"]; - this.Blitzer3 = source["Blitzer3"]; - } + PlayNumber: number; + HomeTeamID: number; + HomeTeamScore: number; + AwayTeamID: number; + AwayTeamScore: number; + Quarter: number; + Possession: string; + TimeRemaining: string; + Down: number; + Distance: number; + LineOfScrimmage: string; + PlayType: string; + PlayName: string; + OffensiveFormation: string; + DefensiveFormation: string; + PointOfAttack: string; + DefensiveTendency: string; + BlitzNumber: number; + LBCoverage: string; + CBCoverage: string; + SCoverage: string; + QBPlayerID: number; + BallCarrierID: number; + Tackler1ID: number; + Tackler2ID: number; + PresureID: number; + 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; + Lcb: number; + Blitzer1: number; + Blitzer2: number; + Blitzer3: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.PlayNumber = source["PlayNumber"]; + this.HomeTeamID = source["HomeTeamID"]; + this.HomeTeamScore = source["HomeTeamScore"]; + this.AwayTeamID = source["AwayTeamID"]; + this.AwayTeamScore = source["AwayTeamScore"]; + this.Quarter = source["Quarter"]; + this.Possession = source["Possession"]; + this.TimeRemaining = source["TimeRemaining"]; + this.Down = source["Down"]; + this.Distance = source["Distance"]; + this.LineOfScrimmage = source["LineOfScrimmage"]; + this.PlayType = source["PlayType"]; + this.PlayName = source["PlayName"]; + this.OffensiveFormation = source["OffensiveFormation"]; + this.DefensiveFormation = source["DefensiveFormation"]; + this.PointOfAttack = source["PointOfAttack"]; + this.DefensiveTendency = source["DefensiveTendency"]; + this.BlitzNumber = source["BlitzNumber"]; + this.LBCoverage = source["LBCoverage"]; + this.CBCoverage = source["CBCoverage"]; + this.SCoverage = source["SCoverage"]; + this.QBPlayerID = source["QBPlayerID"]; + this.BallCarrierID = source["BallCarrierID"]; + this.Tackler1ID = source["Tackler1ID"]; + this.Tackler2ID = source["Tackler2ID"]; + this.PresureID = source["PresureID"]; + 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.Lcb = source["Lcb"]; + this.Blitzer1 = source["Blitzer1"]; + this.Blitzer2 = source["Blitzer2"]; + this.Blitzer3 = source["Blitzer3"]; + } } export class ScoreBoard { - Q1Home: number; - Q2Home: number; - Q3Home: number; - Q4Home: number; - OT1Home: number; - OT2Home: number; - OT3Home: number; - OT4Home: number; - Q1Away: number; - Q2Away: number; - Q3Away: number; - Q4Away: number; - OT1Away: number; - OT2Away: number; - OT3Away: number; - OT4Away: number; - HomeOffensiveScheme: string; - HomeDefensiveScheme: string; - AwayOffensiveScheme: string; - AwayDefensiveScheme: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Q1Home = source["Q1Home"]; - this.Q2Home = source["Q2Home"]; - this.Q3Home = source["Q3Home"]; - this.Q4Home = source["Q4Home"]; - this.OT1Home = source["OT1Home"]; - this.OT2Home = source["OT2Home"]; - this.OT3Home = source["OT3Home"]; - this.OT4Home = source["OT4Home"]; - this.Q1Away = source["Q1Away"]; - this.Q2Away = source["Q2Away"]; - this.Q3Away = source["Q3Away"]; - this.Q4Away = source["Q4Away"]; - this.OT1Away = source["OT1Away"]; - this.OT2Away = source["OT2Away"]; - this.OT3Away = source["OT3Away"]; - this.OT4Away = source["OT4Away"]; - this.HomeOffensiveScheme = source["HomeOffensiveScheme"]; - this.HomeDefensiveScheme = source["HomeDefensiveScheme"]; - this.AwayOffensiveScheme = source["AwayOffensiveScheme"]; - this.AwayDefensiveScheme = source["AwayDefensiveScheme"]; - } + Q1Home: number; + Q2Home: number; + Q3Home: number; + Q4Home: number; + OT1Home: number; + OT2Home: number; + OT3Home: number; + OT4Home: number; + Q1Away: number; + Q2Away: number; + Q3Away: number; + Q4Away: number; + OT1Away: number; + OT2Away: number; + OT3Away: number; + OT4Away: number; + HomeOffensiveScheme: string; + HomeDefensiveScheme: string; + AwayOffensiveScheme: string; + AwayDefensiveScheme: string; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.Q1Home = source["Q1Home"]; + this.Q2Home = source["Q2Home"]; + this.Q3Home = source["Q3Home"]; + this.Q4Home = source["Q4Home"]; + this.OT1Home = source["OT1Home"]; + this.OT2Home = source["OT2Home"]; + this.OT3Home = source["OT3Home"]; + this.OT4Home = source["OT4Home"]; + this.Q1Away = source["Q1Away"]; + this.Q2Away = source["Q2Away"]; + this.Q3Away = source["Q3Away"]; + this.Q4Away = source["Q4Away"]; + this.OT1Away = source["OT1Away"]; + this.OT2Away = source["OT2Away"]; + this.OT3Away = source["OT3Away"]; + this.OT4Away = source["OT4Away"]; + this.HomeOffensiveScheme = source["HomeOffensiveScheme"]; + this.HomeDefensiveScheme = source["HomeDefensiveScheme"]; + this.AwayOffensiveScheme = source["AwayOffensiveScheme"]; + this.AwayDefensiveScheme = source["AwayDefensiveScheme"]; + } } export class GameResultsPlayer { - ID: number; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - TeamAbbr: string; - League: string; - Year: number; - PassingYards: number; - PassAttempts: number; - PassCompletions: number; - PassingTDs: number; - Interceptions: number; - LongestPass: number; - Sacks: number; - RushAttempts: number; - RushingYards: number; - RushingTDs: number; - Fumbles: number; - LongestRush: number; - Targets: number; - Catches: number; - ReceivingYards: number; - ReceivingTDs: number; - LongestReception: number; - SoloTackles: number; - AssistedTackles: number; - TacklesForLoss: number; - SacksMade: number; - ForcedFumbles: number; - RecoveredFumbles: number; - PassDeflections: number; - InterceptionsCaught: number; - Safeties: number; - DefensiveTDs: number; - FGMade: number; - FGAttempts: number; - LongestFG: number; - ExtraPointsMade: number; - ExtraPointsAttempted: number; - KickoffTouchbacks: number; - Punts: number; - PuntTouchbacks: number; - PuntsInside20: number; - KickReturns: number; - KickReturnTDs: number; - KickReturnYards: number; - PuntReturns: number; - PuntReturnTDs: number; - PuntReturnYards: number; - STSoloTackles: number; - STAssistedTackles: number; - PuntsBlocked: number; - FGBlocked: number; - Snaps: number; - Pancakes: number; - SacksAllowed: number; - PlayedGame: number; - StartedGame: number; - WasInjured: boolean; - WeeksOfRecovery: number; - InjuryType: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.TeamAbbr = source["TeamAbbr"]; - this.League = source["League"]; - this.Year = source["Year"]; - this.PassingYards = source["PassingYards"]; - this.PassAttempts = source["PassAttempts"]; - this.PassCompletions = source["PassCompletions"]; - this.PassingTDs = source["PassingTDs"]; - this.Interceptions = source["Interceptions"]; - this.LongestPass = source["LongestPass"]; - this.Sacks = source["Sacks"]; - this.RushAttempts = source["RushAttempts"]; - this.RushingYards = source["RushingYards"]; - this.RushingTDs = source["RushingTDs"]; - this.Fumbles = source["Fumbles"]; - this.LongestRush = source["LongestRush"]; - this.Targets = source["Targets"]; - this.Catches = source["Catches"]; - this.ReceivingYards = source["ReceivingYards"]; - this.ReceivingTDs = source["ReceivingTDs"]; - this.LongestReception = source["LongestReception"]; - this.SoloTackles = source["SoloTackles"]; - this.AssistedTackles = source["AssistedTackles"]; - this.TacklesForLoss = source["TacklesForLoss"]; - this.SacksMade = source["SacksMade"]; - this.ForcedFumbles = source["ForcedFumbles"]; - this.RecoveredFumbles = source["RecoveredFumbles"]; - this.PassDeflections = source["PassDeflections"]; - this.InterceptionsCaught = source["InterceptionsCaught"]; - this.Safeties = source["Safeties"]; - this.DefensiveTDs = source["DefensiveTDs"]; - this.FGMade = source["FGMade"]; - this.FGAttempts = source["FGAttempts"]; - this.LongestFG = source["LongestFG"]; - this.ExtraPointsMade = source["ExtraPointsMade"]; - this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; - this.KickoffTouchbacks = source["KickoffTouchbacks"]; - this.Punts = source["Punts"]; - this.PuntTouchbacks = source["PuntTouchbacks"]; - this.PuntsInside20 = source["PuntsInside20"]; - this.KickReturns = source["KickReturns"]; - this.KickReturnTDs = source["KickReturnTDs"]; - this.KickReturnYards = source["KickReturnYards"]; - this.PuntReturns = source["PuntReturns"]; - this.PuntReturnTDs = source["PuntReturnTDs"]; - this.PuntReturnYards = source["PuntReturnYards"]; - this.STSoloTackles = source["STSoloTackles"]; - this.STAssistedTackles = source["STAssistedTackles"]; - this.PuntsBlocked = source["PuntsBlocked"]; - this.FGBlocked = source["FGBlocked"]; - this.Snaps = source["Snaps"]; - this.Pancakes = source["Pancakes"]; - this.SacksAllowed = source["SacksAllowed"]; - this.PlayedGame = source["PlayedGame"]; - this.StartedGame = source["StartedGame"]; - this.WasInjured = source["WasInjured"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryType = source["InjuryType"]; - } + ID: number; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + TeamAbbr: string; + League: string; + Year: number; + PassingYards: number; + PassAttempts: number; + PassCompletions: number; + PassingTDs: number; + Interceptions: number; + LongestPass: number; + Sacks: number; + RushAttempts: number; + RushingYards: number; + RushingTDs: number; + Fumbles: number; + LongestRush: number; + Targets: number; + Catches: number; + ReceivingYards: number; + ReceivingTDs: number; + LongestReception: number; + SoloTackles: number; + AssistedTackles: number; + TacklesForLoss: number; + SacksMade: number; + ForcedFumbles: number; + RecoveredFumbles: number; + PassDeflections: number; + InterceptionsCaught: number; + Safeties: number; + DefensiveTDs: number; + FGMade: number; + FGAttempts: number; + LongestFG: number; + ExtraPointsMade: number; + ExtraPointsAttempted: number; + KickoffTouchbacks: number; + Punts: number; + PuntTouchbacks: number; + PuntsInside20: number; + KickReturns: number; + KickReturnTDs: number; + KickReturnYards: number; + PuntReturns: number; + PuntReturnTDs: number; + PuntReturnYards: number; + STSoloTackles: number; + STAssistedTackles: number; + PuntsBlocked: number; + FGBlocked: number; + Snaps: number; + Pancakes: number; + SacksAllowed: number; + PlayedGame: number; + StartedGame: number; + WasInjured: boolean; + WeeksOfRecovery: number; + InjuryType: string; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.TeamAbbr = source["TeamAbbr"]; + this.League = source["League"]; + this.Year = source["Year"]; + this.PassingYards = source["PassingYards"]; + this.PassAttempts = source["PassAttempts"]; + this.PassCompletions = source["PassCompletions"]; + this.PassingTDs = source["PassingTDs"]; + this.Interceptions = source["Interceptions"]; + this.LongestPass = source["LongestPass"]; + this.Sacks = source["Sacks"]; + this.RushAttempts = source["RushAttempts"]; + this.RushingYards = source["RushingYards"]; + this.RushingTDs = source["RushingTDs"]; + this.Fumbles = source["Fumbles"]; + this.LongestRush = source["LongestRush"]; + this.Targets = source["Targets"]; + this.Catches = source["Catches"]; + this.ReceivingYards = source["ReceivingYards"]; + this.ReceivingTDs = source["ReceivingTDs"]; + this.LongestReception = source["LongestReception"]; + this.SoloTackles = source["SoloTackles"]; + this.AssistedTackles = source["AssistedTackles"]; + this.TacklesForLoss = source["TacklesForLoss"]; + this.SacksMade = source["SacksMade"]; + this.ForcedFumbles = source["ForcedFumbles"]; + this.RecoveredFumbles = source["RecoveredFumbles"]; + this.PassDeflections = source["PassDeflections"]; + this.InterceptionsCaught = source["InterceptionsCaught"]; + this.Safeties = source["Safeties"]; + this.DefensiveTDs = source["DefensiveTDs"]; + this.FGMade = source["FGMade"]; + this.FGAttempts = source["FGAttempts"]; + this.LongestFG = source["LongestFG"]; + this.ExtraPointsMade = source["ExtraPointsMade"]; + this.ExtraPointsAttempted = source["ExtraPointsAttempted"]; + this.KickoffTouchbacks = source["KickoffTouchbacks"]; + this.Punts = source["Punts"]; + this.PuntTouchbacks = source["PuntTouchbacks"]; + this.PuntsInside20 = source["PuntsInside20"]; + this.KickReturns = source["KickReturns"]; + this.KickReturnTDs = source["KickReturnTDs"]; + this.KickReturnYards = source["KickReturnYards"]; + this.PuntReturns = source["PuntReturns"]; + this.PuntReturnTDs = source["PuntReturnTDs"]; + this.PuntReturnYards = source["PuntReturnYards"]; + this.STSoloTackles = source["STSoloTackles"]; + this.STAssistedTackles = source["STAssistedTackles"]; + this.PuntsBlocked = source["PuntsBlocked"]; + this.FGBlocked = source["FGBlocked"]; + this.Snaps = source["Snaps"]; + this.Pancakes = source["Pancakes"]; + this.SacksAllowed = source["SacksAllowed"]; + this.PlayedGame = source["PlayedGame"]; + this.StartedGame = source["StartedGame"]; + this.WasInjured = source["WasInjured"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryType = source["InjuryType"]; + } } export class GameResultsResponse { - HomePlayers: GameResultsPlayer[]; - AwayPlayers: GameResultsPlayer[]; - PlayByPlays: PlayByPlayResponse[]; - Score: ScoreBoard; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.HomePlayers = this.convertValues(source["HomePlayers"], GameResultsPlayer); - this.AwayPlayers = this.convertValues(source["AwayPlayers"], GameResultsPlayer); - this.PlayByPlays = this.convertValues(source["PlayByPlays"], PlayByPlayResponse); - this.Score = this.convertValues(source["Score"], ScoreBoard); - } - - 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; - } + HomePlayers: GameResultsPlayer[]; + AwayPlayers: GameResultsPlayer[]; + PlayByPlays: PlayByPlayResponse[]; + Score: ScoreBoard; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.HomePlayers = this.convertValues( + source["HomePlayers"], + GameResultsPlayer, + ); + this.AwayPlayers = this.convertValues( + source["AwayPlayers"], + GameResultsPlayer, + ); + this.PlayByPlays = this.convertValues( + source["PlayByPlays"], + PlayByPlayResponse, + ); + this.Score = this.convertValues(source["Score"], ScoreBoard); + } + + 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 TopPlayer { - PlayerID: number; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PositionTwo: string; - ArchetypeTwo: string; - OverallGrade: string; - Overall: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.PlayerID = source["PlayerID"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.OverallGrade = source["OverallGrade"]; - this.Overall = source["Overall"]; - } + PlayerID: number; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PositionTwo: string; + ArchetypeTwo: string; + OverallGrade: string; + Overall: number; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.PlayerID = source["PlayerID"]; + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.OverallGrade = source["OverallGrade"]; + this.Overall = source["Overall"]; + } } export class TeamRecordResponse { - OverallWins: number; - OverallLosses: number; - CurrentSeasonWins: number; - CurrentSeasonLosses: number; - BowlWins: number; - BowlLosses: number; - ConferenceChampionships: string[]; - DivisionTitles: string[]; - NationalChampionships: string[]; - TopPlayers: TopPlayer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.OverallWins = source["OverallWins"]; - this.OverallLosses = source["OverallLosses"]; - this.CurrentSeasonWins = source["CurrentSeasonWins"]; - this.CurrentSeasonLosses = source["CurrentSeasonLosses"]; - this.BowlWins = source["BowlWins"]; - this.BowlLosses = source["BowlLosses"]; - this.ConferenceChampionships = source["ConferenceChampionships"]; - this.DivisionTitles = source["DivisionTitles"]; - this.NationalChampionships = source["NationalChampionships"]; - this.TopPlayers = this.convertValues(source["TopPlayers"], TopPlayer); - } - - 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; - } + OverallWins: number; + OverallLosses: number; + CurrentSeasonWins: number; + CurrentSeasonLosses: number; + BowlWins: number; + BowlLosses: number; + ConferenceChampionships: string[]; + DivisionTitles: string[]; + NationalChampionships: string[]; + TopPlayers: TopPlayer[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.OverallWins = source["OverallWins"]; + this.OverallLosses = source["OverallLosses"]; + this.CurrentSeasonWins = source["CurrentSeasonWins"]; + this.CurrentSeasonLosses = source["CurrentSeasonLosses"]; + this.BowlWins = source["BowlWins"]; + this.BowlLosses = source["BowlLosses"]; + this.ConferenceChampionships = source["ConferenceChampionships"]; + this.DivisionTitles = source["DivisionTitles"]; + this.NationalChampionships = source["NationalChampionships"]; + this.TopPlayers = this.convertValues(source["TopPlayers"], TopPlayer); + } + + 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 InboxResponse { - CFBNotifications: Notification[]; - NFLNotifications: Notification[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CFBNotifications = this.convertValues(source["CFBNotifications"], Notification); - this.NFLNotifications = this.convertValues(source["NFLNotifications"], Notification); - } - - 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; - } + CFBNotifications: Notification[]; + NFLNotifications: Notification[]; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.CFBNotifications = this.convertValues( + source["CFBNotifications"], + Notification, + ); + this.NFLNotifications = this.convertValues( + source["NFLNotifications"], + Notification, + ); + } + + 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 CollusionDto { - WeekID: number; - SeasonID: number; - Message: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.WeekID = source["WeekID"]; - this.SeasonID = source["SeasonID"]; - this.Message = source["Message"]; - } + WeekID: number; + SeasonID: number; + Message: string; + + constructor(source: any = {}) { + if ("string" === typeof source) source = JSON.parse(source); + this.WeekID = source["WeekID"]; + this.SeasonID = source["SeasonID"]; + this.Message = source["Message"]; + } } export class Timestamp { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - CollegeWeekID: number; - CollegeWeek: number; - CollegeSeasonID: number; - Season: number; - NFLSeasonID: number; - NFLWeekID: number; - NFLWeek: number; - CFBSpringGames: boolean; - ThursdayGames: boolean; - FridayGames: boolean; - SaturdayMorning: boolean; - SaturdayNoon: boolean; - SaturdayEvening: boolean; - SaturdayNight: boolean; - CollegePollRan: boolean; - NFLThursday: boolean; - NFLSundayNoon: boolean; - NFLSundayAfternoon: boolean; - NFLSundayEvening: boolean; - NFLMondayEvening: boolean; - NFLTradingAllowed: boolean; - NFLPreseason: boolean; - RecruitingEfficiencySynced: boolean; - RecruitingSynced: boolean; - GMActionsCompleted: boolean; - IsOffSeason: boolean; - IsNFLOffSeason: boolean; - IsRecruitingLocked: boolean; - AIDepthchartsSync: boolean; - AIRecruitingBoardsSynced: boolean; - IsFreeAgencyLocked: boolean; - PreDraftPhase: boolean; - IsDraftTime: boolean; - RunGames: boolean; - Y1Capspace: number; - Y2Capspace: number; - Y3Capspace: number; - Y4Capspace: number; - Y5Capspace: number; - DeadCapLimit: number; - FreeAgencyRound: number; - RunCron: boolean; - IsTesting: boolean; - CollegeSeasonOver: boolean; - NFLSeasonOver: boolean; - CrootsGenerated: boolean; - ProgressedCollegePlayers: boolean; - ProgressedProfessionalPlayers: boolean; - TransferPortalPhase: number; - TransferPortalRound: 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.CollegeWeekID = source["CollegeWeekID"]; - this.CollegeWeek = source["CollegeWeek"]; - this.CollegeSeasonID = source["CollegeSeasonID"]; - this.Season = source["Season"]; - this.NFLSeasonID = source["NFLSeasonID"]; - this.NFLWeekID = source["NFLWeekID"]; - this.NFLWeek = source["NFLWeek"]; - this.CFBSpringGames = source["CFBSpringGames"]; - this.ThursdayGames = source["ThursdayGames"]; - this.FridayGames = source["FridayGames"]; - this.SaturdayMorning = source["SaturdayMorning"]; - this.SaturdayNoon = source["SaturdayNoon"]; - this.SaturdayEvening = source["SaturdayEvening"]; - this.SaturdayNight = source["SaturdayNight"]; - this.CollegePollRan = source["CollegePollRan"]; - this.NFLThursday = source["NFLThursday"]; - this.NFLSundayNoon = source["NFLSundayNoon"]; - this.NFLSundayAfternoon = source["NFLSundayAfternoon"]; - this.NFLSundayEvening = source["NFLSundayEvening"]; - this.NFLMondayEvening = source["NFLMondayEvening"]; - this.NFLTradingAllowed = source["NFLTradingAllowed"]; - this.NFLPreseason = source["NFLPreseason"]; - this.RecruitingEfficiencySynced = source["RecruitingEfficiencySynced"]; - this.RecruitingSynced = source["RecruitingSynced"]; - this.GMActionsCompleted = source["GMActionsCompleted"]; - this.IsOffSeason = source["IsOffSeason"]; - this.IsNFLOffSeason = source["IsNFLOffSeason"]; - this.IsRecruitingLocked = source["IsRecruitingLocked"]; - this.AIDepthchartsSync = source["AIDepthchartsSync"]; - this.AIRecruitingBoardsSynced = source["AIRecruitingBoardsSynced"]; - this.IsFreeAgencyLocked = source["IsFreeAgencyLocked"]; - this.PreDraftPhase = source["PreDraftPhase"]; - this.IsDraftTime = source["IsDraftTime"]; - this.RunGames = source["RunGames"]; - this.Y1Capspace = source["Y1Capspace"]; - this.Y2Capspace = source["Y2Capspace"]; - this.Y3Capspace = source["Y3Capspace"]; - this.Y4Capspace = source["Y4Capspace"]; - this.Y5Capspace = source["Y5Capspace"]; - this.DeadCapLimit = source["DeadCapLimit"]; - this.FreeAgencyRound = source["FreeAgencyRound"]; - this.RunCron = source["RunCron"]; - this.IsTesting = source["IsTesting"]; - this.CollegeSeasonOver = source["CollegeSeasonOver"]; - this.NFLSeasonOver = source["NFLSeasonOver"]; - this.CrootsGenerated = source["CrootsGenerated"]; - this.ProgressedCollegePlayers = source["ProgressedCollegePlayers"]; - this.ProgressedProfessionalPlayers = source["ProgressedProfessionalPlayers"]; - this.TransferPortalPhase = source["TransferPortalPhase"]; - this.TransferPortalRound = source["TransferPortalRound"]; - } - - 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; - } -} \ No newline at end of file + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + CollegeWeekID: number; + CollegeWeek: number; + CollegeSeasonID: number; + Season: number; + NFLSeasonID: number; + NFLWeekID: number; + NFLWeek: number; + CFBSpringGames: boolean; + ThursdayGames: boolean; + FridayGames: boolean; + SaturdayMorning: boolean; + SaturdayNoon: boolean; + SaturdayEvening: boolean; + SaturdayNight: boolean; + CollegePollRan: boolean; + NFLThursday: boolean; + NFLSundayNoon: boolean; + NFLSundayAfternoon: boolean; + NFLSundayEvening: boolean; + NFLMondayEvening: boolean; + NFLTradingAllowed: boolean; + NFLPreseason: boolean; + RecruitingEfficiencySynced: boolean; + RecruitingSynced: boolean; + GMActionsCompleted: boolean; + IsOffSeason: boolean; + IsNFLOffSeason: boolean; + IsRecruitingLocked: boolean; + AIDepthchartsSync: boolean; + AIRecruitingBoardsSynced: boolean; + IsFreeAgencyLocked: boolean; + PreDraftPhase: boolean; + IsDraftTime: boolean; + RunGames: boolean; + Y1Capspace: number; + Y2Capspace: number; + Y3Capspace: number; + Y4Capspace: number; + Y5Capspace: number; + DeadCapLimit: number; + FreeAgencyRound: number; + RunCron: boolean; + IsTesting: boolean; + CollegeSeasonOver: boolean; + NFLSeasonOver: boolean; + CrootsGenerated: boolean; + ProgressedCollegePlayers: boolean; + ProgressedProfessionalPlayers: boolean; + TransferPortalPhase: number; + TransferPortalRound: 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.CollegeWeekID = source["CollegeWeekID"]; + this.CollegeWeek = source["CollegeWeek"]; + this.CollegeSeasonID = source["CollegeSeasonID"]; + this.Season = source["Season"]; + this.NFLSeasonID = source["NFLSeasonID"]; + this.NFLWeekID = source["NFLWeekID"]; + this.NFLWeek = source["NFLWeek"]; + this.CFBSpringGames = source["CFBSpringGames"]; + this.ThursdayGames = source["ThursdayGames"]; + this.FridayGames = source["FridayGames"]; + this.SaturdayMorning = source["SaturdayMorning"]; + this.SaturdayNoon = source["SaturdayNoon"]; + this.SaturdayEvening = source["SaturdayEvening"]; + this.SaturdayNight = source["SaturdayNight"]; + this.CollegePollRan = source["CollegePollRan"]; + this.NFLThursday = source["NFLThursday"]; + this.NFLSundayNoon = source["NFLSundayNoon"]; + this.NFLSundayAfternoon = source["NFLSundayAfternoon"]; + this.NFLSundayEvening = source["NFLSundayEvening"]; + this.NFLMondayEvening = source["NFLMondayEvening"]; + this.NFLTradingAllowed = source["NFLTradingAllowed"]; + this.NFLPreseason = source["NFLPreseason"]; + this.RecruitingEfficiencySynced = source["RecruitingEfficiencySynced"]; + this.RecruitingSynced = source["RecruitingSynced"]; + this.GMActionsCompleted = source["GMActionsCompleted"]; + this.IsOffSeason = source["IsOffSeason"]; + this.IsNFLOffSeason = source["IsNFLOffSeason"]; + this.IsRecruitingLocked = source["IsRecruitingLocked"]; + this.AIDepthchartsSync = source["AIDepthchartsSync"]; + this.AIRecruitingBoardsSynced = source["AIRecruitingBoardsSynced"]; + this.IsFreeAgencyLocked = source["IsFreeAgencyLocked"]; + this.PreDraftPhase = source["PreDraftPhase"]; + this.IsDraftTime = source["IsDraftTime"]; + this.RunGames = source["RunGames"]; + this.Y1Capspace = source["Y1Capspace"]; + this.Y2Capspace = source["Y2Capspace"]; + this.Y3Capspace = source["Y3Capspace"]; + this.Y4Capspace = source["Y4Capspace"]; + this.Y5Capspace = source["Y5Capspace"]; + this.DeadCapLimit = source["DeadCapLimit"]; + this.FreeAgencyRound = source["FreeAgencyRound"]; + this.RunCron = source["RunCron"]; + this.IsTesting = source["IsTesting"]; + this.CollegeSeasonOver = source["CollegeSeasonOver"]; + this.NFLSeasonOver = source["NFLSeasonOver"]; + this.CrootsGenerated = source["CrootsGenerated"]; + this.ProgressedCollegePlayers = source["ProgressedCollegePlayers"]; + this.ProgressedProfessionalPlayers = + source["ProgressedProfessionalPlayers"]; + this.TransferPortalPhase = source["TransferPortalPhase"]; + this.TransferPortalRound = source["TransferPortalRound"]; + } + + 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; + } +}