From df07058cd74aa8affc075bf40353852be4816fd2 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Tue, 10 Jun 2025 12:51:26 -0700 Subject: [PATCH 01/20] AAV mapping for offers --- structs/FreeAgencyOffer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structs/FreeAgencyOffer.go b/structs/FreeAgencyOffer.go index deaefb7..9aa1e14 100644 --- a/structs/FreeAgencyOffer.go +++ b/structs/FreeAgencyOffer.go @@ -18,6 +18,7 @@ type FreeAgencyOfferDTO struct { Y4Bonus float64 Y5BaseSalary float64 Y5Bonus float64 + AAV float64 } type FreeAgencyOffer struct { @@ -40,6 +41,7 @@ type FreeAgencyOffer struct { TotalSalary float64 ContractValue float64 BonusPercentage float64 + AAV float64 IsActive bool } @@ -117,6 +119,7 @@ type NFLExtensionOffer struct { TotalSalary float64 ContractValue float64 BonusPercentage float64 + AAV float64 Rejections int IsAccepted bool IsActive bool @@ -143,6 +146,7 @@ func (f *NFLExtensionOffer) CalculateOffer(offer FreeAgencyOfferDTO) { f.Y5BaseSalary = offer.Y5BaseSalary f.Y5Bonus = offer.Y5Bonus f.IsActive = true + f.AAV = offer.AAV // Calculate Value y1SalaryVal := f.Y1BaseSalary * 0.8 From 9835be984d176fcd94bfee7fd82c7e652e16d6c8 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Tue, 10 Jun 2025 12:54:15 -0700 Subject: [PATCH 02/20] AAV as part of calculation --- managers/FreeAgencyManager.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/managers/FreeAgencyManager.go b/managers/FreeAgencyManager.go index f6c1514..6adf334 100644 --- a/managers/FreeAgencyManager.go +++ b/managers/FreeAgencyManager.go @@ -687,7 +687,12 @@ func SyncExtensionOffers() { } else if !validation && player.FreeAgency != "Average" { minimumValueMultiplier = 1.15 } - percentage := ((e.ContractValue / (min * minimumValueMultiplier)) * 100) + minValPercentage := ((e.ContractValue / (min * minimumValueMultiplier)) * 100) + aavPercentage := ((e.AAV / (player.AAV * minimumValueMultiplier)) * 100) + percentage := minValPercentage + if aavPercentage > minValPercentage { + percentage = aavPercentage + } odds := getExtensionPercentageOdds(percentage) // Run Check on the Extension From 301f04768dfad612d9871d20816d172a93bf4afb Mon Sep 17 00:00:00 2001 From: CalebRose Date: Wed, 11 Jun 2025 08:27:13 -0700 Subject: [PATCH 03/20] Updating football models & bootstrap for recruit profiles --- ...allModels.ts-2025-06-11T08_18_18.97.backup | 8754 +++++++++++++++++ managers/BootstrapManager.go | 7 + repository/RecruitingRepository.go | 40 + ts/footballModels.ts | 28 + 4 files changed, 8829 insertions(+) create mode 100644 footballModels.ts-2025-06-11T08_18_18.97.backup create mode 100644 repository/RecruitingRepository.go diff --git a/footballModels.ts-2025-06-11T08_18_18.97.backup b/footballModels.ts-2025-06-11T08_18_18.97.backup new file mode 100644 index 0000000..f914e13 --- /dev/null +++ b/footballModels.ts-2025-06-11T08_18_18.97.backup @@ -0,0 +1,8754 @@ +/* Do not change, this code is generated from Golang structs */ + + +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"]; + } +} +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; + } +} +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; + PassLong: number; + PassScreen: number; + PassPAShort: number; + PassPALong: 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.PassLong = source["PassLong"]; + this.PassScreen = source["PassScreen"]; + this.PassPAShort = source["PassPAShort"]; + this.PassPALong = source["PassPALong"]; + 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; + Rejections: number; + IsAccepted: boolean; + 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.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.Rejections = source["Rejections"]; + this.IsAccepted = source["IsAccepted"]; + 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 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"]; + } +} +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; + 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.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.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 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; + } +} +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; + } +} +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; + 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; + 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.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.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; + } +} +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; + } +} +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; + } +} +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; + } +} +export class NFLDraftPick { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + SeasonID: number; + Season: number; + DrafteeID: number; + DraftRound: number; + DraftNumber: 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.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; + } +} +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; + } +} +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; + 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.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 Notification { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + TeamID: number; + League: string; + NotificationType: string; + Message: string; + Subject: string; + IsRead: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.TeamID = source["TeamID"]; + this.League = source["League"]; + this.NotificationType = source["NotificationType"]; + this.Message = source["Message"]; + this.Subject = source["Subject"]; + this.IsRead = source["IsRead"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + 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.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 CollegePromise { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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"], Time); + 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 NullInt64 { + Int64: number; + Valid: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Int64 = source["Int64"]; + this.Valid = source["Valid"]; + } +} +export class TransferPortalProfile { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + CollegePlayer: CollegePlayer; + Promise: CollegePromise; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.SeasonID = source["SeasonID"]; + this.CollegePlayerID = source["CollegePlayerID"]; + this.ProfileID = source["ProfileID"]; + this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.TotalPoints = source["TotalPoints"]; + this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; + this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; + this.SpendingCount = source["SpendingCount"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.RolledOnPromise = source["RolledOnPromise"]; + this.LockProfile = source["LockProfile"]; + this.IsSigned = source["IsSigned"]; + this.Recruiter = source["Recruiter"]; + this.CollegePlayer = this.convertValues(source["CollegePlayer"], CollegePlayer); + 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 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; + } +} +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; + } +} +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; + 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; + Profiles: TransferPortalProfile[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.IsRedshirting = source["IsRedshirting"]; + this.HasGraduated = source["HasGraduated"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.HasProgressed = source["HasProgressed"]; + this.WillDeclare = source["WillDeclare"]; + this.LegacyID = source["LegacyID"]; + 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 CollegeDepthChartPosition { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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"], 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.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: Time; + 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"], Time); + 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: 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; + PassLong: number; + PassScreen: number; + PassPAShort: number; + PassPALong: 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.PassLong = source["PassLong"]; + this.PassScreen = source["PassScreen"]; + this.PassPAShort = source["PassPAShort"]; + this.PassPALong = source["PassPALong"]; + 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; + } +} +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; + } +} +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; + } +} +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; + } +} +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; + } +} +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; + 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.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; + 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.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; + 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.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; + } +} +export class Time { + + + 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; + 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.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 BootstrapData { + CollegeTeam: CollegeTeam; + AllCollegeTeams: CollegeTeam[]; + CollegeRosterMap: {[key: uint]: CollegePlayer[]}; + TopCFBPassers: CollegePlayer[]; + TopCFBRushers: CollegePlayer[]; + TopCFBReceivers: CollegePlayer[]; + PortalPlayers: CollegePlayer[]; + CollegeInjuryReport: CollegePlayer[]; + CollegeNotifications: Notification[]; + CollegeGameplan: CollegeGameplan; + CollegeDepthChart: CollegeTeamDepthChart; + ProTeam: NFLTeam; + AllProTeams: NFLTeam[]; + ProNotifications: Notification[]; + NFLGameplan: NFLGameplan; + NFLDepthChart: NFLDepthChart; + FaceData: {[key: uint]: FaceDataResponse}; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); + this.AllCollegeTeams = this.convertValues(source["AllCollegeTeams"], CollegeTeam); + this.CollegeRosterMap = source["CollegeRosterMap"]; + this.TopCFBPassers = this.convertValues(source["TopCFBPassers"], CollegePlayer); + this.TopCFBRushers = this.convertValues(source["TopCFBRushers"], CollegePlayer); + this.TopCFBReceivers = this.convertValues(source["TopCFBReceivers"], CollegePlayer); + this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); + this.CollegeInjuryReport = this.convertValues(source["CollegeInjuryReport"], CollegePlayer); + this.CollegeNotifications = this.convertValues(source["CollegeNotifications"], Notification); + this.CollegeGameplan = this.convertValues(source["CollegeGameplan"], CollegeGameplan); + this.CollegeDepthChart = this.convertValues(source["CollegeDepthChart"], CollegeTeamDepthChart); + this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); + this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); + this.ProNotifications = this.convertValues(source["ProNotifications"], Notification); + this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); + this.NFLDepthChart = this.convertValues(source["NFLDepthChart"], NFLDepthChart); + this.FaceData = this.convertValues(source["FaceData"], FaceDataResponse, true); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + 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.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 CollegeGame { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + WeekID: number; + Week: number; + SeasonID: number; + HomeTeamRank: number; + HomeTeamID: number; + HomeTeam: string; + HomeTeamCoach: string; + HomeTeamWin: boolean; + AwayTeamRank: number; + AwayTeamID: number; + AwayTeam: string; + AwayTeamCoach: string; + AwayTeamWin: boolean; + MVP: string; + HomeTeamScore: number; + AwayTeamScore: number; + TimeSlot: string; + StadiumID: number; + Stadium: string; + City: string; + State: string; + Region: string; + LowTemp: number; + HighTemp: number; + GameTemp: number; + Cloud: string; + Precip: string; + WindSpeed: number; + WindCategory: string; + IsNeutral: boolean; + IsDomed: boolean; + IsNightGame: boolean; + IsConference: boolean; + IsDivisional: boolean; + IsConferenceChampionship: boolean; + IsBowlGame: boolean; + IsPlayoffGame: boolean; + IsNationalChampionship: boolean; + IsRivalryGame: boolean; + GameComplete: boolean; + IsSpringGame: boolean; + GameTitle: string; + NextGameID: number; + NextGameHOA: string; + HomePreviousBye: boolean; + AwayPreviousBye: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.SeasonID = source["SeasonID"]; + this.HomeTeamRank = source["HomeTeamRank"]; + this.HomeTeamID = source["HomeTeamID"]; + this.HomeTeam = source["HomeTeam"]; + this.HomeTeamCoach = source["HomeTeamCoach"]; + this.HomeTeamWin = source["HomeTeamWin"]; + this.AwayTeamRank = source["AwayTeamRank"]; + this.AwayTeamID = source["AwayTeamID"]; + this.AwayTeam = source["AwayTeam"]; + this.AwayTeamCoach = source["AwayTeamCoach"]; + this.AwayTeamWin = source["AwayTeamWin"]; + this.MVP = source["MVP"]; + this.HomeTeamScore = source["HomeTeamScore"]; + this.AwayTeamScore = source["AwayTeamScore"]; + this.TimeSlot = source["TimeSlot"]; + this.StadiumID = source["StadiumID"]; + this.Stadium = source["Stadium"]; + this.City = source["City"]; + this.State = source["State"]; + this.Region = source["Region"]; + this.LowTemp = source["LowTemp"]; + this.HighTemp = source["HighTemp"]; + this.GameTemp = source["GameTemp"]; + this.Cloud = source["Cloud"]; + this.Precip = source["Precip"]; + this.WindSpeed = source["WindSpeed"]; + this.WindCategory = source["WindCategory"]; + this.IsNeutral = source["IsNeutral"]; + this.IsDomed = source["IsDomed"]; + this.IsNightGame = source["IsNightGame"]; + this.IsConference = source["IsConference"]; + this.IsDivisional = source["IsDivisional"]; + this.IsConferenceChampionship = source["IsConferenceChampionship"]; + this.IsBowlGame = source["IsBowlGame"]; + this.IsPlayoffGame = source["IsPlayoffGame"]; + this.IsNationalChampionship = source["IsNationalChampionship"]; + this.IsRivalryGame = source["IsRivalryGame"]; + this.GameComplete = source["GameComplete"]; + this.IsSpringGame = source["IsSpringGame"]; + this.GameTitle = source["GameTitle"]; + this.NextGameID = source["NextGameID"]; + this.NextGameHOA = source["NextGameHOA"]; + this.HomePreviousBye = source["HomePreviousBye"]; + this.AwayPreviousBye = source["AwayPreviousBye"]; + } + + 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; + } +} +export class BootstrapDataTwo { + CollegeNews: NewsLog[]; + AllCollegeGames: CollegeGame[]; + TeamProfileMap: {[key: string]: RecruitingTeamProfile}; + CollegeStandings: CollegeStandings[]; + ProStandings: NFLStandings[]; + AllProGames: NFLGame[]; + CapsheetMap: {[key: uint]: NFLCapsheet}; + ProRosterMap: {[key: uint]: NFLPlayer[]}; + PracticeSquadPlayers: NFLPlayer[]; + TopNFLPassers: NFLPlayer[]; + TopNFLRushers: NFLPlayer[]; + TopNFLReceivers: NFLPlayer[]; + ProInjuryReport: NFLPlayer[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); + this.AllCollegeGames = this.convertValues(source["AllCollegeGames"], CollegeGame); + this.TeamProfileMap = source["TeamProfileMap"]; + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.ProStandings = this.convertValues(source["ProStandings"], NFLStandings); + this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); + this.CapsheetMap = this.convertValues(source["CapsheetMap"], NFLCapsheet, true); + this.ProRosterMap = source["ProRosterMap"]; + this.PracticeSquadPlayers = this.convertValues(source["PracticeSquadPlayers"], NFLPlayer); + this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); + this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); + this.TopNFLReceivers = this.convertValues(source["TopNFLReceivers"], NFLPlayer); + this.ProInjuryReport = this.convertValues(source["ProInjuryReport"], 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 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"]; + } +} +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[]; + + 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); + } + + 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 BootstrapDataThree { + Recruits: Croot[]; + CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; + FreeAgentOffers: FreeAgencyOffer[]; + WaiverWireOffers: NFLWaiverOffer[]; + ProNews: NewsLog[]; + NFLDepthChartMap: {[key: uint]: NFLDepthChart}; + ContractMap: {[key: uint]: NFLContract}; + ExtensionMap: {[key: uint]: NFLExtensionOffer}; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Recruits = this.convertValues(source["Recruits"], Croot); + this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); + this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); + this.WaiverWireOffers = this.convertValues(source["WaiverWireOffers"], NFLWaiverOffer); + this.ProNews = this.convertValues(source["ProNews"], NewsLog); + this.NFLDepthChartMap = this.convertValues(source["NFLDepthChartMap"], NFLDepthChart, true); + this.ContractMap = this.convertValues(source["ContractMap"], NFLContract, true); + this.ExtensionMap = this.convertValues(source["ExtensionMap"], NFLExtensionOffer, true); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class FlexComparisonModel { + TeamOneID: number; + TeamOne: string; + TeamOneWins: number; + TeamOneLosses: number; + TeamOneStreak: number; + TeamOneMSeason: number; + TeamOneMScore: string; + TeamTwoID: number; + TeamTwo: string; + TeamTwoWins: number; + TeamTwoLosses: number; + TeamTwoStreak: number; + TeamTwoMSeason: number; + TeamTwoMScore: string; + CurrentStreak: number; + LatestWin: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.TeamOneID = source["TeamOneID"]; + this.TeamOne = source["TeamOne"]; + this.TeamOneWins = source["TeamOneWins"]; + this.TeamOneLosses = source["TeamOneLosses"]; + this.TeamOneStreak = source["TeamOneStreak"]; + this.TeamOneMSeason = source["TeamOneMSeason"]; + this.TeamOneMScore = source["TeamOneMScore"]; + this.TeamTwoID = source["TeamTwoID"]; + this.TeamTwo = source["TeamTwo"]; + this.TeamTwoWins = source["TeamTwoWins"]; + this.TeamTwoLosses = source["TeamTwoLosses"]; + this.TeamTwoStreak = source["TeamTwoStreak"]; + this.TeamTwoMSeason = source["TeamTwoMSeason"]; + this.TeamTwoMScore = source["TeamTwoMScore"]; + this.CurrentStreak = source["CurrentStreak"]; + this.LatestWin = source["LatestWin"]; + } +} +export class CollegeTeamProfileData { + CareerStats: CollegePlayerSeasonStats[]; + CollegeStandings: CollegeStandings[]; + Rivalries: FlexComparisonModel[]; + PlayerMap: {[key: uint]: CollegePlayer}; + CollegeGames: CollegeGame[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CareerStats = this.convertValues(source["CareerStats"], CollegePlayerSeasonStats); + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.Rivalries = this.convertValues(source["Rivalries"], FlexComparisonModel); + this.PlayerMap = this.convertValues(source["PlayerMap"], CollegePlayer, true); + this.CollegeGames = this.convertValues(source["CollegeGames"], CollegeGame); + } + + 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; + } +} +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; + } +} +export class TeamRequestsResponse { + CollegeRequests: TeamRequest[]; + ProRequests: NFLRequest[]; + + 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); + } + + 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; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + } +} + + +export class BaseTeam { + TeamName: string; + Mascot: string; + TeamAbbr: string; + Coach: string; + City: string; + State: string; + Country: string; + StadiumID: number; + Stadium: string; + StadiumCapacity: number; + RecordAttendance: number; + Enrollment: number; + FirstPlayed: number; + ColorOne: string; + ColorTwo: string; + ColorThree: string; + DiscordID: string; + OverallGrade: string; + OffenseGrade: string; + DefenseGrade: string; + SpecialTeamsGrade: string; + PenaltyMarks: number; + + 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"]; + } +} + + +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; + } +} + + + + + + + +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; + } +} +export class UpdateRecruitPointsDto { + RecruitPointsID: number; + RecruitID: number; + ProfileID: number; + Team: string; + WeekID: number; + AllocationID: number; + SpentPoints: number; + RewardScholarship: boolean; + RevokeScholarship: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.RecruitPointsID = source["RecruitPointsID"]; + this.RecruitID = source["RecruitID"]; + this.ProfileID = source["ProfileID"]; + this.Team = source["Team"]; + this.WeekID = source["WeekID"]; + this.AllocationID = source["AllocationID"]; + this.SpentPoints = source["SpentPoints"]; + this.RewardScholarship = source["RewardScholarship"]; + this.RevokeScholarship = source["RevokeScholarship"]; + } +} +export class CrootProfile { + ID: number; + SeasonID: number; + 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; + } +} +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; + } +} +export class RecruitPointAllocation { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + RecruitID: number; + TeamProfileID: number; + RecruitProfileID: number; + WeekID: number; + Points: number; + RESAffectedPoints: number; + AffinityOneApplied: boolean; + AffinityTwoApplied: boolean; + CaughtCheating: boolean; + + 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.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"]; + } +} +export class CFBRosterPageResponse { + Players: CollegePlayer[]; + Promises: CollegePromise[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Players = this.convertValues(source["Players"], CollegePlayer); + this.Promises = this.convertValues(source["Promises"], CollegePromise); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + +export class TransferPlayerResponse { + FirstName: string; + LastName: string; + Archetype: string; + Position: string; + PositionTwo: string; + ArchetypeTwo: string; + Age: number; + Year: number; + State: string; + Country: string; + Stars: number; + Height: number; + Weight: number; + PotentialGrade: string; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + OverallGrade: string; + Personality: string; + RecruitingBias: string; + RecruitingBiasValue: string; + WorkEthic: string; + AcademicBias: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + IsRedshirting: boolean; + IsRedshirt: boolean; + PreviousTeamID: number; + PreviousTeam: string; + TransferStatus: number; + TransferLikeliness: string; + LegacyID: number; + SeasonStats: CollegePlayerSeasonStats; + Stats: CollegePlayerStats; + LeadingTeams: LeadingTeams[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Archetype = source["Archetype"]; + this.Position = source["Position"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.Age = source["Age"]; + this.Year = source["Year"]; + this.State = source["State"]; + this.Country = source["Country"]; + this.Stars = source["Stars"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.PotentialGrade = source["PotentialGrade"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.OverallGrade = source["OverallGrade"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.RecruitingBiasValue = source["RecruitingBiasValue"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.IsRedshirting = source["IsRedshirting"]; + this.IsRedshirt = source["IsRedshirt"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.LegacyID = source["LegacyID"]; + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class TransferPortalProfileResponse { + ID: number; + SeasonID: number; + CollegePlayerID: number; + ProfileID: number; + PromiseID: number; + TeamAbbreviation: string; + TotalPoints: number; + CurrentWeeksPoints: number; + PreviouslySpentPoints: number; + SpendingCount: number; + RemovedFromBoard: boolean; + RolledOnPromise: boolean; + LockProfile: boolean; + IsSigned: boolean; + Recruiter: string; + CollegePlayer: TransferPlayerResponse; + Promise: CollegePromise; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.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; + } +} +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; + } +} +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; + } +} + + + + +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; + + 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"]; + } +} +export class NFLWaiverOffDTO { + ID: number; + NFLPlayerID: number; + TeamID: number; + Team: string; + WaiverOrder: number; + IsActive: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.WaiverOrder = source["WaiverOrder"]; + this.IsActive = source["IsActive"]; + } +} + +export class CollegePollSubmission { + 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 CollegePollOfficial { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + SeasonID: number; + WeekID: number; + Week: number; + Rank1: string; + Rank1ID: number; + Rank1Votes: number; + Rank1No1Votes: number; + Rank2: string; + Rank2ID: number; + Rank2Votes: number; + Rank2No1Votes: number; + Rank3: string; + Rank3ID: number; + Rank3Votes: number; + Rank3No1Votes: number; + Rank4: string; + Rank4ID: number; + Rank4Votes: number; + Rank4No1Votes: number; + Rank5: string; + Rank5ID: number; + Rank5Votes: number; + Rank5No1Votes: number; + Rank6: string; + Rank6ID: number; + Rank6Votes: number; + Rank6No1Votes: number; + Rank7: string; + Rank7ID: number; + Rank7Votes: number; + Rank7No1Votes: number; + Rank8: string; + Rank8ID: number; + Rank8Votes: number; + Rank8No1Votes: number; + Rank9: string; + Rank9ID: number; + Rank9Votes: number; + Rank9No1Votes: number; + Rank10: string; + Rank10ID: number; + Rank10Votes: number; + Rank10No1Votes: number; + Rank11: string; + Rank11ID: number; + Rank11Votes: number; + Rank11No1Votes: number; + Rank12: string; + Rank12ID: number; + Rank12Votes: number; + Rank12No1Votes: number; + Rank13: string; + Rank13ID: number; + Rank13Votes: number; + Rank13No1Votes: number; + Rank14: string; + Rank14ID: number; + Rank14Votes: number; + Rank14No1Votes: number; + Rank15: string; + Rank15ID: number; + Rank15Votes: number; + Rank15No1Votes: number; + Rank16: string; + Rank16ID: number; + Rank16Votes: number; + Rank16No1Votes: number; + Rank17: string; + Rank17ID: number; + Rank17Votes: number; + Rank17No1Votes: number; + Rank18: string; + Rank18ID: number; + Rank18Votes: number; + Rank18No1Votes: number; + Rank19: string; + Rank19ID: number; + Rank19Votes: number; + Rank19No1Votes: number; + Rank20: string; + Rank20ID: number; + Rank20Votes: number; + Rank20No1Votes: number; + Rank21: string; + Rank21ID: number; + Rank21Votes: number; + Rank21No1Votes: number; + Rank22: string; + Rank22ID: number; + Rank22Votes: number; + Rank22No1Votes: number; + Rank23: string; + Rank23ID: number; + Rank23Votes: number; + Rank23No1Votes: number; + Rank24: string; + Rank24ID: number; + Rank24Votes: number; + Rank24No1Votes: number; + Rank25: string; + Rank25ID: number; + Rank25Votes: number; + Rank25No1Votes: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.SeasonID = source["SeasonID"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.Rank1 = source["Rank1"]; + this.Rank1ID = source["Rank1ID"]; + this.Rank1Votes = source["Rank1Votes"]; + this.Rank1No1Votes = source["Rank1No1Votes"]; + this.Rank2 = source["Rank2"]; + this.Rank2ID = source["Rank2ID"]; + this.Rank2Votes = source["Rank2Votes"]; + this.Rank2No1Votes = source["Rank2No1Votes"]; + this.Rank3 = source["Rank3"]; + this.Rank3ID = source["Rank3ID"]; + this.Rank3Votes = source["Rank3Votes"]; + this.Rank3No1Votes = source["Rank3No1Votes"]; + this.Rank4 = source["Rank4"]; + this.Rank4ID = source["Rank4ID"]; + this.Rank4Votes = source["Rank4Votes"]; + this.Rank4No1Votes = source["Rank4No1Votes"]; + this.Rank5 = source["Rank5"]; + this.Rank5ID = source["Rank5ID"]; + this.Rank5Votes = source["Rank5Votes"]; + this.Rank5No1Votes = source["Rank5No1Votes"]; + this.Rank6 = source["Rank6"]; + this.Rank6ID = source["Rank6ID"]; + this.Rank6Votes = source["Rank6Votes"]; + this.Rank6No1Votes = source["Rank6No1Votes"]; + this.Rank7 = source["Rank7"]; + this.Rank7ID = source["Rank7ID"]; + this.Rank7Votes = source["Rank7Votes"]; + this.Rank7No1Votes = source["Rank7No1Votes"]; + this.Rank8 = source["Rank8"]; + this.Rank8ID = source["Rank8ID"]; + this.Rank8Votes = source["Rank8Votes"]; + this.Rank8No1Votes = source["Rank8No1Votes"]; + this.Rank9 = source["Rank9"]; + this.Rank9ID = source["Rank9ID"]; + this.Rank9Votes = source["Rank9Votes"]; + this.Rank9No1Votes = source["Rank9No1Votes"]; + this.Rank10 = source["Rank10"]; + this.Rank10ID = source["Rank10ID"]; + this.Rank10Votes = source["Rank10Votes"]; + this.Rank10No1Votes = source["Rank10No1Votes"]; + this.Rank11 = source["Rank11"]; + this.Rank11ID = source["Rank11ID"]; + this.Rank11Votes = source["Rank11Votes"]; + this.Rank11No1Votes = source["Rank11No1Votes"]; + this.Rank12 = source["Rank12"]; + this.Rank12ID = source["Rank12ID"]; + this.Rank12Votes = source["Rank12Votes"]; + this.Rank12No1Votes = source["Rank12No1Votes"]; + this.Rank13 = source["Rank13"]; + this.Rank13ID = source["Rank13ID"]; + this.Rank13Votes = source["Rank13Votes"]; + this.Rank13No1Votes = source["Rank13No1Votes"]; + this.Rank14 = source["Rank14"]; + this.Rank14ID = source["Rank14ID"]; + this.Rank14Votes = source["Rank14Votes"]; + this.Rank14No1Votes = source["Rank14No1Votes"]; + this.Rank15 = source["Rank15"]; + this.Rank15ID = source["Rank15ID"]; + this.Rank15Votes = source["Rank15Votes"]; + this.Rank15No1Votes = source["Rank15No1Votes"]; + this.Rank16 = source["Rank16"]; + this.Rank16ID = source["Rank16ID"]; + this.Rank16Votes = source["Rank16Votes"]; + this.Rank16No1Votes = source["Rank16No1Votes"]; + this.Rank17 = source["Rank17"]; + this.Rank17ID = source["Rank17ID"]; + this.Rank17Votes = source["Rank17Votes"]; + this.Rank17No1Votes = source["Rank17No1Votes"]; + this.Rank18 = source["Rank18"]; + this.Rank18ID = source["Rank18ID"]; + this.Rank18Votes = source["Rank18Votes"]; + this.Rank18No1Votes = source["Rank18No1Votes"]; + this.Rank19 = source["Rank19"]; + this.Rank19ID = source["Rank19ID"]; + this.Rank19Votes = source["Rank19Votes"]; + this.Rank19No1Votes = source["Rank19No1Votes"]; + this.Rank20 = source["Rank20"]; + this.Rank20ID = source["Rank20ID"]; + this.Rank20Votes = source["Rank20Votes"]; + this.Rank20No1Votes = source["Rank20No1Votes"]; + this.Rank21 = source["Rank21"]; + this.Rank21ID = source["Rank21ID"]; + this.Rank21Votes = source["Rank21Votes"]; + this.Rank21No1Votes = source["Rank21No1Votes"]; + this.Rank22 = source["Rank22"]; + this.Rank22ID = source["Rank22ID"]; + this.Rank22Votes = source["Rank22Votes"]; + this.Rank22No1Votes = source["Rank22No1Votes"]; + this.Rank23 = source["Rank23"]; + this.Rank23ID = source["Rank23ID"]; + this.Rank23Votes = source["Rank23Votes"]; + this.Rank23No1Votes = source["Rank23No1Votes"]; + this.Rank24 = source["Rank24"]; + this.Rank24ID = source["Rank24ID"]; + this.Rank24Votes = source["Rank24Votes"]; + this.Rank24No1Votes = source["Rank24No1Votes"]; + this.Rank25 = source["Rank25"]; + this.Rank25ID = source["Rank25ID"]; + this.Rank25Votes = source["Rank25Votes"]; + this.Rank25No1Votes = source["Rank25No1Votes"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + } +} + + +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; + 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.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 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; + } +} +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; + } +} +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; + } +} + + +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"]; + } +} +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; + } +} +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"]; + } +} +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; + } +} +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; + 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.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; + 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.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; + 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.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 HistoricCollegePlayer { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PreviousTeamID: number; + PreviousTeam: string; + Height: number; + Weight: number; + Age: number; + Stars: number; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + Progression: number; + Discipline: number; + PotentialGrade: string; + FreeAgency: string; + Personality: string; + RecruitingBias: string; + WorkEthic: string; + AcademicBias: string; + IsInjured: boolean; + InjuryName: string; + InjuryType: string; + WeeksOfRecovery: number; + InjuryReserve: boolean; + PrimeAge: number; + Clutch: number; + Shotgun: number; + PositionTwo: string; + ArchetypeTwo: string; + RelativeID: number; + RelativeType: number; + Notes: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + HighSchool: string; + City: string; + State: string; + Year: number; + IsRedshirt: boolean; + IsRedshirting: boolean; + HasGraduated: boolean; + TransferStatus: number; + TransferLikeliness: string; + Stats: CollegePlayerStats[]; + SeasonStats: CollegePlayerSeasonStats; + HasProgressed: boolean; + WillDeclare: boolean; + LegacyID: number; + Profiles: TransferPortalProfile[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.IsRedshirting = source["IsRedshirting"]; + this.HasGraduated = source["HasGraduated"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.HasProgressed = source["HasProgressed"]; + this.WillDeclare = source["WillDeclare"]; + this.LegacyID = source["LegacyID"]; + 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 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; + 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; + 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.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.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 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; + } +} +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; + } +} +export class NFLTradeOptionObj { + ID: number; + TradeProposalID: number; + NFLTeamID: number; + NFLPlayerID: number; + NFLDraftPickID: number; + OptionType: string; + SalaryPercentage: number; + Player: NFLPlayer; + Draftpick: NFLDraftPick; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.TradeProposalID = source["TradeProposalID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.NFLDraftPickID = source["NFLDraftPickID"]; + this.OptionType = source["OptionType"]; + this.SalaryPercentage = source["SalaryPercentage"]; + this.Player = this.convertValues(source["Player"], NFLPlayer); + this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradeProposalDTO { + ID: number; + NFLTeamID: number; + NFLTeam: string; + RecepientTeamID: number; + RecepientTeam: string; + IsTradeAccepted: boolean; + IsTradeRejected: boolean; + NFLTeamTradeOptions: NFLTradeOptionObj[]; + RecepientTeamTradeOptions: NFLTradeOptionObj[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLTeam = source["NFLTeam"]; + this.RecepientTeamID = source["RecepientTeamID"]; + this.RecepientTeam = source["RecepientTeam"]; + this.IsTradeAccepted = source["IsTradeAccepted"]; + this.IsTradeRejected = source["IsTradeRejected"]; + this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOptionObj); + this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOptionObj); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + +export class NFLTeamProposals { + SentTradeProposals: NFLTradeProposalDTO[]; + ReceivedTradeProposals: NFLTradeProposalDTO[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.SentTradeProposals = this.convertValues(source["SentTradeProposals"], NFLTradeProposalDTO); + this.ReceivedTradeProposals = this.convertValues(source["ReceivedTradeProposals"], NFLTradeProposalDTO); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradePreferences { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLTeamID: number; + Quarterbacks: boolean; + QuarterbackType: string; + Runningbacks: boolean; + RunningbackType: string; + Fullbacks: boolean; + FullbackType: string; + WideReceivers: boolean; + WideReceiverType: string; + TightEnds: boolean; + TightEndType: string; + OffensiveTackles: boolean; + OffensiveGuards: boolean; + Centers: boolean; + OffensiveTackleType: string; + OffensiveGuardType: string; + CenterType: string; + DefensiveTackles: boolean; + DefensiveTackleType: string; + DefensiveEnds: boolean; + DefensiveEndType: string; + OutsideLinebackers: boolean; + OutsideLinebackerType: string; + InsideLinebackers: boolean; + InsideLinebackerType: string; + Cornerbacks: boolean; + CornerbackType: string; + FreeSafeties: boolean; + FreeSafetyType: string; + StrongSafeties: boolean; + StrongSafetyType: string; + Kickers: boolean; + KickerType: string; + Punters: boolean; + PunterType: string; + DraftPicks: boolean; + DraftPickType: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.NFLTeamID = source["NFLTeamID"]; + this.Quarterbacks = source["Quarterbacks"]; + this.QuarterbackType = source["QuarterbackType"]; + this.Runningbacks = source["Runningbacks"]; + this.RunningbackType = source["RunningbackType"]; + this.Fullbacks = source["Fullbacks"]; + this.FullbackType = source["FullbackType"]; + this.WideReceivers = source["WideReceivers"]; + this.WideReceiverType = source["WideReceiverType"]; + this.TightEnds = source["TightEnds"]; + this.TightEndType = source["TightEndType"]; + this.OffensiveTackles = source["OffensiveTackles"]; + this.OffensiveGuards = source["OffensiveGuards"]; + this.Centers = source["Centers"]; + this.OffensiveTackleType = source["OffensiveTackleType"]; + this.OffensiveGuardType = source["OffensiveGuardType"]; + this.CenterType = source["CenterType"]; + this.DefensiveTackles = source["DefensiveTackles"]; + this.DefensiveTackleType = source["DefensiveTackleType"]; + this.DefensiveEnds = source["DefensiveEnds"]; + this.DefensiveEndType = source["DefensiveEndType"]; + this.OutsideLinebackers = source["OutsideLinebackers"]; + this.OutsideLinebackerType = source["OutsideLinebackerType"]; + this.InsideLinebackers = source["InsideLinebackers"]; + this.InsideLinebackerType = source["InsideLinebackerType"]; + this.Cornerbacks = source["Cornerbacks"]; + this.CornerbackType = source["CornerbackType"]; + this.FreeSafeties = source["FreeSafeties"]; + this.FreeSafetyType = source["FreeSafetyType"]; + this.StrongSafeties = source["StrongSafeties"]; + this.StrongSafetyType = source["StrongSafetyType"]; + this.Kickers = source["Kickers"]; + this.KickerType = source["KickerType"]; + this.Punters = source["Punters"]; + this.PunterType = source["PunterType"]; + this.DraftPicks = source["DraftPicks"]; + this.DraftPickType = source["DraftPickType"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradePreferencesDTO { + NFLTeamID: number; + Quarterbacks: boolean; + 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; + } +} + +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[]; + + 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"]; + } +} +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"]; + } +} +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"]; + } +} +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; + } +} + +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"]; + } +} +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; + } +} + +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; + } +} + + +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"]; + } +} +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; + 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.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 diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index 080f3cd..b87df9e 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -50,6 +50,7 @@ type BootstrapDataTwo struct { type BootstrapDataThree struct { Recruits []structs.Croot + RecruitProfiles []structs.RecruitPlayerProfile CollegeDepthChartMap map[uint]structs.CollegeTeamDepthChart FreeAgentOffers []structs.FreeAgencyOffer WaiverWireOffers []structs.NFLWaiverOffer @@ -322,6 +323,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { // College Data var ( recruits []structs.Croot + recruitProfiles []structs.RecruitPlayerProfile collegeDepthChartMap map[uint]structs.CollegeTeamDepthChart ) @@ -347,6 +349,10 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { collegeDCs := GetAllCollegeDepthcharts() collegeDepthChartMap = MakeCollegeDepthChartMap(collegeDCs) }() + go func() { + defer wg.Done() + recruitProfiles = repository.FindRecruitPlayerProfileRecords(collegeID, "", false, false, true) + }() } if len(proID) > 0 && proID != "0" { @@ -389,6 +395,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { return BootstrapDataThree{ CollegeDepthChartMap: collegeDepthChartMap, Recruits: recruits, + RecruitProfiles: recruitProfiles, FreeAgentOffers: freeAgentoffers, WaiverWireOffers: waiverOffers, ProNews: proNews, diff --git a/repository/RecruitingRepository.go b/repository/RecruitingRepository.go new file mode 100644 index 0000000..e19d509 --- /dev/null +++ b/repository/RecruitingRepository.go @@ -0,0 +1,40 @@ +package repository + +import ( + "github.com/CalebRose/SimFBA/dbprovider" + "github.com/CalebRose/SimFBA/structs" +) + +func FindRecruitPlayerProfileRecords(profileID, recruitID string, includeRecruit, orderByPoints, removeFromBoard bool) []structs.RecruitPlayerProfile { + db := dbprovider.GetInstance().GetDB() + + var croots []structs.RecruitPlayerProfile + + query := db.Model(&croots) + + if includeRecruit { + query = query.Preload("Recruit") + } + + if len(profileID) > 0 { + query = query.Where("profile_id = ?", profileID) + } + + if len(recruitID) > 0 { + query = query.Where("recruit_id = ?", recruitID) + } + + if removeFromBoard { + query = query.Where("removed_from_board = ?", false) + } + + if orderByPoints { + query = query.Order("total_points desc") + } + + if err := query.Find(&croots).Error; err != nil { + return []structs.RecruitPlayerProfile{} + } + + return croots +} diff --git a/ts/footballModels.ts b/ts/footballModels.ts index f914e13..88d604e 100644 --- a/ts/footballModels.ts +++ b/ts/footballModels.ts @@ -229,9 +229,11 @@ export class NFLGameplan { PassQuick: number; PassShort: number; PassLong: number; + PassDeep: number; PassScreen: number; PassPAShort: number; PassPALong: number; + PassPADeep: number; LeftVsRight: number; ChoiceOutside: number; ChoiceInside: number; @@ -369,9 +371,11 @@ export class NFLGameplan { this.PassQuick = source["PassQuick"]; this.PassShort = source["PassShort"]; this.PassLong = source["PassLong"]; + this.PassDeep = source["PassDeep"]; this.PassScreen = source["PassScreen"]; this.PassPAShort = source["PassPAShort"]; this.PassPALong = source["PassPALong"]; + this.PassPADeep = source["PassPADeep"]; this.LeftVsRight = source["LeftVsRight"]; this.ChoiceOutside = source["ChoiceOutside"]; this.ChoiceInside = source["ChoiceInside"]; @@ -485,6 +489,7 @@ export class NFLExtensionOffer { TotalSalary: number; ContractValue: number; BonusPercentage: number; + AAV: number; Rejections: number; IsAccepted: boolean; IsActive: boolean; @@ -515,6 +520,7 @@ export class NFLExtensionOffer { 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"]; @@ -580,6 +586,7 @@ export class FreeAgencyOffer { TotalSalary: number; ContractValue: number; BonusPercentage: number; + AAV: number; IsActive: boolean; constructor(source: any = {}) { @@ -606,6 +613,7 @@ export class FreeAgencyOffer { this.TotalSalary = source["TotalSalary"]; this.ContractValue = source["ContractValue"]; this.BonusPercentage = source["BonusPercentage"]; + this.AAV = source["AAV"]; this.IsActive = source["IsActive"]; } @@ -1051,6 +1059,7 @@ export class NFLPlayer { NegotiationRound: number; SigningRound: number; MinimumValue: number; + AAV: number; DraftedTeamID: number; DraftedTeam: string; DraftedRound: number; @@ -1147,6 +1156,7 @@ export class NFLPlayer { this.NegotiationRound = source["NegotiationRound"]; this.SigningRound = source["SigningRound"]; this.MinimumValue = source["MinimumValue"]; + this.AAV = source["AAV"]; this.DraftedTeamID = source["DraftedTeamID"]; this.DraftedTeam = source["DraftedTeam"]; this.DraftedRound = source["DraftedRound"]; @@ -1920,6 +1930,7 @@ export class NFLTeam { DefenseGrade: string; SpecialTeamsGrade: string; PenaltyMarks: number; + JerseyType: number; ConferenceID: number; Conference: string; DivisionID: number; @@ -1971,6 +1982,7 @@ export class NFLTeam { this.DefenseGrade = source["DefenseGrade"]; this.SpecialTeamsGrade = source["SpecialTeamsGrade"]; this.PenaltyMarks = source["PenaltyMarks"]; + this.JerseyType = source["JerseyType"]; this.ConferenceID = source["ConferenceID"]; this.Conference = source["Conference"]; this.DivisionID = source["DivisionID"]; @@ -2941,9 +2953,11 @@ export class CollegeGameplan { PassQuick: number; PassShort: number; PassLong: number; + PassDeep: number; PassScreen: number; PassPAShort: number; PassPALong: number; + PassPADeep: number; LeftVsRight: number; ChoiceOutside: number; ChoiceInside: number; @@ -3081,9 +3095,11 @@ export class CollegeGameplan { this.PassQuick = source["PassQuick"]; this.PassShort = source["PassShort"]; this.PassLong = source["PassLong"]; + this.PassDeep = source["PassDeep"]; this.PassScreen = source["PassScreen"]; this.PassPAShort = source["PassPAShort"]; this.PassPALong = source["PassPALong"]; + this.PassPADeep = source["PassPADeep"]; this.LeftVsRight = source["LeftVsRight"]; this.ChoiceOutside = source["ChoiceOutside"]; this.ChoiceInside = source["ChoiceInside"]; @@ -4384,6 +4400,7 @@ export class CollegeTeam { DefenseGrade: string; SpecialTeamsGrade: string; PenaltyMarks: number; + JerseyType: number; ConferenceID: number; Conference: string; DivisionID: number; @@ -4432,6 +4449,7 @@ export class CollegeTeam { this.DefenseGrade = source["DefenseGrade"]; this.SpecialTeamsGrade = source["SpecialTeamsGrade"]; this.PenaltyMarks = source["PenaltyMarks"]; + this.JerseyType = source["JerseyType"]; this.ConferenceID = source["ConferenceID"]; this.Conference = source["Conference"]; this.DivisionID = source["DivisionID"]; @@ -4698,6 +4716,7 @@ export class CollegeGame { NextGameHOA: string; HomePreviousBye: boolean; AwayPreviousBye: boolean; + ConferenceID: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -4751,6 +4770,7 @@ export class CollegeGame { 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 { @@ -4967,6 +4987,7 @@ export class Croot { } export class BootstrapDataThree { Recruits: Croot[]; + RecruitProfiles: RecruitPlayerProfile[]; CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; FreeAgentOffers: FreeAgencyOffer[]; WaiverWireOffers: NFLWaiverOffer[]; @@ -4978,6 +4999,7 @@ export class BootstrapDataThree { constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.Recruits = this.convertValues(source["Recruits"], Croot); + this.RecruitProfiles = this.convertValues(source["RecruitProfiles"], RecruitPlayerProfile); this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); this.WaiverWireOffers = this.convertValues(source["WaiverWireOffers"], NFLWaiverOffer); @@ -5333,6 +5355,7 @@ export class BaseTeam { DefenseGrade: string; SpecialTeamsGrade: string; PenaltyMarks: number; + JerseyType: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -5358,6 +5381,7 @@ export class BaseTeam { this.DefenseGrade = source["DefenseGrade"]; this.SpecialTeamsGrade = source["SpecialTeamsGrade"]; this.PenaltyMarks = source["PenaltyMarks"]; + this.JerseyType = source["JerseyType"]; } } @@ -6076,6 +6100,7 @@ export class FreeAgencyOfferDTO { Y4Bonus: number; Y5BaseSalary: number; Y5Bonus: number; + AAV: number; constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); @@ -6094,6 +6119,7 @@ export class FreeAgencyOfferDTO { this.Y4Bonus = source["Y4Bonus"]; this.Y5BaseSalary = source["Y5BaseSalary"]; this.Y5Bonus = source["Y5Bonus"]; + this.AAV = source["AAV"]; } } export class NFLWaiverOffDTO { @@ -7645,6 +7671,7 @@ export class NFLRetiredPlayer { NegotiationRound: number; SigningRound: number; MinimumValue: number; + AAV: number; DraftedTeamID: number; DraftedTeam: string; DraftedRound: number; @@ -7741,6 +7768,7 @@ export class NFLRetiredPlayer { this.NegotiationRound = source["NegotiationRound"]; this.SigningRound = source["SigningRound"]; this.MinimumValue = source["MinimumValue"]; + this.AAV = source["AAV"]; this.DraftedTeamID = source["DraftedTeamID"]; this.DraftedTeam = source["DraftedTeam"]; this.DraftedRound = source["DraftedRound"]; From aa5fc5828959daa96a4111a489aebef4afb7a735 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Wed, 11 Jun 2025 09:35:53 -0700 Subject: [PATCH 04/20] fixing waitgroups for bootstrap --- managers/BootstrapManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index b87df9e..499983f 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -338,7 +338,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { ) if len(collegeID) > 0 && collegeID != "0" { - wg.Add(2) + wg.Add(3) go func() { defer wg.Done() recruits = GetAllRecruits() From ea1c2c7c338d261b7fa3a0623023dfadb9730afc Mon Sep 17 00:00:00 2001 From: CalebRose Date: Mon, 16 Jun 2025 20:59:24 -0700 Subject: [PATCH 05/20] Flattening affinity profiles to team profile --- structs/TeamRecruitingProfile.go | 12 +++++++++++- ts/footballModels.ts | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/structs/TeamRecruitingProfile.go b/structs/TeamRecruitingProfile.go index 87c2948..eeafacf 100644 --- a/structs/TeamRecruitingProfile.go +++ b/structs/TeamRecruitingProfile.go @@ -45,7 +45,17 @@ type RecruitingTeamProfile struct { AIAutoOfferscholarships bool OffensiveScheme string DefensiveScheme string - Recruiter string // Username + Recruiter string // Username + AcademicsAffinity bool + FrontrunnerAffinity bool + LargeCrowdsAffinity bool + ReligionAffinity bool + ServiceAffinity bool + SmallSchoolAffinity bool + SmallTownAffinity bool + BigCityAffinity bool + MediaSpotlightAffinity bool + RisingStarsAffinity bool Recruits []RecruitPlayerProfile `gorm:"foreignKey:ProfileID"` Affinities []ProfileAffinity `gorm:"foreignKey:ProfileID"` } diff --git a/ts/footballModels.ts b/ts/footballModels.ts index 88d604e..8f94b6d 100644 --- a/ts/footballModels.ts +++ b/ts/footballModels.ts @@ -4177,6 +4177,16 @@ export class RecruitingTeamProfile { 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; Recruits: RecruitPlayerProfile[]; Affinities: ProfileAffinity[]; @@ -4227,6 +4237,16 @@ export class RecruitingTeamProfile { 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.Recruits = this.convertValues(source["Recruits"], RecruitPlayerProfile); this.Affinities = this.convertValues(source["Affinities"], ProfileAffinity); } From 04c328ea0027df2894b61a38d86d186a9a3267ec Mon Sep 17 00:00:00 2001 From: CalebRose Date: Tue, 17 Jun 2025 09:58:47 -0700 Subject: [PATCH 06/20] fixing recruiting for 2.0 --- controller/RecruitingController.go | 13 +++++-------- managers/RecruitingProfileManager.go | 2 +- managers/RecruitsManager.go | 11 ++++++----- managers/SyncManager.go | 4 ++-- structs/RecruitPlayerProfile.go | 10 +++++++--- 5 files changed, 21 insertions(+), 19 deletions(-) diff --git a/controller/RecruitingController.go b/controller/RecruitingController.go index d708642..d929ff7 100644 --- a/controller/RecruitingController.go +++ b/controller/RecruitingController.go @@ -104,8 +104,6 @@ func CreateRecruitPlayerProfile(w http.ResponseWriter, r *http.Request) { recruitingProfile := managers.AddRecruitToBoard(recruitPointsDto) json.NewEncoder(w).Encode(recruitingProfile) - - fmt.Fprintf(w, "New Recruiting Profile Created") } // CreateRecruitingPointsProfileForRecruit @@ -135,9 +133,9 @@ func SendScholarshipToRecruit(w http.ResponseWriter, r *http.Request) { return } - recruitingPointsProfile, recruitingProfile := managers.SendScholarshipToRecruit(updateRecruitPointsDto) - fmt.Printf("\nScholarship allocated to player " + strconv.Itoa(recruitingPointsProfile.RecruitID) + ". Record saved") - fmt.Printf("\nProfile: " + strconv.Itoa(recruitingProfile.TeamID) + " Saved") + recruitProfile, _ := managers.SendScholarshipToRecruit(updateRecruitPointsDto) + json.NewEncoder(w).Encode(recruitProfile) + } // RevokeScholarshipToRecruit @@ -165,9 +163,8 @@ func RemoveRecruitFromBoard(w http.ResponseWriter, r *http.Request) { return } - recruitingPointsProfile := managers.RemoveRecruitFromBoard(updateRecruitPointsDto) - - fmt.Printf("\nPlayer " + strconv.Itoa(recruitingPointsProfile.RecruitID) + " removed from board.") + recruitingProfile := managers.RemoveRecruitFromBoard(updateRecruitPointsDto) + json.NewEncoder(w).Encode(recruitingProfile) } // SaveRecruitingBoard diff --git a/managers/RecruitingProfileManager.go b/managers/RecruitingProfileManager.go index eb844d8..1f552e4 100644 --- a/managers/RecruitingProfileManager.go +++ b/managers/RecruitingProfileManager.go @@ -472,5 +472,5 @@ func SaveAIBehavior(profile structs.RecruitingTeamProfile) { TeamID := strconv.Itoa(int(profile.TeamID)) recruitingProfile := GetOnlyRecruitingProfileByTeamID(TeamID) recruitingProfile.UpdateAIBehavior(profile.IsAI, profile.AIAutoOfferscholarships, profile.AIStarMax, profile.AIStarMin, profile.AIMinThreshold, profile.AIMaxThreshold, profile.OffensiveScheme, profile.DefensiveScheme) - db.Save(&recruitingProfile) + repository.SaveRecruitingTeamProfile(recruitingProfile, db) } diff --git a/managers/RecruitsManager.go b/managers/RecruitsManager.go index 845365e..76db30d 100644 --- a/managers/RecruitsManager.go +++ b/managers/RecruitsManager.go @@ -8,6 +8,7 @@ import ( "strconv" "github.com/CalebRose/SimFBA/dbprovider" + "github.com/CalebRose/SimFBA/repository" "github.com/CalebRose/SimFBA/structs" "gorm.io/gorm" ) @@ -240,15 +241,15 @@ func SendScholarshipToRecruit(updateRecruitPointsDto structs.UpdateRecruitPoints strconv.Itoa(updateRecruitPointsDto.ProfileID), ) - crootProfile.ToggleScholarship(updateRecruitPointsDto.RewardScholarship, updateRecruitPointsDto.RevokeScholarship) + crootProfile.ToggleScholarship() if !crootProfile.ScholarshipRevoked { recruitingProfile.SubtractScholarshipsAvailable() } else { recruitingProfile.ReallocateScholarship() } - db.Save(&crootProfile) - db.Save(&recruitingProfile) + repository.SaveRecruitProfile(crootProfile, db) + repository.SaveRecruitingTeamProfile(recruitingProfile, db) return crootProfile, recruitingProfile } @@ -271,8 +272,8 @@ func RevokeScholarshipFromRecruit(updateRecruitPointsDto structs.UpdateRecruitPo // recruitingPointsProfile.ToggleScholarship() recruitingProfile.ReallocateScholarship() - db.Save(&recruitingPointsProfile) - db.Save(&recruitingProfile) + repository.SaveRecruitProfile(recruitingPointsProfile, db) + repository.SaveRecruitingTeamProfile(recruitingProfile, db) return recruitingPointsProfile, recruitingProfile } diff --git a/managers/SyncManager.go b/managers/SyncManager.go index e09d279..cd9f16b 100644 --- a/managers/SyncManager.go +++ b/managers/SyncManager.go @@ -737,7 +737,7 @@ func AllocatePointsToAIBoards() { if removeCrootFromBoard || (team.ScholarshipsAvailable == 0 && !croot.Scholarship) { if croot.Scholarship { - croot.ToggleScholarship(false, true) + croot.ToggleScholarship() team.ReallocateScholarship() } croot.ToggleRemoveFromBoard() @@ -752,7 +752,7 @@ func AllocatePointsToAIBoards() { croot.AllocateCurrentWeekPoints(num) if !croot.Scholarship && team.ScholarshipsAvailable > 0 && team.AIAutoOfferscholarships { - croot.ToggleScholarship(true, false) + croot.ToggleScholarship() team.SubtractScholarshipsAvailable() } diff --git a/structs/RecruitPlayerProfile.go b/structs/RecruitPlayerProfile.go index ba57332..54cab3d 100644 --- a/structs/RecruitPlayerProfile.go +++ b/structs/RecruitPlayerProfile.go @@ -66,9 +66,13 @@ func (rp *RecruitPlayerProfile) ToggleRemoveFromBoard() { rp.CurrentWeeksPoints = 0 } -func (rp *RecruitPlayerProfile) ToggleScholarship(rewardScholarship bool, revokeScholarship bool) { - rp.Scholarship = rewardScholarship - rp.ScholarshipRevoked = revokeScholarship +func (rp *RecruitPlayerProfile) ToggleScholarship() { + if !rp.Scholarship && !rp.ScholarshipRevoked { + rp.Scholarship = true + } else { + rp.Scholarship = false + rp.ScholarshipRevoked = true + } } func (rp *RecruitPlayerProfile) SetWinningTeamAbbreviation(team string) { From a74e4ccf0041896d1c9fa51b7aca5950b37892d3 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Tue, 17 Jun 2025 11:48:44 -0700 Subject: [PATCH 07/20] removing football models --- ...allModels.ts-2025-04-11T06_42_04.42.backup | 9246 ----------------- ...allModels.ts-2025-05-26T07_30_50.78.backup | 8975 ---------------- ...allModels.ts-2025-06-11T08_18_18.97.backup | 8754 ---------------- 3 files changed, 26975 deletions(-) delete mode 100644 footballModels.ts-2025-04-11T06_42_04.42.backup delete mode 100644 footballModels.ts-2025-05-26T07_30_50.78.backup delete mode 100644 footballModels.ts-2025-06-11T08_18_18.97.backup diff --git a/footballModels.ts-2025-04-11T06_42_04.42.backup b/footballModels.ts-2025-04-11T06_42_04.42.backup deleted file mode 100644 index cf1f992..0000000 --- a/footballModels.ts-2025-04-11T06_42_04.42.backup +++ /dev/null @@ -1,9246 +0,0 @@ -/* Do not change, this code is generated from Golang structs */ - -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"]; - } -} -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; - - 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"]; - } - - 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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - Rejections: number; - IsAccepted: boolean; - 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.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.Rejections = source["Rejections"]; - this.IsAccepted = source["IsAccepted"]; - 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 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"]; - } -} -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; - 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.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.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 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; - } -} -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; - } -} -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; - 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; - 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.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.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; - } -} -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; - } -} -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; - } -} -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; - } -} -export class NFLDraftPick { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - SeasonID: number; - Season: number; - DrafteeID: number; - DraftRound: number; - DraftNumber: 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.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; - } -} -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; - } -} -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; - PenaltyMarks: number; - 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.PenaltyMarks = source["PenaltyMarks"]; - 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 Notification { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - League: string; - NotificationType: string; - Message: string; - Subject: string; - IsRead: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.TeamID = source["TeamID"]; - this.League = source["League"]; - this.NotificationType = source["NotificationType"]; - this.Message = source["Message"]; - this.Subject = source["Subject"]; - this.IsRead = source["IsRead"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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; - - 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.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"]; - } - - 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: Time; - 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"], Time); - 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 NullInt64 { - Int64: number; - Valid: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Int64 = source["Int64"]; - this.Valid = source["Valid"]; - } -} -export class TransferPortalProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - CollegePlayer: CollegePlayer; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.SeasonID = source["SeasonID"]; - this.CollegePlayerID = source["CollegePlayerID"]; - this.ProfileID = source["ProfileID"]; - this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.RolledOnPromise = source["RolledOnPromise"]; - this.LockProfile = source["LockProfile"]; - this.IsSigned = source["IsSigned"]; - this.Recruiter = source["Recruiter"]; - this.CollegePlayer = this.convertValues( - source["CollegePlayer"], - CollegePlayer - ); - 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 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; - } -} -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; - } -} -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; - 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; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 CollegeDepthChartPosition { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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"], 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.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: Time; - 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"], Time); - 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: 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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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; - } -} -export class Time { - 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; - PenaltyMarks: number; - 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.PenaltyMarks = source["PenaltyMarks"]; - 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 BootstrapData { - CollegeTeam: CollegeTeam; - AllCollegeTeams: CollegeTeam[]; - CollegeRosterMap: { [key: uint]: CollegePlayer[] }; - TopCFBPassers: CollegePlayer[]; - TopCFBRushers: CollegePlayer[]; - TopCFBReceivers: CollegePlayer[]; - PortalPlayers: CollegePlayer[]; - CollegeInjuryReport: CollegePlayer[]; - CollegeNotifications: Notification[]; - CollegeGameplan: CollegeGameplan; - CollegeDepthChart: CollegeTeamDepthChart; - ProTeam: NFLTeam; - AllProTeams: NFLTeam[]; - ProNotifications: Notification[]; - NFLGameplan: NFLGameplan; - NFLDepthChart: NFLDepthChart; - FaceData: { [key: uint]: FaceDataResponse }; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); - this.AllCollegeTeams = this.convertValues( - source["AllCollegeTeams"], - CollegeTeam - ); - this.CollegeRosterMap = source["CollegeRosterMap"]; - this.TopCFBPassers = this.convertValues( - source["TopCFBPassers"], - CollegePlayer - ); - this.TopCFBRushers = this.convertValues( - source["TopCFBRushers"], - CollegePlayer - ); - this.TopCFBReceivers = this.convertValues( - source["TopCFBReceivers"], - CollegePlayer - ); - this.PortalPlayers = this.convertValues( - source["PortalPlayers"], - CollegePlayer - ); - this.CollegeInjuryReport = this.convertValues( - source["CollegeInjuryReport"], - CollegePlayer - ); - this.CollegeNotifications = this.convertValues( - source["CollegeNotifications"], - Notification - ); - this.CollegeGameplan = this.convertValues( - source["CollegeGameplan"], - CollegeGameplan - ); - this.CollegeDepthChart = this.convertValues( - source["CollegeDepthChart"], - CollegeTeamDepthChart - ); - this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); - this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); - this.ProNotifications = this.convertValues( - source["ProNotifications"], - Notification - ); - this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); - this.NFLDepthChart = this.convertValues( - source["NFLDepthChart"], - NFLDepthChart - ); - this.FaceData = this.convertValues( - source["FaceData"], - FaceDataResponse, - true - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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.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 CollegeGame { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - WeekID: number; - Week: number; - SeasonID: number; - HomeTeamRank: number; - HomeTeamID: number; - HomeTeam: string; - HomeTeamCoach: string; - HomeTeamWin: boolean; - AwayTeamRank: number; - AwayTeamID: number; - AwayTeam: string; - AwayTeamCoach: string; - AwayTeamWin: boolean; - MVP: string; - HomeTeamScore: number; - AwayTeamScore: number; - TimeSlot: string; - StadiumID: number; - Stadium: string; - City: string; - State: string; - Region: string; - LowTemp: number; - HighTemp: number; - GameTemp: number; - Cloud: string; - Precip: string; - WindSpeed: number; - WindCategory: string; - IsNeutral: boolean; - IsDomed: boolean; - IsNightGame: boolean; - IsConference: boolean; - IsDivisional: boolean; - IsConferenceChampionship: boolean; - IsBowlGame: boolean; - IsPlayoffGame: boolean; - IsNationalChampionship: boolean; - IsRivalryGame: boolean; - GameComplete: boolean; - IsSpringGame: boolean; - GameTitle: string; - NextGameID: number; - NextGameHOA: string; - HomePreviousBye: boolean; - AwayPreviousBye: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; - this.HomeTeamRank = source["HomeTeamRank"]; - this.HomeTeamID = source["HomeTeamID"]; - this.HomeTeam = source["HomeTeam"]; - this.HomeTeamCoach = source["HomeTeamCoach"]; - this.HomeTeamWin = source["HomeTeamWin"]; - this.AwayTeamRank = source["AwayTeamRank"]; - this.AwayTeamID = source["AwayTeamID"]; - this.AwayTeam = source["AwayTeam"]; - this.AwayTeamCoach = source["AwayTeamCoach"]; - this.AwayTeamWin = source["AwayTeamWin"]; - this.MVP = source["MVP"]; - this.HomeTeamScore = source["HomeTeamScore"]; - this.AwayTeamScore = source["AwayTeamScore"]; - this.TimeSlot = source["TimeSlot"]; - this.StadiumID = source["StadiumID"]; - this.Stadium = source["Stadium"]; - this.City = source["City"]; - this.State = source["State"]; - this.Region = source["Region"]; - this.LowTemp = source["LowTemp"]; - this.HighTemp = source["HighTemp"]; - this.GameTemp = source["GameTemp"]; - this.Cloud = source["Cloud"]; - this.Precip = source["Precip"]; - this.WindSpeed = source["WindSpeed"]; - this.WindCategory = source["WindCategory"]; - this.IsNeutral = source["IsNeutral"]; - this.IsDomed = source["IsDomed"]; - this.IsNightGame = source["IsNightGame"]; - this.IsConference = source["IsConference"]; - this.IsDivisional = source["IsDivisional"]; - this.IsConferenceChampionship = source["IsConferenceChampionship"]; - this.IsBowlGame = source["IsBowlGame"]; - this.IsPlayoffGame = source["IsPlayoffGame"]; - this.IsNationalChampionship = source["IsNationalChampionship"]; - this.IsRivalryGame = source["IsRivalryGame"]; - this.GameComplete = source["GameComplete"]; - this.IsSpringGame = source["IsSpringGame"]; - this.GameTitle = source["GameTitle"]; - this.NextGameID = source["NextGameID"]; - this.NextGameHOA = source["NextGameHOA"]; - this.HomePreviousBye = source["HomePreviousBye"]; - this.AwayPreviousBye = source["AwayPreviousBye"]; - } - - 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; - } -} -export class BootstrapDataTwo { - CollegeNews: NewsLog[]; - AllCollegeGames: CollegeGame[]; - TeamProfileMap: { [key: string]: RecruitingTeamProfile }; - CollegeStandings: CollegeStandings[]; - ProStandings: NFLStandings[]; - AllProGames: NFLGame[]; - CapsheetMap: { [key: uint]: NFLCapsheet }; - ProRosterMap: { [key: uint]: NFLPlayer[] }; - TopNFLPassers: NFLPlayer[]; - TopNFLRushers: NFLPlayer[]; - TopNFLReceivers: NFLPlayer[]; - ProInjuryReport: NFLPlayer[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); - this.AllCollegeGames = this.convertValues( - source["AllCollegeGames"], - CollegeGame - ); - this.TeamProfileMap = source["TeamProfileMap"]; - this.CollegeStandings = this.convertValues( - source["CollegeStandings"], - CollegeStandings - ); - this.ProStandings = this.convertValues( - source["ProStandings"], - NFLStandings - ); - this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); - this.CapsheetMap = this.convertValues( - source["CapsheetMap"], - NFLCapsheet, - true - ); - this.ProRosterMap = source["ProRosterMap"]; - this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); - this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); - this.TopNFLReceivers = this.convertValues( - source["TopNFLReceivers"], - NFLPlayer - ); - this.ProInjuryReport = this.convertValues( - source["ProInjuryReport"], - 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 WaiverWirePlayerResponse { - ID: number; - PlayerID: 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; - TeamID: number; - College: string; - TeamAbbr: string; - Hometown: string; - State: string; - Experience: number; - IsActive: boolean; - IsFreeAgent: boolean; - IsWaived: boolean; - IsAcceptingOffers: boolean; - IsNegotiating: boolean; - MinimumValue: number; - PreviousTeam: string; - DraftedTeam: string; - ShowLetterGrade: boolean; - IsPracticeSquad: boolean; - SeasonStats: NFLPlayerSeasonStats; - WaiverOffers: NFLWaiverOffer[]; - Contract: NFLContract; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.PlayerID = source["PlayerID"]; - 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.TeamID = source["TeamID"]; - this.College = source["College"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Hometown = source["Hometown"]; - this.State = source["State"]; - this.Experience = source["Experience"]; - this.IsActive = source["IsActive"]; - this.IsFreeAgent = source["IsFreeAgent"]; - this.IsWaived = source["IsWaived"]; - this.IsAcceptingOffers = source["IsAcceptingOffers"]; - this.IsNegotiating = source["IsNegotiating"]; - this.MinimumValue = source["MinimumValue"]; - this.PreviousTeam = source["PreviousTeam"]; - this.DraftedTeam = source["DraftedTeam"]; - this.ShowLetterGrade = source["ShowLetterGrade"]; - this.IsPracticeSquad = source["IsPracticeSquad"]; - this.SeasonStats = this.convertValues( - source["SeasonStats"], - NFLPlayerSeasonStats - ); - this.WaiverOffers = this.convertValues( - source["WaiverOffers"], - NFLWaiverOffer - ); - this.Contract = this.convertValues(source["Contract"], NFLContract); - } - - 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 FreeAgentResponse { - ID: number; - PlayerID: number; - FirstName: string; - LastName: string; - Position: string; - PositionTwo: string; - Archetype: string; - ArchetypeTwo: string; - Height: number; - Weight: number; - Age: number; - Overall: 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; - InjuryRating: number; - Stamina: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - PreviousTeamID: number; - PreviousTeam: string; - TeamID: number; - College: string; - TeamAbbr: string; - Hometown: string; - State: string; - Experience: number; - IsActive: boolean; - IsFreeAgent: boolean; - IsWaived: boolean; - MinimumValue: number; - DraftedTeam: string; - ShowLetterGrade: boolean; - IsPracticeSquad: boolean; - IsAcceptingOffers: boolean; - IsNegotiating: boolean; - Shotgun: number; - SeasonStats: NFLPlayerSeasonStats; - Offers: FreeAgencyOffer[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.PlayerID = source["PlayerID"]; - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.PositionTwo = source["PositionTwo"]; - this.Archetype = source["Archetype"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Overall = source["Overall"]; - 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.InjuryRating = source["InjuryRating"]; - this.Stamina = source["Stamina"]; - 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.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.TeamID = source["TeamID"]; - this.College = source["College"]; - this.TeamAbbr = source["TeamAbbr"]; - this.Hometown = source["Hometown"]; - this.State = source["State"]; - this.Experience = source["Experience"]; - this.IsActive = source["IsActive"]; - this.IsFreeAgent = source["IsFreeAgent"]; - this.IsWaived = source["IsWaived"]; - this.MinimumValue = source["MinimumValue"]; - this.DraftedTeam = source["DraftedTeam"]; - this.ShowLetterGrade = source["ShowLetterGrade"]; - this.IsPracticeSquad = source["IsPracticeSquad"]; - this.IsAcceptingOffers = source["IsAcceptingOffers"]; - this.IsNegotiating = source["IsNegotiating"]; - this.Shotgun = source["Shotgun"]; - this.SeasonStats = this.convertValues( - source["SeasonStats"], - NFLPlayerSeasonStats - ); - this.Offers = this.convertValues(source["Offers"], FreeAgencyOffer); - } - - 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 FreeAgencyResponse { - FreeAgents: FreeAgentResponse[]; - WaiverPlayers: WaiverWirePlayerResponse[]; - PracticeSquad: FreeAgentResponse[]; - TeamOffers: FreeAgencyOffer[]; - RosterCount: number; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.FreeAgents = this.convertValues( - source["FreeAgents"], - FreeAgentResponse - ); - this.WaiverPlayers = this.convertValues( - source["WaiverPlayers"], - WaiverWirePlayerResponse - ); - this.PracticeSquad = this.convertValues( - source["PracticeSquad"], - FreeAgentResponse - ); - this.TeamOffers = this.convertValues(source["TeamOffers"], FreeAgencyOffer); - this.RosterCount = source["RosterCount"]; - } - - 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"]; - } -} -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[]; - - 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 - ); - } - - 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 BootstrapDataThree { - Recruits: Croot[]; - CollegeDepthChartMap: { [key: uint]: CollegeTeamDepthChart }; - FreeAgency: FreeAgencyResponse; - ProNews: NewsLog[]; - NFLDepthChartMap: { [key: uint]: NFLDepthChart }; - ContractMap: { [key: number]: NFLContract }; - ExtensionMap: { [key: number]: NFLExtensionOffer }; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Recruits = this.convertValues(source["Recruits"], Croot); - this.CollegeDepthChartMap = this.convertValues( - source["CollegeDepthChartMap"], - CollegeTeamDepthChart, - true - ); - this.FreeAgency = this.convertValues( - source["FreeAgency"], - FreeAgencyResponse - ); - this.ProNews = this.convertValues(source["ProNews"], NewsLog); - this.NFLDepthChartMap = this.convertValues( - source["NFLDepthChartMap"], - NFLDepthChart, - true - ); - this.ContractMap = this.convertValues( - source["ContractMap"], - NFLContract, - true - ); - this.ExtensionMap = this.convertValues( - source["ExtensionMap"], - NFLExtensionOffer, - true - ); - } - - 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; - } -} -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; - } -} -export class TeamRequestsResponse { - CollegeRequests: TeamRequest[]; - ProRequests: NFLRequest[]; - - 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); - } - - 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; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - } -} - -export class BaseTeam { - TeamName: string; - Mascot: string; - TeamAbbr: string; - Coach: string; - City: string; - State: string; - Country: string; - StadiumID: number; - Stadium: string; - StadiumCapacity: number; - RecordAttendance: number; - Enrollment: number; - FirstPlayed: number; - ColorOne: string; - ColorTwo: string; - ColorThree: string; - DiscordID: string; - OverallGrade: string; - OffenseGrade: string; - DefenseGrade: string; - PenaltyMarks: number; - - 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.PenaltyMarks = source["PenaltyMarks"]; - } -} - -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; - } -} - -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; - } -} -export class UpdateRecruitPointsDto { - RecruitPointsID: number; - RecruitID: number; - ProfileID: number; - Team: string; - WeekID: number; - AllocationID: number; - SpentPoints: number; - RewardScholarship: boolean; - RevokeScholarship: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.RecruitPointsID = source["RecruitPointsID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.Team = source["Team"]; - this.WeekID = source["WeekID"]; - this.AllocationID = source["AllocationID"]; - this.SpentPoints = source["SpentPoints"]; - this.RewardScholarship = source["RewardScholarship"]; - this.RevokeScholarship = source["RevokeScholarship"]; - } -} -export class CrootProfile { - ID: number; - SeasonID: number; - 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; - } -} -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; - } -} -export class RecruitPointAllocation { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - RecruitID: number; - TeamProfileID: number; - RecruitProfileID: number; - WeekID: number; - Points: number; - RESAffectedPoints: number; - AffinityOneApplied: boolean; - AffinityTwoApplied: boolean; - CaughtCheating: boolean; - - 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.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"]; - } -} -export class CFBRosterPageResponse { - Players: CollegePlayer[]; - Promises: CollegePromise[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Players = this.convertValues(source["Players"], CollegePlayer); - this.Promises = this.convertValues(source["Promises"], CollegePromise); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - -export class TransferPlayerResponse { - FirstName: string; - LastName: string; - Archetype: string; - Position: string; - PositionTwo: string; - ArchetypeTwo: string; - Age: number; - Year: number; - State: string; - Country: string; - Stars: number; - Height: number; - Weight: number; - PotentialGrade: string; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - OverallGrade: string; - Personality: string; - RecruitingBias: string; - RecruitingBiasValue: string; - WorkEthic: string; - AcademicBias: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - IsRedshirting: boolean; - IsRedshirt: boolean; - PreviousTeamID: number; - PreviousTeam: string; - TransferStatus: number; - TransferLikeliness: string; - LegacyID: number; - SeasonStats: CollegePlayerSeasonStats; - Stats: CollegePlayerStats; - LeadingTeams: LeadingTeams[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Archetype = source["Archetype"]; - this.Position = source["Position"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Age = source["Age"]; - this.Year = source["Year"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.Stars = source["Stars"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.PotentialGrade = source["PotentialGrade"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.OverallGrade = source["OverallGrade"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.RecruitingBiasValue = source["RecruitingBiasValue"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.IsRedshirting = source["IsRedshirting"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.LegacyID = source["LegacyID"]; - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.LeadingTeams = this.convertValues( - source["LeadingTeams"], - LeadingTeams - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class TransferPortalProfileResponse { - ID: number; - SeasonID: number; - CollegePlayerID: number; - ProfileID: number; - PromiseID: number; - TeamAbbreviation: string; - TotalPoints: number; - CurrentWeeksPoints: number; - PreviouslySpentPoints: number; - SpendingCount: number; - RemovedFromBoard: boolean; - RolledOnPromise: boolean; - LockProfile: boolean; - IsSigned: boolean; - Recruiter: string; - CollegePlayer: TransferPlayerResponse; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.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; - } -} -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; - } -} -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; - } -} - -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; - - 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"]; - } -} -export class NFLWaiverOffDTO { - ID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - WaiverOrder: number; - IsActive: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.WaiverOrder = source["WaiverOrder"]; - this.IsActive = source["IsActive"]; - } -} - -export class CollegePollSubmission { - 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 CollegePollOfficial { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - SeasonID: number; - WeekID: number; - Week: number; - Rank1: string; - Rank1ID: number; - Rank1Votes: number; - Rank1No1Votes: number; - Rank2: string; - Rank2ID: number; - Rank2Votes: number; - Rank2No1Votes: number; - Rank3: string; - Rank3ID: number; - Rank3Votes: number; - Rank3No1Votes: number; - Rank4: string; - Rank4ID: number; - Rank4Votes: number; - Rank4No1Votes: number; - Rank5: string; - Rank5ID: number; - Rank5Votes: number; - Rank5No1Votes: number; - Rank6: string; - Rank6ID: number; - Rank6Votes: number; - Rank6No1Votes: number; - Rank7: string; - Rank7ID: number; - Rank7Votes: number; - Rank7No1Votes: number; - Rank8: string; - Rank8ID: number; - Rank8Votes: number; - Rank8No1Votes: number; - Rank9: string; - Rank9ID: number; - Rank9Votes: number; - Rank9No1Votes: number; - Rank10: string; - Rank10ID: number; - Rank10Votes: number; - Rank10No1Votes: number; - Rank11: string; - Rank11ID: number; - Rank11Votes: number; - Rank11No1Votes: number; - Rank12: string; - Rank12ID: number; - Rank12Votes: number; - Rank12No1Votes: number; - Rank13: string; - Rank13ID: number; - Rank13Votes: number; - Rank13No1Votes: number; - Rank14: string; - Rank14ID: number; - Rank14Votes: number; - Rank14No1Votes: number; - Rank15: string; - Rank15ID: number; - Rank15Votes: number; - Rank15No1Votes: number; - Rank16: string; - Rank16ID: number; - Rank16Votes: number; - Rank16No1Votes: number; - Rank17: string; - Rank17ID: number; - Rank17Votes: number; - Rank17No1Votes: number; - Rank18: string; - Rank18ID: number; - Rank18Votes: number; - Rank18No1Votes: number; - Rank19: string; - Rank19ID: number; - Rank19Votes: number; - Rank19No1Votes: number; - Rank20: string; - Rank20ID: number; - Rank20Votes: number; - Rank20No1Votes: number; - Rank21: string; - Rank21ID: number; - Rank21Votes: number; - Rank21No1Votes: number; - Rank22: string; - Rank22ID: number; - Rank22Votes: number; - Rank22No1Votes: number; - Rank23: string; - Rank23ID: number; - Rank23Votes: number; - Rank23No1Votes: number; - Rank24: string; - Rank24ID: number; - Rank24Votes: number; - Rank24No1Votes: number; - Rank25: string; - Rank25ID: number; - Rank25Votes: number; - Rank25No1Votes: number; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Rank1 = source["Rank1"]; - this.Rank1ID = source["Rank1ID"]; - this.Rank1Votes = source["Rank1Votes"]; - this.Rank1No1Votes = source["Rank1No1Votes"]; - this.Rank2 = source["Rank2"]; - this.Rank2ID = source["Rank2ID"]; - this.Rank2Votes = source["Rank2Votes"]; - this.Rank2No1Votes = source["Rank2No1Votes"]; - this.Rank3 = source["Rank3"]; - this.Rank3ID = source["Rank3ID"]; - this.Rank3Votes = source["Rank3Votes"]; - this.Rank3No1Votes = source["Rank3No1Votes"]; - this.Rank4 = source["Rank4"]; - this.Rank4ID = source["Rank4ID"]; - this.Rank4Votes = source["Rank4Votes"]; - this.Rank4No1Votes = source["Rank4No1Votes"]; - this.Rank5 = source["Rank5"]; - this.Rank5ID = source["Rank5ID"]; - this.Rank5Votes = source["Rank5Votes"]; - this.Rank5No1Votes = source["Rank5No1Votes"]; - this.Rank6 = source["Rank6"]; - this.Rank6ID = source["Rank6ID"]; - this.Rank6Votes = source["Rank6Votes"]; - this.Rank6No1Votes = source["Rank6No1Votes"]; - this.Rank7 = source["Rank7"]; - this.Rank7ID = source["Rank7ID"]; - this.Rank7Votes = source["Rank7Votes"]; - this.Rank7No1Votes = source["Rank7No1Votes"]; - this.Rank8 = source["Rank8"]; - this.Rank8ID = source["Rank8ID"]; - this.Rank8Votes = source["Rank8Votes"]; - this.Rank8No1Votes = source["Rank8No1Votes"]; - this.Rank9 = source["Rank9"]; - this.Rank9ID = source["Rank9ID"]; - this.Rank9Votes = source["Rank9Votes"]; - this.Rank9No1Votes = source["Rank9No1Votes"]; - this.Rank10 = source["Rank10"]; - this.Rank10ID = source["Rank10ID"]; - this.Rank10Votes = source["Rank10Votes"]; - this.Rank10No1Votes = source["Rank10No1Votes"]; - this.Rank11 = source["Rank11"]; - this.Rank11ID = source["Rank11ID"]; - this.Rank11Votes = source["Rank11Votes"]; - this.Rank11No1Votes = source["Rank11No1Votes"]; - this.Rank12 = source["Rank12"]; - this.Rank12ID = source["Rank12ID"]; - this.Rank12Votes = source["Rank12Votes"]; - this.Rank12No1Votes = source["Rank12No1Votes"]; - this.Rank13 = source["Rank13"]; - this.Rank13ID = source["Rank13ID"]; - this.Rank13Votes = source["Rank13Votes"]; - this.Rank13No1Votes = source["Rank13No1Votes"]; - this.Rank14 = source["Rank14"]; - this.Rank14ID = source["Rank14ID"]; - this.Rank14Votes = source["Rank14Votes"]; - this.Rank14No1Votes = source["Rank14No1Votes"]; - this.Rank15 = source["Rank15"]; - this.Rank15ID = source["Rank15ID"]; - this.Rank15Votes = source["Rank15Votes"]; - this.Rank15No1Votes = source["Rank15No1Votes"]; - this.Rank16 = source["Rank16"]; - this.Rank16ID = source["Rank16ID"]; - this.Rank16Votes = source["Rank16Votes"]; - this.Rank16No1Votes = source["Rank16No1Votes"]; - this.Rank17 = source["Rank17"]; - this.Rank17ID = source["Rank17ID"]; - this.Rank17Votes = source["Rank17Votes"]; - this.Rank17No1Votes = source["Rank17No1Votes"]; - this.Rank18 = source["Rank18"]; - this.Rank18ID = source["Rank18ID"]; - this.Rank18Votes = source["Rank18Votes"]; - this.Rank18No1Votes = source["Rank18No1Votes"]; - this.Rank19 = source["Rank19"]; - this.Rank19ID = source["Rank19ID"]; - this.Rank19Votes = source["Rank19Votes"]; - this.Rank19No1Votes = source["Rank19No1Votes"]; - this.Rank20 = source["Rank20"]; - this.Rank20ID = source["Rank20ID"]; - this.Rank20Votes = source["Rank20Votes"]; - this.Rank20No1Votes = source["Rank20No1Votes"]; - this.Rank21 = source["Rank21"]; - this.Rank21ID = source["Rank21ID"]; - this.Rank21Votes = source["Rank21Votes"]; - this.Rank21No1Votes = source["Rank21No1Votes"]; - this.Rank22 = source["Rank22"]; - this.Rank22ID = source["Rank22ID"]; - this.Rank22Votes = source["Rank22Votes"]; - this.Rank22No1Votes = source["Rank22No1Votes"]; - this.Rank23 = source["Rank23"]; - this.Rank23ID = source["Rank23ID"]; - this.Rank23Votes = source["Rank23Votes"]; - this.Rank23No1Votes = source["Rank23No1Votes"]; - this.Rank24 = source["Rank24"]; - this.Rank24ID = source["Rank24ID"]; - this.Rank24Votes = source["Rank24Votes"]; - this.Rank24No1Votes = source["Rank24No1Votes"]; - this.Rank25 = source["Rank25"]; - this.Rank25ID = source["Rank25ID"]; - this.Rank25Votes = source["Rank25Votes"]; - this.Rank25No1Votes = source["Rank25No1Votes"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - } -} - -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; - 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.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 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; - } -} -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; - } -} -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; - } -} - -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"]; - } -} -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; - } -} -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"]; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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 HistoricCollegePlayer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PreviousTeamID: number; - PreviousTeam: string; - Height: number; - Weight: number; - Age: number; - Stars: number; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - Progression: number; - Discipline: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - IsInjured: boolean; - InjuryName: string; - InjuryType: string; - WeeksOfRecovery: number; - InjuryReserve: boolean; - PrimeAge: number; - Clutch: number; - Shotgun: number; - PositionTwo: string; - ArchetypeTwo: string; - RelativeID: number; - RelativeType: number; - Notes: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - HighSchool: string; - City: string; - State: string; - Year: number; - IsRedshirt: boolean; - IsRedshirting: boolean; - HasGraduated: boolean; - TransferStatus: number; - TransferLikeliness: string; - Stats: CollegePlayerStats[]; - SeasonStats: CollegePlayerSeasonStats; - HasProgressed: boolean; - WillDeclare: boolean; - LegacyID: number; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 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; - 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; - 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.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.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 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; - } -} -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; - } -} -export class NFLTradeOptionObj { - ID: number; - TradeProposalID: number; - NFLTeamID: number; - NFLPlayerID: number; - NFLDraftPickID: number; - OptionType: string; - SalaryPercentage: number; - Player: NFLPlayer; - Draftpick: NFLDraftPick; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TradeProposalID = source["TradeProposalID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.NFLDraftPickID = source["NFLDraftPickID"]; - this.OptionType = source["OptionType"]; - this.SalaryPercentage = source["SalaryPercentage"]; - this.Player = this.convertValues(source["Player"], NFLPlayer); - this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradeProposalDTO { - ID: number; - NFLTeamID: number; - NFLTeam: string; - RecepientTeamID: number; - RecepientTeam: string; - IsTradeAccepted: boolean; - IsTradeRejected: boolean; - NFLTeamTradeOptions: NFLTradeOptionObj[]; - RecepientTeamTradeOptions: NFLTradeOptionObj[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLTeam = source["NFLTeam"]; - this.RecepientTeamID = source["RecepientTeamID"]; - this.RecepientTeam = source["RecepientTeam"]; - this.IsTradeAccepted = source["IsTradeAccepted"]; - this.IsTradeRejected = source["IsTradeRejected"]; - this.NFLTeamTradeOptions = this.convertValues( - source["NFLTeamTradeOptions"], - NFLTradeOptionObj - ); - this.RecepientTeamTradeOptions = this.convertValues( - source["RecepientTeamTradeOptions"], - NFLTradeOptionObj - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - -export class NFLTeamProposals { - SentTradeProposals: NFLTradeProposalDTO[]; - ReceivedTradeProposals: NFLTradeProposalDTO[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.SentTradeProposals = this.convertValues( - source["SentTradeProposals"], - NFLTradeProposalDTO - ); - this.ReceivedTradeProposals = this.convertValues( - source["ReceivedTradeProposals"], - NFLTradeProposalDTO - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferences { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - Quarterbacks: boolean; - QuarterbackType: string; - Runningbacks: boolean; - RunningbackType: string; - Fullbacks: boolean; - FullbackType: string; - WideReceivers: boolean; - WideReceiverType: string; - TightEnds: boolean; - TightEndType: string; - OffensiveTackles: boolean; - OffensiveGuards: boolean; - Centers: boolean; - OffensiveTackleType: string; - OffensiveGuardType: string; - CenterType: string; - DefensiveTackles: boolean; - DefensiveTackleType: string; - DefensiveEnds: boolean; - DefensiveEndType: string; - OutsideLinebackers: boolean; - OutsideLinebackerType: string; - InsideLinebackers: boolean; - InsideLinebackerType: string; - Cornerbacks: boolean; - CornerbackType: string; - FreeSafeties: boolean; - FreeSafetyType: string; - StrongSafeties: boolean; - StrongSafetyType: string; - Kickers: boolean; - KickerType: string; - Punters: boolean; - PunterType: string; - DraftPicks: boolean; - DraftPickType: string; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.NFLTeamID = source["NFLTeamID"]; - this.Quarterbacks = source["Quarterbacks"]; - this.QuarterbackType = source["QuarterbackType"]; - this.Runningbacks = source["Runningbacks"]; - this.RunningbackType = source["RunningbackType"]; - this.Fullbacks = source["Fullbacks"]; - this.FullbackType = source["FullbackType"]; - this.WideReceivers = source["WideReceivers"]; - this.WideReceiverType = source["WideReceiverType"]; - this.TightEnds = source["TightEnds"]; - this.TightEndType = source["TightEndType"]; - this.OffensiveTackles = source["OffensiveTackles"]; - this.OffensiveGuards = source["OffensiveGuards"]; - this.Centers = source["Centers"]; - this.OffensiveTackleType = source["OffensiveTackleType"]; - this.OffensiveGuardType = source["OffensiveGuardType"]; - this.CenterType = source["CenterType"]; - this.DefensiveTackles = source["DefensiveTackles"]; - this.DefensiveTackleType = source["DefensiveTackleType"]; - this.DefensiveEnds = source["DefensiveEnds"]; - this.DefensiveEndType = source["DefensiveEndType"]; - this.OutsideLinebackers = source["OutsideLinebackers"]; - this.OutsideLinebackerType = source["OutsideLinebackerType"]; - this.InsideLinebackers = source["InsideLinebackers"]; - this.InsideLinebackerType = source["InsideLinebackerType"]; - this.Cornerbacks = source["Cornerbacks"]; - this.CornerbackType = source["CornerbackType"]; - this.FreeSafeties = source["FreeSafeties"]; - this.FreeSafetyType = source["FreeSafetyType"]; - this.StrongSafeties = source["StrongSafeties"]; - this.StrongSafetyType = source["StrongSafetyType"]; - this.Kickers = source["Kickers"]; - this.KickerType = source["KickerType"]; - this.Punters = source["Punters"]; - this.PunterType = source["PunterType"]; - this.DraftPicks = source["DraftPicks"]; - this.DraftPickType = source["DraftPickType"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferencesDTO { - NFLTeamID: number; - Quarterbacks: boolean; - 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; - } -} - -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[]; - - 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"]; - } -} -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"]; - } -} -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"]; - } -} -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; - } -} - -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"]; - } -} -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; - } -} - -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; - } -} - -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"]; - } -} -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; - 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.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; - } -} diff --git a/footballModels.ts-2025-05-26T07_30_50.78.backup b/footballModels.ts-2025-05-26T07_30_50.78.backup deleted file mode 100644 index 388dcf0..0000000 --- a/footballModels.ts-2025-05-26T07_30_50.78.backup +++ /dev/null @@ -1,8975 +0,0 @@ -/* Do not change, this code is generated from Golang structs */ - -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"]; - } -} -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; - - 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"]; - } - - 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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - Rejections: number; - IsAccepted: boolean; - 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.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.Rejections = source["Rejections"]; - this.IsAccepted = source["IsAccepted"]; - 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 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"]; - } -} -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; - 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.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.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 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; - } -} -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; - } -} -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; - 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; - 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.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.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; - } -} -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; - } -} -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; - } -} -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; - } -} -export class NFLDraftPick { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - SeasonID: number; - Season: number; - DrafteeID: number; - DraftRound: number; - DraftNumber: 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.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; - } -} -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; - } -} -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; - 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.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 Notification { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - League: string; - NotificationType: string; - Message: string; - Subject: string; - IsRead: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.TeamID = source["TeamID"]; - this.League = source["League"]; - this.NotificationType = source["NotificationType"]; - this.Message = source["Message"]; - this.Subject = source["Subject"]; - this.IsRead = source["IsRead"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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; - - 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.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"]; - } - - 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: Time; - 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"], Time); - 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 NullInt64 { - Int64: number; - Valid: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Int64 = source["Int64"]; - this.Valid = source["Valid"]; - } -} -export class TransferPortalProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - CollegePlayer: CollegePlayer; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.SeasonID = source["SeasonID"]; - this.CollegePlayerID = source["CollegePlayerID"]; - this.ProfileID = source["ProfileID"]; - this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.RolledOnPromise = source["RolledOnPromise"]; - this.LockProfile = source["LockProfile"]; - this.IsSigned = source["IsSigned"]; - this.Recruiter = source["Recruiter"]; - this.CollegePlayer = this.convertValues( - source["CollegePlayer"], - CollegePlayer - ); - 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 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; - } -} -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; - } -} -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; - 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; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 CollegeDepthChartPosition { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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"], 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.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: Time; - 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"], Time); - 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: 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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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; - } -} -export class Time { - 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; - 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.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 BootstrapData { - CollegeTeam: CollegeTeam; - AllCollegeTeams: CollegeTeam[]; - CollegeRosterMap: { [key: uint]: CollegePlayer[] }; - TopCFBPassers: CollegePlayer[]; - TopCFBRushers: CollegePlayer[]; - TopCFBReceivers: CollegePlayer[]; - PortalPlayers: CollegePlayer[]; - CollegeInjuryReport: CollegePlayer[]; - CollegeNotifications: Notification[]; - CollegeGameplan: CollegeGameplan; - CollegeDepthChart: CollegeTeamDepthChart; - ProTeam: NFLTeam; - AllProTeams: NFLTeam[]; - ProNotifications: Notification[]; - NFLGameplan: NFLGameplan; - NFLDepthChart: NFLDepthChart; - FaceData: { [key: uint]: FaceDataResponse }; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); - this.AllCollegeTeams = this.convertValues( - source["AllCollegeTeams"], - CollegeTeam - ); - this.CollegeRosterMap = source["CollegeRosterMap"]; - this.TopCFBPassers = this.convertValues( - source["TopCFBPassers"], - CollegePlayer - ); - this.TopCFBRushers = this.convertValues( - source["TopCFBRushers"], - CollegePlayer - ); - this.TopCFBReceivers = this.convertValues( - source["TopCFBReceivers"], - CollegePlayer - ); - this.PortalPlayers = this.convertValues( - source["PortalPlayers"], - CollegePlayer - ); - this.CollegeInjuryReport = this.convertValues( - source["CollegeInjuryReport"], - CollegePlayer - ); - this.CollegeNotifications = this.convertValues( - source["CollegeNotifications"], - Notification - ); - this.CollegeGameplan = this.convertValues( - source["CollegeGameplan"], - CollegeGameplan - ); - this.CollegeDepthChart = this.convertValues( - source["CollegeDepthChart"], - CollegeTeamDepthChart - ); - this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); - this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); - this.ProNotifications = this.convertValues( - source["ProNotifications"], - Notification - ); - this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); - this.NFLDepthChart = this.convertValues( - source["NFLDepthChart"], - NFLDepthChart - ); - this.FaceData = this.convertValues( - source["FaceData"], - FaceDataResponse, - true - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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.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 CollegeGame { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - WeekID: number; - Week: number; - SeasonID: number; - HomeTeamRank: number; - HomeTeamID: number; - HomeTeam: string; - HomeTeamCoach: string; - HomeTeamWin: boolean; - AwayTeamRank: number; - AwayTeamID: number; - AwayTeam: string; - AwayTeamCoach: string; - AwayTeamWin: boolean; - MVP: string; - HomeTeamScore: number; - AwayTeamScore: number; - TimeSlot: string; - StadiumID: number; - Stadium: string; - City: string; - State: string; - Region: string; - LowTemp: number; - HighTemp: number; - GameTemp: number; - Cloud: string; - Precip: string; - WindSpeed: number; - WindCategory: string; - IsNeutral: boolean; - IsDomed: boolean; - IsNightGame: boolean; - IsConference: boolean; - IsDivisional: boolean; - IsConferenceChampionship: boolean; - IsBowlGame: boolean; - IsPlayoffGame: boolean; - IsNationalChampionship: boolean; - IsRivalryGame: boolean; - GameComplete: boolean; - IsSpringGame: boolean; - GameTitle: string; - NextGameID: number; - NextGameHOA: string; - HomePreviousBye: boolean; - AwayPreviousBye: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; - this.HomeTeamRank = source["HomeTeamRank"]; - this.HomeTeamID = source["HomeTeamID"]; - this.HomeTeam = source["HomeTeam"]; - this.HomeTeamCoach = source["HomeTeamCoach"]; - this.HomeTeamWin = source["HomeTeamWin"]; - this.AwayTeamRank = source["AwayTeamRank"]; - this.AwayTeamID = source["AwayTeamID"]; - this.AwayTeam = source["AwayTeam"]; - this.AwayTeamCoach = source["AwayTeamCoach"]; - this.AwayTeamWin = source["AwayTeamWin"]; - this.MVP = source["MVP"]; - this.HomeTeamScore = source["HomeTeamScore"]; - this.AwayTeamScore = source["AwayTeamScore"]; - this.TimeSlot = source["TimeSlot"]; - this.StadiumID = source["StadiumID"]; - this.Stadium = source["Stadium"]; - this.City = source["City"]; - this.State = source["State"]; - this.Region = source["Region"]; - this.LowTemp = source["LowTemp"]; - this.HighTemp = source["HighTemp"]; - this.GameTemp = source["GameTemp"]; - this.Cloud = source["Cloud"]; - this.Precip = source["Precip"]; - this.WindSpeed = source["WindSpeed"]; - this.WindCategory = source["WindCategory"]; - this.IsNeutral = source["IsNeutral"]; - this.IsDomed = source["IsDomed"]; - this.IsNightGame = source["IsNightGame"]; - this.IsConference = source["IsConference"]; - this.IsDivisional = source["IsDivisional"]; - this.IsConferenceChampionship = source["IsConferenceChampionship"]; - this.IsBowlGame = source["IsBowlGame"]; - this.IsPlayoffGame = source["IsPlayoffGame"]; - this.IsNationalChampionship = source["IsNationalChampionship"]; - this.IsRivalryGame = source["IsRivalryGame"]; - this.GameComplete = source["GameComplete"]; - this.IsSpringGame = source["IsSpringGame"]; - this.GameTitle = source["GameTitle"]; - this.NextGameID = source["NextGameID"]; - this.NextGameHOA = source["NextGameHOA"]; - this.HomePreviousBye = source["HomePreviousBye"]; - this.AwayPreviousBye = source["AwayPreviousBye"]; - } - - 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; - } -} -export class BootstrapDataTwo { - CollegeNews: NewsLog[]; - AllCollegeGames: CollegeGame[]; - TeamProfileMap: { [key: string]: RecruitingTeamProfile }; - CollegeStandings: CollegeStandings[]; - ProStandings: NFLStandings[]; - AllProGames: NFLGame[]; - CapsheetMap: { [key: uint]: NFLCapsheet }; - ProRosterMap: { [key: uint]: NFLPlayer[] }; - PracticeSquadPlayers: NFLPlayer[]; - TopNFLPassers: NFLPlayer[]; - TopNFLRushers: NFLPlayer[]; - TopNFLReceivers: NFLPlayer[]; - ProInjuryReport: NFLPlayer[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); - this.AllCollegeGames = this.convertValues( - source["AllCollegeGames"], - CollegeGame - ); - this.TeamProfileMap = source["TeamProfileMap"]; - this.CollegeStandings = this.convertValues( - source["CollegeStandings"], - CollegeStandings - ); - this.ProStandings = this.convertValues( - source["ProStandings"], - NFLStandings - ); - this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); - this.CapsheetMap = this.convertValues( - source["CapsheetMap"], - NFLCapsheet, - true - ); - this.ProRosterMap = source["ProRosterMap"]; - this.PracticeSquadPlayers = this.convertValues( - source["PracticeSquadPlayers"], - NFLPlayer - ); - this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); - this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); - this.TopNFLReceivers = this.convertValues( - source["TopNFLReceivers"], - NFLPlayer - ); - this.ProInjuryReport = this.convertValues( - source["ProInjuryReport"], - 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 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"]; - } -} -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[]; - - 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 - ); - } - - 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 BootstrapDataThree { - Recruits: Croot[]; - CollegeDepthChartMap: { [key: uint]: CollegeTeamDepthChart }; - FreeAgentOffers: FreeAgencyOffer[]; - WaiverWireOffers: NFLWaiverOffer[]; - ProNews: NewsLog[]; - NFLDepthChartMap: { [key: uint]: NFLDepthChart }; - ContractMap: { [key: uint]: NFLContract }; - ExtensionMap: { [key: uint]: NFLExtensionOffer }; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Recruits = this.convertValues(source["Recruits"], Croot); - this.CollegeDepthChartMap = this.convertValues( - source["CollegeDepthChartMap"], - CollegeTeamDepthChart, - true - ); - this.FreeAgentOffers = this.convertValues( - source["FreeAgentOffers"], - FreeAgencyOffer - ); - this.WaiverWireOffers = this.convertValues( - source["WaiverWireOffers"], - NFLWaiverOffer - ); - this.ProNews = this.convertValues(source["ProNews"], NewsLog); - this.NFLDepthChartMap = this.convertValues( - source["NFLDepthChartMap"], - NFLDepthChart, - true - ); - this.ContractMap = this.convertValues( - source["ContractMap"], - NFLContract, - true - ); - this.ExtensionMap = this.convertValues( - source["ExtensionMap"], - NFLExtensionOffer, - true - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class FlexComparisonModel { - TeamOneID: number; - TeamOne: string; - TeamOneWins: number; - TeamOneLosses: number; - TeamOneStreak: number; - TeamOneMSeason: number; - TeamOneMScore: string; - TeamTwoID: number; - TeamTwo: string; - TeamTwoWins: number; - TeamTwoLosses: number; - TeamTwoStreak: number; - TeamTwoMSeason: number; - TeamTwoMScore: string; - CurrentStreak: number; - LatestWin: string; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.TeamOneID = source["TeamOneID"]; - this.TeamOne = source["TeamOne"]; - this.TeamOneWins = source["TeamOneWins"]; - this.TeamOneLosses = source["TeamOneLosses"]; - this.TeamOneStreak = source["TeamOneStreak"]; - this.TeamOneMSeason = source["TeamOneMSeason"]; - this.TeamOneMScore = source["TeamOneMScore"]; - this.TeamTwoID = source["TeamTwoID"]; - this.TeamTwo = source["TeamTwo"]; - this.TeamTwoWins = source["TeamTwoWins"]; - this.TeamTwoLosses = source["TeamTwoLosses"]; - this.TeamTwoStreak = source["TeamTwoStreak"]; - this.TeamTwoMSeason = source["TeamTwoMSeason"]; - this.TeamTwoMScore = source["TeamTwoMScore"]; - this.CurrentStreak = source["CurrentStreak"]; - this.LatestWin = source["LatestWin"]; - } -} -export class CollegeTeamProfileData { - CareerStats: CollegePlayerSeasonStats[]; - CollegeStandings: CollegeStandings[]; - Rivalries: FlexComparisonModel[]; - PlayerMap: { [key: number]: CollegePlayer }; - - 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 - ); - } - - 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; - } -} -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; - } -} -export class TeamRequestsResponse { - CollegeRequests: TeamRequest[]; - ProRequests: NFLRequest[]; - - 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); - } - - 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; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - } -} - -export class BaseTeam { - TeamName: string; - Mascot: string; - TeamAbbr: string; - Coach: string; - City: string; - State: string; - Country: string; - StadiumID: number; - Stadium: string; - StadiumCapacity: number; - RecordAttendance: number; - Enrollment: number; - FirstPlayed: number; - ColorOne: string; - ColorTwo: string; - ColorThree: string; - DiscordID: string; - OverallGrade: string; - OffenseGrade: string; - DefenseGrade: string; - SpecialTeamsGrade: string; - PenaltyMarks: number; - - 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"]; - } -} - -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; - } -} - -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; - } -} -export class UpdateRecruitPointsDto { - RecruitPointsID: number; - RecruitID: number; - ProfileID: number; - Team: string; - WeekID: number; - AllocationID: number; - SpentPoints: number; - RewardScholarship: boolean; - RevokeScholarship: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.RecruitPointsID = source["RecruitPointsID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.Team = source["Team"]; - this.WeekID = source["WeekID"]; - this.AllocationID = source["AllocationID"]; - this.SpentPoints = source["SpentPoints"]; - this.RewardScholarship = source["RewardScholarship"]; - this.RevokeScholarship = source["RevokeScholarship"]; - } -} -export class CrootProfile { - ID: number; - SeasonID: number; - 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; - } -} -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; - } -} -export class RecruitPointAllocation { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - RecruitID: number; - TeamProfileID: number; - RecruitProfileID: number; - WeekID: number; - Points: number; - RESAffectedPoints: number; - AffinityOneApplied: boolean; - AffinityTwoApplied: boolean; - CaughtCheating: boolean; - - 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.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"]; - } -} -export class CFBRosterPageResponse { - Players: CollegePlayer[]; - Promises: CollegePromise[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.Players = this.convertValues(source["Players"], CollegePlayer); - this.Promises = this.convertValues(source["Promises"], CollegePromise); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - -export class TransferPlayerResponse { - FirstName: string; - LastName: string; - Archetype: string; - Position: string; - PositionTwo: string; - ArchetypeTwo: string; - Age: number; - Year: number; - State: string; - Country: string; - Stars: number; - Height: number; - Weight: number; - PotentialGrade: string; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - OverallGrade: string; - Personality: string; - RecruitingBias: string; - RecruitingBiasValue: string; - WorkEthic: string; - AcademicBias: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - IsRedshirting: boolean; - IsRedshirt: boolean; - PreviousTeamID: number; - PreviousTeam: string; - TransferStatus: number; - TransferLikeliness: string; - LegacyID: number; - SeasonStats: CollegePlayerSeasonStats; - Stats: CollegePlayerStats; - LeadingTeams: LeadingTeams[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Archetype = source["Archetype"]; - this.Position = source["Position"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Age = source["Age"]; - this.Year = source["Year"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.Stars = source["Stars"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.PotentialGrade = source["PotentialGrade"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.OverallGrade = source["OverallGrade"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.RecruitingBiasValue = source["RecruitingBiasValue"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.IsRedshirting = source["IsRedshirting"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.LegacyID = source["LegacyID"]; - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.LeadingTeams = this.convertValues( - source["LeadingTeams"], - LeadingTeams - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class TransferPortalProfileResponse { - ID: number; - SeasonID: number; - CollegePlayerID: number; - ProfileID: number; - PromiseID: number; - TeamAbbreviation: string; - TotalPoints: number; - CurrentWeeksPoints: number; - PreviouslySpentPoints: number; - SpendingCount: number; - RemovedFromBoard: boolean; - RolledOnPromise: boolean; - LockProfile: boolean; - IsSigned: boolean; - Recruiter: string; - CollegePlayer: TransferPlayerResponse; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.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; - } -} -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; - } -} -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; - } -} - -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; - - 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"]; - } -} -export class NFLWaiverOffDTO { - ID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - WaiverOrder: number; - IsActive: boolean; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.WaiverOrder = source["WaiverOrder"]; - this.IsActive = source["IsActive"]; - } -} - -export class CollegePollSubmission { - 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 CollegePollOfficial { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - SeasonID: number; - WeekID: number; - Week: number; - Rank1: string; - Rank1ID: number; - Rank1Votes: number; - Rank1No1Votes: number; - Rank2: string; - Rank2ID: number; - Rank2Votes: number; - Rank2No1Votes: number; - Rank3: string; - Rank3ID: number; - Rank3Votes: number; - Rank3No1Votes: number; - Rank4: string; - Rank4ID: number; - Rank4Votes: number; - Rank4No1Votes: number; - Rank5: string; - Rank5ID: number; - Rank5Votes: number; - Rank5No1Votes: number; - Rank6: string; - Rank6ID: number; - Rank6Votes: number; - Rank6No1Votes: number; - Rank7: string; - Rank7ID: number; - Rank7Votes: number; - Rank7No1Votes: number; - Rank8: string; - Rank8ID: number; - Rank8Votes: number; - Rank8No1Votes: number; - Rank9: string; - Rank9ID: number; - Rank9Votes: number; - Rank9No1Votes: number; - Rank10: string; - Rank10ID: number; - Rank10Votes: number; - Rank10No1Votes: number; - Rank11: string; - Rank11ID: number; - Rank11Votes: number; - Rank11No1Votes: number; - Rank12: string; - Rank12ID: number; - Rank12Votes: number; - Rank12No1Votes: number; - Rank13: string; - Rank13ID: number; - Rank13Votes: number; - Rank13No1Votes: number; - Rank14: string; - Rank14ID: number; - Rank14Votes: number; - Rank14No1Votes: number; - Rank15: string; - Rank15ID: number; - Rank15Votes: number; - Rank15No1Votes: number; - Rank16: string; - Rank16ID: number; - Rank16Votes: number; - Rank16No1Votes: number; - Rank17: string; - Rank17ID: number; - Rank17Votes: number; - Rank17No1Votes: number; - Rank18: string; - Rank18ID: number; - Rank18Votes: number; - Rank18No1Votes: number; - Rank19: string; - Rank19ID: number; - Rank19Votes: number; - Rank19No1Votes: number; - Rank20: string; - Rank20ID: number; - Rank20Votes: number; - Rank20No1Votes: number; - Rank21: string; - Rank21ID: number; - Rank21Votes: number; - Rank21No1Votes: number; - Rank22: string; - Rank22ID: number; - Rank22Votes: number; - Rank22No1Votes: number; - Rank23: string; - Rank23ID: number; - Rank23Votes: number; - Rank23No1Votes: number; - Rank24: string; - Rank24ID: number; - Rank24Votes: number; - Rank24No1Votes: number; - Rank25: string; - Rank25ID: number; - Rank25Votes: number; - Rank25No1Votes: number; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Rank1 = source["Rank1"]; - this.Rank1ID = source["Rank1ID"]; - this.Rank1Votes = source["Rank1Votes"]; - this.Rank1No1Votes = source["Rank1No1Votes"]; - this.Rank2 = source["Rank2"]; - this.Rank2ID = source["Rank2ID"]; - this.Rank2Votes = source["Rank2Votes"]; - this.Rank2No1Votes = source["Rank2No1Votes"]; - this.Rank3 = source["Rank3"]; - this.Rank3ID = source["Rank3ID"]; - this.Rank3Votes = source["Rank3Votes"]; - this.Rank3No1Votes = source["Rank3No1Votes"]; - this.Rank4 = source["Rank4"]; - this.Rank4ID = source["Rank4ID"]; - this.Rank4Votes = source["Rank4Votes"]; - this.Rank4No1Votes = source["Rank4No1Votes"]; - this.Rank5 = source["Rank5"]; - this.Rank5ID = source["Rank5ID"]; - this.Rank5Votes = source["Rank5Votes"]; - this.Rank5No1Votes = source["Rank5No1Votes"]; - this.Rank6 = source["Rank6"]; - this.Rank6ID = source["Rank6ID"]; - this.Rank6Votes = source["Rank6Votes"]; - this.Rank6No1Votes = source["Rank6No1Votes"]; - this.Rank7 = source["Rank7"]; - this.Rank7ID = source["Rank7ID"]; - this.Rank7Votes = source["Rank7Votes"]; - this.Rank7No1Votes = source["Rank7No1Votes"]; - this.Rank8 = source["Rank8"]; - this.Rank8ID = source["Rank8ID"]; - this.Rank8Votes = source["Rank8Votes"]; - this.Rank8No1Votes = source["Rank8No1Votes"]; - this.Rank9 = source["Rank9"]; - this.Rank9ID = source["Rank9ID"]; - this.Rank9Votes = source["Rank9Votes"]; - this.Rank9No1Votes = source["Rank9No1Votes"]; - this.Rank10 = source["Rank10"]; - this.Rank10ID = source["Rank10ID"]; - this.Rank10Votes = source["Rank10Votes"]; - this.Rank10No1Votes = source["Rank10No1Votes"]; - this.Rank11 = source["Rank11"]; - this.Rank11ID = source["Rank11ID"]; - this.Rank11Votes = source["Rank11Votes"]; - this.Rank11No1Votes = source["Rank11No1Votes"]; - this.Rank12 = source["Rank12"]; - this.Rank12ID = source["Rank12ID"]; - this.Rank12Votes = source["Rank12Votes"]; - this.Rank12No1Votes = source["Rank12No1Votes"]; - this.Rank13 = source["Rank13"]; - this.Rank13ID = source["Rank13ID"]; - this.Rank13Votes = source["Rank13Votes"]; - this.Rank13No1Votes = source["Rank13No1Votes"]; - this.Rank14 = source["Rank14"]; - this.Rank14ID = source["Rank14ID"]; - this.Rank14Votes = source["Rank14Votes"]; - this.Rank14No1Votes = source["Rank14No1Votes"]; - this.Rank15 = source["Rank15"]; - this.Rank15ID = source["Rank15ID"]; - this.Rank15Votes = source["Rank15Votes"]; - this.Rank15No1Votes = source["Rank15No1Votes"]; - this.Rank16 = source["Rank16"]; - this.Rank16ID = source["Rank16ID"]; - this.Rank16Votes = source["Rank16Votes"]; - this.Rank16No1Votes = source["Rank16No1Votes"]; - this.Rank17 = source["Rank17"]; - this.Rank17ID = source["Rank17ID"]; - this.Rank17Votes = source["Rank17Votes"]; - this.Rank17No1Votes = source["Rank17No1Votes"]; - this.Rank18 = source["Rank18"]; - this.Rank18ID = source["Rank18ID"]; - this.Rank18Votes = source["Rank18Votes"]; - this.Rank18No1Votes = source["Rank18No1Votes"]; - this.Rank19 = source["Rank19"]; - this.Rank19ID = source["Rank19ID"]; - this.Rank19Votes = source["Rank19Votes"]; - this.Rank19No1Votes = source["Rank19No1Votes"]; - this.Rank20 = source["Rank20"]; - this.Rank20ID = source["Rank20ID"]; - this.Rank20Votes = source["Rank20Votes"]; - this.Rank20No1Votes = source["Rank20No1Votes"]; - this.Rank21 = source["Rank21"]; - this.Rank21ID = source["Rank21ID"]; - this.Rank21Votes = source["Rank21Votes"]; - this.Rank21No1Votes = source["Rank21No1Votes"]; - this.Rank22 = source["Rank22"]; - this.Rank22ID = source["Rank22ID"]; - this.Rank22Votes = source["Rank22Votes"]; - this.Rank22No1Votes = source["Rank22No1Votes"]; - this.Rank23 = source["Rank23"]; - this.Rank23ID = source["Rank23ID"]; - this.Rank23Votes = source["Rank23Votes"]; - this.Rank23No1Votes = source["Rank23No1Votes"]; - this.Rank24 = source["Rank24"]; - this.Rank24ID = source["Rank24ID"]; - this.Rank24Votes = source["Rank24Votes"]; - this.Rank24No1Votes = source["Rank24No1Votes"]; - this.Rank25 = source["Rank25"]; - this.Rank25ID = source["Rank25ID"]; - this.Rank25Votes = source["Rank25Votes"]; - this.Rank25No1Votes = source["Rank25No1Votes"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - } -} - -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; - 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.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 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; - } -} -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; - } -} -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; - } -} - -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"]; - } -} -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; - } -} -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"]; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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 HistoricCollegePlayer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PreviousTeamID: number; - PreviousTeam: string; - Height: number; - Weight: number; - Age: number; - Stars: number; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - Progression: number; - Discipline: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - IsInjured: boolean; - InjuryName: string; - InjuryType: string; - WeeksOfRecovery: number; - InjuryReserve: boolean; - PrimeAge: number; - Clutch: number; - Shotgun: number; - PositionTwo: string; - ArchetypeTwo: string; - RelativeID: number; - RelativeType: number; - Notes: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - HighSchool: string; - City: string; - State: string; - Year: number; - IsRedshirt: boolean; - IsRedshirting: boolean; - HasGraduated: boolean; - TransferStatus: number; - TransferLikeliness: string; - Stats: CollegePlayerStats[]; - SeasonStats: CollegePlayerSeasonStats; - HasProgressed: boolean; - WillDeclare: boolean; - LegacyID: number; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues( - source["SeasonStats"], - CollegePlayerSeasonStats - ); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 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; - 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; - 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.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.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 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; - } -} -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; - } -} -export class NFLTradeOptionObj { - ID: number; - TradeProposalID: number; - NFLTeamID: number; - NFLPlayerID: number; - NFLDraftPickID: number; - OptionType: string; - SalaryPercentage: number; - Player: NFLPlayer; - Draftpick: NFLDraftPick; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TradeProposalID = source["TradeProposalID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.NFLDraftPickID = source["NFLDraftPickID"]; - this.OptionType = source["OptionType"]; - this.SalaryPercentage = source["SalaryPercentage"]; - this.Player = this.convertValues(source["Player"], NFLPlayer); - this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradeProposalDTO { - ID: number; - NFLTeamID: number; - NFLTeam: string; - RecepientTeamID: number; - RecepientTeam: string; - IsTradeAccepted: boolean; - IsTradeRejected: boolean; - NFLTeamTradeOptions: NFLTradeOptionObj[]; - RecepientTeamTradeOptions: NFLTradeOptionObj[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLTeam = source["NFLTeam"]; - this.RecepientTeamID = source["RecepientTeamID"]; - this.RecepientTeam = source["RecepientTeam"]; - this.IsTradeAccepted = source["IsTradeAccepted"]; - this.IsTradeRejected = source["IsTradeRejected"]; - this.NFLTeamTradeOptions = this.convertValues( - source["NFLTeamTradeOptions"], - NFLTradeOptionObj - ); - this.RecepientTeamTradeOptions = this.convertValues( - source["RecepientTeamTradeOptions"], - NFLTradeOptionObj - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - -export class NFLTeamProposals { - SentTradeProposals: NFLTradeProposalDTO[]; - ReceivedTradeProposals: NFLTradeProposalDTO[]; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.SentTradeProposals = this.convertValues( - source["SentTradeProposals"], - NFLTradeProposalDTO - ); - this.ReceivedTradeProposals = this.convertValues( - source["ReceivedTradeProposals"], - NFLTradeProposalDTO - ); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferences { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - Quarterbacks: boolean; - QuarterbackType: string; - Runningbacks: boolean; - RunningbackType: string; - Fullbacks: boolean; - FullbackType: string; - WideReceivers: boolean; - WideReceiverType: string; - TightEnds: boolean; - TightEndType: string; - OffensiveTackles: boolean; - OffensiveGuards: boolean; - Centers: boolean; - OffensiveTackleType: string; - OffensiveGuardType: string; - CenterType: string; - DefensiveTackles: boolean; - DefensiveTackleType: string; - DefensiveEnds: boolean; - DefensiveEndType: string; - OutsideLinebackers: boolean; - OutsideLinebackerType: string; - InsideLinebackers: boolean; - InsideLinebackerType: string; - Cornerbacks: boolean; - CornerbackType: string; - FreeSafeties: boolean; - FreeSafetyType: string; - StrongSafeties: boolean; - StrongSafetyType: string; - Kickers: boolean; - KickerType: string; - Punters: boolean; - PunterType: string; - DraftPicks: boolean; - DraftPickType: string; - - constructor(source: any = {}) { - if ("string" === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.NFLTeamID = source["NFLTeamID"]; - this.Quarterbacks = source["Quarterbacks"]; - this.QuarterbackType = source["QuarterbackType"]; - this.Runningbacks = source["Runningbacks"]; - this.RunningbackType = source["RunningbackType"]; - this.Fullbacks = source["Fullbacks"]; - this.FullbackType = source["FullbackType"]; - this.WideReceivers = source["WideReceivers"]; - this.WideReceiverType = source["WideReceiverType"]; - this.TightEnds = source["TightEnds"]; - this.TightEndType = source["TightEndType"]; - this.OffensiveTackles = source["OffensiveTackles"]; - this.OffensiveGuards = source["OffensiveGuards"]; - this.Centers = source["Centers"]; - this.OffensiveTackleType = source["OffensiveTackleType"]; - this.OffensiveGuardType = source["OffensiveGuardType"]; - this.CenterType = source["CenterType"]; - this.DefensiveTackles = source["DefensiveTackles"]; - this.DefensiveTackleType = source["DefensiveTackleType"]; - this.DefensiveEnds = source["DefensiveEnds"]; - this.DefensiveEndType = source["DefensiveEndType"]; - this.OutsideLinebackers = source["OutsideLinebackers"]; - this.OutsideLinebackerType = source["OutsideLinebackerType"]; - this.InsideLinebackers = source["InsideLinebackers"]; - this.InsideLinebackerType = source["InsideLinebackerType"]; - this.Cornerbacks = source["Cornerbacks"]; - this.CornerbackType = source["CornerbackType"]; - this.FreeSafeties = source["FreeSafeties"]; - this.FreeSafetyType = source["FreeSafetyType"]; - this.StrongSafeties = source["StrongSafeties"]; - this.StrongSafetyType = source["StrongSafetyType"]; - this.Kickers = source["Kickers"]; - this.KickerType = source["KickerType"]; - this.Punters = source["Punters"]; - this.PunterType = source["PunterType"]; - this.DraftPicks = source["DraftPicks"]; - this.DraftPickType = source["DraftPickType"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map((elem) => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferencesDTO { - NFLTeamID: number; - Quarterbacks: boolean; - 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; - } -} - -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[]; - - 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"]; - } -} -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"]; - } -} -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"]; - } -} -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; - } -} - -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"]; - } -} -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; - } -} - -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; - } -} - -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"]; - } -} -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; - 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.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; - } -} diff --git a/footballModels.ts-2025-06-11T08_18_18.97.backup b/footballModels.ts-2025-06-11T08_18_18.97.backup deleted file mode 100644 index f914e13..0000000 --- a/footballModels.ts-2025-06-11T08_18_18.97.backup +++ /dev/null @@ -1,8754 +0,0 @@ -/* Do not change, this code is generated from Golang structs */ - - -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"]; - } -} -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; - } -} -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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - Rejections: number; - IsAccepted: boolean; - 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.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.Rejections = source["Rejections"]; - this.IsAccepted = source["IsAccepted"]; - 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 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"]; - } -} -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; - 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.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.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 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; - } -} -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; - } -} -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; - 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; - 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.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.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; - } -} -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; - } -} -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; - } -} -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; - } -} -export class NFLDraftPick { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - SeasonID: number; - Season: number; - DrafteeID: number; - DraftRound: number; - DraftNumber: 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.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; - } -} -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; - } -} -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; - 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.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 Notification { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - TeamID: number; - League: string; - NotificationType: string; - Message: string; - Subject: string; - IsRead: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.TeamID = source["TeamID"]; - this.League = source["League"]; - this.NotificationType = source["NotificationType"]; - this.Message = source["Message"]; - this.Subject = source["Subject"]; - this.IsRead = source["IsRead"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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.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 CollegePromise { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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"], Time); - 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 NullInt64 { - Int64: number; - Valid: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Int64 = source["Int64"]; - this.Valid = source["Valid"]; - } -} -export class TransferPortalProfile { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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; - CollegePlayer: CollegePlayer; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.SeasonID = source["SeasonID"]; - this.CollegePlayerID = source["CollegePlayerID"]; - this.ProfileID = source["ProfileID"]; - this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); - this.TeamAbbreviation = source["TeamAbbreviation"]; - this.TotalPoints = source["TotalPoints"]; - this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; - this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; - this.SpendingCount = source["SpendingCount"]; - this.RemovedFromBoard = source["RemovedFromBoard"]; - this.RolledOnPromise = source["RolledOnPromise"]; - this.LockProfile = source["LockProfile"]; - this.IsSigned = source["IsSigned"]; - this.Recruiter = source["Recruiter"]; - this.CollegePlayer = this.convertValues(source["CollegePlayer"], CollegePlayer); - 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 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; - } -} -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; - } -} -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; - 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; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 CollegeDepthChartPosition { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - 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"], 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.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: Time; - 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"], Time); - 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: 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; - PassLong: number; - PassScreen: number; - PassPAShort: number; - PassPALong: 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.PassLong = source["PassLong"]; - this.PassScreen = source["PassScreen"]; - this.PassPAShort = source["PassPAShort"]; - this.PassPALong = source["PassPALong"]; - 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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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; - } -} -export class Time { - - - 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; - 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.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 BootstrapData { - CollegeTeam: CollegeTeam; - AllCollegeTeams: CollegeTeam[]; - CollegeRosterMap: {[key: uint]: CollegePlayer[]}; - TopCFBPassers: CollegePlayer[]; - TopCFBRushers: CollegePlayer[]; - TopCFBReceivers: CollegePlayer[]; - PortalPlayers: CollegePlayer[]; - CollegeInjuryReport: CollegePlayer[]; - CollegeNotifications: Notification[]; - CollegeGameplan: CollegeGameplan; - CollegeDepthChart: CollegeTeamDepthChart; - ProTeam: NFLTeam; - AllProTeams: NFLTeam[]; - ProNotifications: Notification[]; - NFLGameplan: NFLGameplan; - NFLDepthChart: NFLDepthChart; - FaceData: {[key: uint]: FaceDataResponse}; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); - this.AllCollegeTeams = this.convertValues(source["AllCollegeTeams"], CollegeTeam); - this.CollegeRosterMap = source["CollegeRosterMap"]; - this.TopCFBPassers = this.convertValues(source["TopCFBPassers"], CollegePlayer); - this.TopCFBRushers = this.convertValues(source["TopCFBRushers"], CollegePlayer); - this.TopCFBReceivers = this.convertValues(source["TopCFBReceivers"], CollegePlayer); - this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); - this.CollegeInjuryReport = this.convertValues(source["CollegeInjuryReport"], CollegePlayer); - this.CollegeNotifications = this.convertValues(source["CollegeNotifications"], Notification); - this.CollegeGameplan = this.convertValues(source["CollegeGameplan"], CollegeGameplan); - this.CollegeDepthChart = this.convertValues(source["CollegeDepthChart"], CollegeTeamDepthChart); - this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); - this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); - this.ProNotifications = this.convertValues(source["ProNotifications"], Notification); - this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); - this.NFLDepthChart = this.convertValues(source["NFLDepthChart"], NFLDepthChart); - this.FaceData = this.convertValues(source["FaceData"], FaceDataResponse, true); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - 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.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 CollegeGame { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - WeekID: number; - Week: number; - SeasonID: number; - HomeTeamRank: number; - HomeTeamID: number; - HomeTeam: string; - HomeTeamCoach: string; - HomeTeamWin: boolean; - AwayTeamRank: number; - AwayTeamID: number; - AwayTeam: string; - AwayTeamCoach: string; - AwayTeamWin: boolean; - MVP: string; - HomeTeamScore: number; - AwayTeamScore: number; - TimeSlot: string; - StadiumID: number; - Stadium: string; - City: string; - State: string; - Region: string; - LowTemp: number; - HighTemp: number; - GameTemp: number; - Cloud: string; - Precip: string; - WindSpeed: number; - WindCategory: string; - IsNeutral: boolean; - IsDomed: boolean; - IsNightGame: boolean; - IsConference: boolean; - IsDivisional: boolean; - IsConferenceChampionship: boolean; - IsBowlGame: boolean; - IsPlayoffGame: boolean; - IsNationalChampionship: boolean; - IsRivalryGame: boolean; - GameComplete: boolean; - IsSpringGame: boolean; - GameTitle: string; - NextGameID: number; - NextGameHOA: string; - HomePreviousBye: boolean; - AwayPreviousBye: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.SeasonID = source["SeasonID"]; - this.HomeTeamRank = source["HomeTeamRank"]; - this.HomeTeamID = source["HomeTeamID"]; - this.HomeTeam = source["HomeTeam"]; - this.HomeTeamCoach = source["HomeTeamCoach"]; - this.HomeTeamWin = source["HomeTeamWin"]; - this.AwayTeamRank = source["AwayTeamRank"]; - this.AwayTeamID = source["AwayTeamID"]; - this.AwayTeam = source["AwayTeam"]; - this.AwayTeamCoach = source["AwayTeamCoach"]; - this.AwayTeamWin = source["AwayTeamWin"]; - this.MVP = source["MVP"]; - this.HomeTeamScore = source["HomeTeamScore"]; - this.AwayTeamScore = source["AwayTeamScore"]; - this.TimeSlot = source["TimeSlot"]; - this.StadiumID = source["StadiumID"]; - this.Stadium = source["Stadium"]; - this.City = source["City"]; - this.State = source["State"]; - this.Region = source["Region"]; - this.LowTemp = source["LowTemp"]; - this.HighTemp = source["HighTemp"]; - this.GameTemp = source["GameTemp"]; - this.Cloud = source["Cloud"]; - this.Precip = source["Precip"]; - this.WindSpeed = source["WindSpeed"]; - this.WindCategory = source["WindCategory"]; - this.IsNeutral = source["IsNeutral"]; - this.IsDomed = source["IsDomed"]; - this.IsNightGame = source["IsNightGame"]; - this.IsConference = source["IsConference"]; - this.IsDivisional = source["IsDivisional"]; - this.IsConferenceChampionship = source["IsConferenceChampionship"]; - this.IsBowlGame = source["IsBowlGame"]; - this.IsPlayoffGame = source["IsPlayoffGame"]; - this.IsNationalChampionship = source["IsNationalChampionship"]; - this.IsRivalryGame = source["IsRivalryGame"]; - this.GameComplete = source["GameComplete"]; - this.IsSpringGame = source["IsSpringGame"]; - this.GameTitle = source["GameTitle"]; - this.NextGameID = source["NextGameID"]; - this.NextGameHOA = source["NextGameHOA"]; - this.HomePreviousBye = source["HomePreviousBye"]; - this.AwayPreviousBye = source["AwayPreviousBye"]; - } - - 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; - } -} -export class BootstrapDataTwo { - CollegeNews: NewsLog[]; - AllCollegeGames: CollegeGame[]; - TeamProfileMap: {[key: string]: RecruitingTeamProfile}; - CollegeStandings: CollegeStandings[]; - ProStandings: NFLStandings[]; - AllProGames: NFLGame[]; - CapsheetMap: {[key: uint]: NFLCapsheet}; - ProRosterMap: {[key: uint]: NFLPlayer[]}; - PracticeSquadPlayers: NFLPlayer[]; - TopNFLPassers: NFLPlayer[]; - TopNFLRushers: NFLPlayer[]; - TopNFLReceivers: NFLPlayer[]; - ProInjuryReport: NFLPlayer[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); - this.AllCollegeGames = this.convertValues(source["AllCollegeGames"], CollegeGame); - this.TeamProfileMap = source["TeamProfileMap"]; - this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); - this.ProStandings = this.convertValues(source["ProStandings"], NFLStandings); - this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); - this.CapsheetMap = this.convertValues(source["CapsheetMap"], NFLCapsheet, true); - this.ProRosterMap = source["ProRosterMap"]; - this.PracticeSquadPlayers = this.convertValues(source["PracticeSquadPlayers"], NFLPlayer); - this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); - this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); - this.TopNFLReceivers = this.convertValues(source["TopNFLReceivers"], NFLPlayer); - this.ProInjuryReport = this.convertValues(source["ProInjuryReport"], 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 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"]; - } -} -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[]; - - 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); - } - - 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 BootstrapDataThree { - Recruits: Croot[]; - CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; - FreeAgentOffers: FreeAgencyOffer[]; - WaiverWireOffers: NFLWaiverOffer[]; - ProNews: NewsLog[]; - NFLDepthChartMap: {[key: uint]: NFLDepthChart}; - ContractMap: {[key: uint]: NFLContract}; - ExtensionMap: {[key: uint]: NFLExtensionOffer}; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Recruits = this.convertValues(source["Recruits"], Croot); - this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); - this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); - this.WaiverWireOffers = this.convertValues(source["WaiverWireOffers"], NFLWaiverOffer); - this.ProNews = this.convertValues(source["ProNews"], NewsLog); - this.NFLDepthChartMap = this.convertValues(source["NFLDepthChartMap"], NFLDepthChart, true); - this.ContractMap = this.convertValues(source["ContractMap"], NFLContract, true); - this.ExtensionMap = this.convertValues(source["ExtensionMap"], NFLExtensionOffer, true); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class FlexComparisonModel { - TeamOneID: number; - TeamOne: string; - TeamOneWins: number; - TeamOneLosses: number; - TeamOneStreak: number; - TeamOneMSeason: number; - TeamOneMScore: string; - TeamTwoID: number; - TeamTwo: string; - TeamTwoWins: number; - TeamTwoLosses: number; - TeamTwoStreak: number; - TeamTwoMSeason: number; - TeamTwoMScore: string; - CurrentStreak: number; - LatestWin: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.TeamOneID = source["TeamOneID"]; - this.TeamOne = source["TeamOne"]; - this.TeamOneWins = source["TeamOneWins"]; - this.TeamOneLosses = source["TeamOneLosses"]; - this.TeamOneStreak = source["TeamOneStreak"]; - this.TeamOneMSeason = source["TeamOneMSeason"]; - this.TeamOneMScore = source["TeamOneMScore"]; - this.TeamTwoID = source["TeamTwoID"]; - this.TeamTwo = source["TeamTwo"]; - this.TeamTwoWins = source["TeamTwoWins"]; - this.TeamTwoLosses = source["TeamTwoLosses"]; - this.TeamTwoStreak = source["TeamTwoStreak"]; - this.TeamTwoMSeason = source["TeamTwoMSeason"]; - this.TeamTwoMScore = source["TeamTwoMScore"]; - this.CurrentStreak = source["CurrentStreak"]; - this.LatestWin = source["LatestWin"]; - } -} -export class CollegeTeamProfileData { - CareerStats: CollegePlayerSeasonStats[]; - CollegeStandings: CollegeStandings[]; - Rivalries: FlexComparisonModel[]; - PlayerMap: {[key: uint]: CollegePlayer}; - CollegeGames: CollegeGame[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.CareerStats = this.convertValues(source["CareerStats"], CollegePlayerSeasonStats); - this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); - this.Rivalries = this.convertValues(source["Rivalries"], FlexComparisonModel); - this.PlayerMap = this.convertValues(source["PlayerMap"], CollegePlayer, true); - this.CollegeGames = this.convertValues(source["CollegeGames"], CollegeGame); - } - - 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; - } -} -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; - } -} -export class TeamRequestsResponse { - CollegeRequests: TeamRequest[]; - ProRequests: NFLRequest[]; - - 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); - } - - 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; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - } -} - - -export class BaseTeam { - TeamName: string; - Mascot: string; - TeamAbbr: string; - Coach: string; - City: string; - State: string; - Country: string; - StadiumID: number; - Stadium: string; - StadiumCapacity: number; - RecordAttendance: number; - Enrollment: number; - FirstPlayed: number; - ColorOne: string; - ColorTwo: string; - ColorThree: string; - DiscordID: string; - OverallGrade: string; - OffenseGrade: string; - DefenseGrade: string; - SpecialTeamsGrade: string; - PenaltyMarks: number; - - 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"]; - } -} - - -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; - } -} - - - - - - - -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; - } -} -export class UpdateRecruitPointsDto { - RecruitPointsID: number; - RecruitID: number; - ProfileID: number; - Team: string; - WeekID: number; - AllocationID: number; - SpentPoints: number; - RewardScholarship: boolean; - RevokeScholarship: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.RecruitPointsID = source["RecruitPointsID"]; - this.RecruitID = source["RecruitID"]; - this.ProfileID = source["ProfileID"]; - this.Team = source["Team"]; - this.WeekID = source["WeekID"]; - this.AllocationID = source["AllocationID"]; - this.SpentPoints = source["SpentPoints"]; - this.RewardScholarship = source["RewardScholarship"]; - this.RevokeScholarship = source["RevokeScholarship"]; - } -} -export class CrootProfile { - ID: number; - SeasonID: number; - 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; - } -} -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; - } -} -export class RecruitPointAllocation { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - RecruitID: number; - TeamProfileID: number; - RecruitProfileID: number; - WeekID: number; - Points: number; - RESAffectedPoints: number; - AffinityOneApplied: boolean; - AffinityTwoApplied: boolean; - CaughtCheating: boolean; - - 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.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"]; - } -} -export class CFBRosterPageResponse { - Players: CollegePlayer[]; - Promises: CollegePromise[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.Players = this.convertValues(source["Players"], CollegePlayer); - this.Promises = this.convertValues(source["Promises"], CollegePromise); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - - -export class TransferPlayerResponse { - FirstName: string; - LastName: string; - Archetype: string; - Position: string; - PositionTwo: string; - ArchetypeTwo: string; - Age: number; - Year: number; - State: string; - Country: string; - Stars: number; - Height: number; - Weight: number; - PotentialGrade: string; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - OverallGrade: string; - Personality: string; - RecruitingBias: string; - RecruitingBiasValue: string; - WorkEthic: string; - AcademicBias: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - IsRedshirting: boolean; - IsRedshirt: boolean; - PreviousTeamID: number; - PreviousTeam: string; - TransferStatus: number; - TransferLikeliness: string; - LegacyID: number; - SeasonStats: CollegePlayerSeasonStats; - Stats: CollegePlayerStats; - LeadingTeams: LeadingTeams[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Archetype = source["Archetype"]; - this.Position = source["Position"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.Age = source["Age"]; - this.Year = source["Year"]; - this.State = source["State"]; - this.Country = source["Country"]; - this.Stars = source["Stars"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.PotentialGrade = source["PotentialGrade"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.OverallGrade = source["OverallGrade"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.RecruitingBiasValue = source["RecruitingBiasValue"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.IsRedshirting = source["IsRedshirting"]; - this.IsRedshirt = source["IsRedshirt"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.LegacyID = source["LegacyID"]; - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class TransferPortalProfileResponse { - ID: number; - SeasonID: number; - CollegePlayerID: number; - ProfileID: number; - PromiseID: number; - TeamAbbreviation: string; - TotalPoints: number; - CurrentWeeksPoints: number; - PreviouslySpentPoints: number; - SpendingCount: number; - RemovedFromBoard: boolean; - RolledOnPromise: boolean; - LockProfile: boolean; - IsSigned: boolean; - Recruiter: string; - CollegePlayer: TransferPlayerResponse; - Promise: CollegePromise; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.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; - } -} -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; - } -} -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; - } -} - - - - -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; - - 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"]; - } -} -export class NFLWaiverOffDTO { - ID: number; - NFLPlayerID: number; - TeamID: number; - Team: string; - WaiverOrder: number; - IsActive: boolean; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.TeamID = source["TeamID"]; - this.Team = source["Team"]; - this.WaiverOrder = source["WaiverOrder"]; - this.IsActive = source["IsActive"]; - } -} - -export class CollegePollSubmission { - 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 CollegePollOfficial { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: DeletedAt; - SeasonID: number; - WeekID: number; - Week: number; - Rank1: string; - Rank1ID: number; - Rank1Votes: number; - Rank1No1Votes: number; - Rank2: string; - Rank2ID: number; - Rank2Votes: number; - Rank2No1Votes: number; - Rank3: string; - Rank3ID: number; - Rank3Votes: number; - Rank3No1Votes: number; - Rank4: string; - Rank4ID: number; - Rank4Votes: number; - Rank4No1Votes: number; - Rank5: string; - Rank5ID: number; - Rank5Votes: number; - Rank5No1Votes: number; - Rank6: string; - Rank6ID: number; - Rank6Votes: number; - Rank6No1Votes: number; - Rank7: string; - Rank7ID: number; - Rank7Votes: number; - Rank7No1Votes: number; - Rank8: string; - Rank8ID: number; - Rank8Votes: number; - Rank8No1Votes: number; - Rank9: string; - Rank9ID: number; - Rank9Votes: number; - Rank9No1Votes: number; - Rank10: string; - Rank10ID: number; - Rank10Votes: number; - Rank10No1Votes: number; - Rank11: string; - Rank11ID: number; - Rank11Votes: number; - Rank11No1Votes: number; - Rank12: string; - Rank12ID: number; - Rank12Votes: number; - Rank12No1Votes: number; - Rank13: string; - Rank13ID: number; - Rank13Votes: number; - Rank13No1Votes: number; - Rank14: string; - Rank14ID: number; - Rank14Votes: number; - Rank14No1Votes: number; - Rank15: string; - Rank15ID: number; - Rank15Votes: number; - Rank15No1Votes: number; - Rank16: string; - Rank16ID: number; - Rank16Votes: number; - Rank16No1Votes: number; - Rank17: string; - Rank17ID: number; - Rank17Votes: number; - Rank17No1Votes: number; - Rank18: string; - Rank18ID: number; - Rank18Votes: number; - Rank18No1Votes: number; - Rank19: string; - Rank19ID: number; - Rank19Votes: number; - Rank19No1Votes: number; - Rank20: string; - Rank20ID: number; - Rank20Votes: number; - Rank20No1Votes: number; - Rank21: string; - Rank21ID: number; - Rank21Votes: number; - Rank21No1Votes: number; - Rank22: string; - Rank22ID: number; - Rank22Votes: number; - Rank22No1Votes: number; - Rank23: string; - Rank23ID: number; - Rank23Votes: number; - Rank23No1Votes: number; - Rank24: string; - Rank24ID: number; - Rank24Votes: number; - Rank24No1Votes: number; - Rank25: string; - Rank25ID: number; - Rank25Votes: number; - Rank25No1Votes: number; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); - this.SeasonID = source["SeasonID"]; - this.WeekID = source["WeekID"]; - this.Week = source["Week"]; - this.Rank1 = source["Rank1"]; - this.Rank1ID = source["Rank1ID"]; - this.Rank1Votes = source["Rank1Votes"]; - this.Rank1No1Votes = source["Rank1No1Votes"]; - this.Rank2 = source["Rank2"]; - this.Rank2ID = source["Rank2ID"]; - this.Rank2Votes = source["Rank2Votes"]; - this.Rank2No1Votes = source["Rank2No1Votes"]; - this.Rank3 = source["Rank3"]; - this.Rank3ID = source["Rank3ID"]; - this.Rank3Votes = source["Rank3Votes"]; - this.Rank3No1Votes = source["Rank3No1Votes"]; - this.Rank4 = source["Rank4"]; - this.Rank4ID = source["Rank4ID"]; - this.Rank4Votes = source["Rank4Votes"]; - this.Rank4No1Votes = source["Rank4No1Votes"]; - this.Rank5 = source["Rank5"]; - this.Rank5ID = source["Rank5ID"]; - this.Rank5Votes = source["Rank5Votes"]; - this.Rank5No1Votes = source["Rank5No1Votes"]; - this.Rank6 = source["Rank6"]; - this.Rank6ID = source["Rank6ID"]; - this.Rank6Votes = source["Rank6Votes"]; - this.Rank6No1Votes = source["Rank6No1Votes"]; - this.Rank7 = source["Rank7"]; - this.Rank7ID = source["Rank7ID"]; - this.Rank7Votes = source["Rank7Votes"]; - this.Rank7No1Votes = source["Rank7No1Votes"]; - this.Rank8 = source["Rank8"]; - this.Rank8ID = source["Rank8ID"]; - this.Rank8Votes = source["Rank8Votes"]; - this.Rank8No1Votes = source["Rank8No1Votes"]; - this.Rank9 = source["Rank9"]; - this.Rank9ID = source["Rank9ID"]; - this.Rank9Votes = source["Rank9Votes"]; - this.Rank9No1Votes = source["Rank9No1Votes"]; - this.Rank10 = source["Rank10"]; - this.Rank10ID = source["Rank10ID"]; - this.Rank10Votes = source["Rank10Votes"]; - this.Rank10No1Votes = source["Rank10No1Votes"]; - this.Rank11 = source["Rank11"]; - this.Rank11ID = source["Rank11ID"]; - this.Rank11Votes = source["Rank11Votes"]; - this.Rank11No1Votes = source["Rank11No1Votes"]; - this.Rank12 = source["Rank12"]; - this.Rank12ID = source["Rank12ID"]; - this.Rank12Votes = source["Rank12Votes"]; - this.Rank12No1Votes = source["Rank12No1Votes"]; - this.Rank13 = source["Rank13"]; - this.Rank13ID = source["Rank13ID"]; - this.Rank13Votes = source["Rank13Votes"]; - this.Rank13No1Votes = source["Rank13No1Votes"]; - this.Rank14 = source["Rank14"]; - this.Rank14ID = source["Rank14ID"]; - this.Rank14Votes = source["Rank14Votes"]; - this.Rank14No1Votes = source["Rank14No1Votes"]; - this.Rank15 = source["Rank15"]; - this.Rank15ID = source["Rank15ID"]; - this.Rank15Votes = source["Rank15Votes"]; - this.Rank15No1Votes = source["Rank15No1Votes"]; - this.Rank16 = source["Rank16"]; - this.Rank16ID = source["Rank16ID"]; - this.Rank16Votes = source["Rank16Votes"]; - this.Rank16No1Votes = source["Rank16No1Votes"]; - this.Rank17 = source["Rank17"]; - this.Rank17ID = source["Rank17ID"]; - this.Rank17Votes = source["Rank17Votes"]; - this.Rank17No1Votes = source["Rank17No1Votes"]; - this.Rank18 = source["Rank18"]; - this.Rank18ID = source["Rank18ID"]; - this.Rank18Votes = source["Rank18Votes"]; - this.Rank18No1Votes = source["Rank18No1Votes"]; - this.Rank19 = source["Rank19"]; - this.Rank19ID = source["Rank19ID"]; - this.Rank19Votes = source["Rank19Votes"]; - this.Rank19No1Votes = source["Rank19No1Votes"]; - this.Rank20 = source["Rank20"]; - this.Rank20ID = source["Rank20ID"]; - this.Rank20Votes = source["Rank20Votes"]; - this.Rank20No1Votes = source["Rank20No1Votes"]; - this.Rank21 = source["Rank21"]; - this.Rank21ID = source["Rank21ID"]; - this.Rank21Votes = source["Rank21Votes"]; - this.Rank21No1Votes = source["Rank21No1Votes"]; - this.Rank22 = source["Rank22"]; - this.Rank22ID = source["Rank22ID"]; - this.Rank22Votes = source["Rank22Votes"]; - this.Rank22No1Votes = source["Rank22No1Votes"]; - this.Rank23 = source["Rank23"]; - this.Rank23ID = source["Rank23ID"]; - this.Rank23Votes = source["Rank23Votes"]; - this.Rank23No1Votes = source["Rank23No1Votes"]; - this.Rank24 = source["Rank24"]; - this.Rank24ID = source["Rank24ID"]; - this.Rank24Votes = source["Rank24Votes"]; - this.Rank24No1Votes = source["Rank24No1Votes"]; - this.Rank25 = source["Rank25"]; - this.Rank25ID = source["Rank25ID"]; - this.Rank25Votes = source["Rank25Votes"]; - this.Rank25No1Votes = source["Rank25No1Votes"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class 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; - } -} - - -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; - 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.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 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; - } -} -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; - } -} -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; - } -} - - -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"]; - } -} -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; - } -} -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"]; - } -} -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; - } -} -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; - 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.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; - 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.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; - 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.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 HistoricCollegePlayer { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - FirstName: string; - LastName: string; - Position: string; - Archetype: string; - PreviousTeamID: number; - PreviousTeam: string; - Height: number; - Weight: number; - Age: number; - Stars: number; - Overall: number; - Stamina: number; - Injury: number; - FootballIQ: number; - Speed: number; - Carrying: number; - Agility: number; - Catching: number; - RouteRunning: number; - ZoneCoverage: number; - ManCoverage: number; - Strength: number; - Tackle: number; - PassBlock: number; - RunBlock: number; - PassRush: number; - RunDefense: number; - ThrowPower: number; - ThrowAccuracy: number; - KickAccuracy: number; - KickPower: number; - PuntAccuracy: number; - PuntPower: number; - Progression: number; - Discipline: number; - PotentialGrade: string; - FreeAgency: string; - Personality: string; - RecruitingBias: string; - WorkEthic: string; - AcademicBias: string; - IsInjured: boolean; - InjuryName: string; - InjuryType: string; - WeeksOfRecovery: number; - InjuryReserve: boolean; - PrimeAge: number; - Clutch: number; - Shotgun: number; - PositionTwo: string; - ArchetypeTwo: string; - RelativeID: number; - RelativeType: number; - Notes: string; - PlayerID: number; - TeamID: number; - TeamAbbr: string; - HighSchool: string; - City: string; - State: string; - Year: number; - IsRedshirt: boolean; - IsRedshirting: boolean; - HasGraduated: boolean; - TransferStatus: number; - TransferLikeliness: string; - Stats: CollegePlayerStats[]; - SeasonStats: CollegePlayerSeasonStats; - HasProgressed: boolean; - WillDeclare: boolean; - LegacyID: number; - Profiles: TransferPortalProfile[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.FirstName = source["FirstName"]; - this.LastName = source["LastName"]; - this.Position = source["Position"]; - this.Archetype = source["Archetype"]; - this.PreviousTeamID = source["PreviousTeamID"]; - this.PreviousTeam = source["PreviousTeam"]; - this.Height = source["Height"]; - this.Weight = source["Weight"]; - this.Age = source["Age"]; - this.Stars = source["Stars"]; - this.Overall = source["Overall"]; - this.Stamina = source["Stamina"]; - this.Injury = source["Injury"]; - this.FootballIQ = source["FootballIQ"]; - this.Speed = source["Speed"]; - this.Carrying = source["Carrying"]; - this.Agility = source["Agility"]; - this.Catching = source["Catching"]; - this.RouteRunning = source["RouteRunning"]; - this.ZoneCoverage = source["ZoneCoverage"]; - this.ManCoverage = source["ManCoverage"]; - this.Strength = source["Strength"]; - this.Tackle = source["Tackle"]; - this.PassBlock = source["PassBlock"]; - this.RunBlock = source["RunBlock"]; - this.PassRush = source["PassRush"]; - this.RunDefense = source["RunDefense"]; - this.ThrowPower = source["ThrowPower"]; - this.ThrowAccuracy = source["ThrowAccuracy"]; - this.KickAccuracy = source["KickAccuracy"]; - this.KickPower = source["KickPower"]; - this.PuntAccuracy = source["PuntAccuracy"]; - this.PuntPower = source["PuntPower"]; - this.Progression = source["Progression"]; - this.Discipline = source["Discipline"]; - this.PotentialGrade = source["PotentialGrade"]; - this.FreeAgency = source["FreeAgency"]; - this.Personality = source["Personality"]; - this.RecruitingBias = source["RecruitingBias"]; - this.WorkEthic = source["WorkEthic"]; - this.AcademicBias = source["AcademicBias"]; - this.IsInjured = source["IsInjured"]; - this.InjuryName = source["InjuryName"]; - this.InjuryType = source["InjuryType"]; - this.WeeksOfRecovery = source["WeeksOfRecovery"]; - this.InjuryReserve = source["InjuryReserve"]; - this.PrimeAge = source["PrimeAge"]; - this.Clutch = source["Clutch"]; - this.Shotgun = source["Shotgun"]; - this.PositionTwo = source["PositionTwo"]; - this.ArchetypeTwo = source["ArchetypeTwo"]; - this.RelativeID = source["RelativeID"]; - this.RelativeType = source["RelativeType"]; - this.Notes = source["Notes"]; - this.PlayerID = source["PlayerID"]; - this.TeamID = source["TeamID"]; - this.TeamAbbr = source["TeamAbbr"]; - this.HighSchool = source["HighSchool"]; - this.City = source["City"]; - this.State = source["State"]; - this.Year = source["Year"]; - this.IsRedshirt = source["IsRedshirt"]; - this.IsRedshirting = source["IsRedshirting"]; - this.HasGraduated = source["HasGraduated"]; - this.TransferStatus = source["TransferStatus"]; - this.TransferLikeliness = source["TransferLikeliness"]; - this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); - this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); - this.HasProgressed = source["HasProgressed"]; - this.WillDeclare = source["WillDeclare"]; - this.LegacyID = source["LegacyID"]; - 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 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; - 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; - 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.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.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 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; - } -} -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; - } -} -export class NFLTradeOptionObj { - ID: number; - TradeProposalID: number; - NFLTeamID: number; - NFLPlayerID: number; - NFLDraftPickID: number; - OptionType: string; - SalaryPercentage: number; - Player: NFLPlayer; - Draftpick: NFLDraftPick; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.TradeProposalID = source["TradeProposalID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLPlayerID = source["NFLPlayerID"]; - this.NFLDraftPickID = source["NFLDraftPickID"]; - this.OptionType = source["OptionType"]; - this.SalaryPercentage = source["SalaryPercentage"]; - this.Player = this.convertValues(source["Player"], NFLPlayer); - this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradeProposalDTO { - ID: number; - NFLTeamID: number; - NFLTeam: string; - RecepientTeamID: number; - RecepientTeam: string; - IsTradeAccepted: boolean; - IsTradeRejected: boolean; - NFLTeamTradeOptions: NFLTradeOptionObj[]; - RecepientTeamTradeOptions: NFLTradeOptionObj[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.NFLTeamID = source["NFLTeamID"]; - this.NFLTeam = source["NFLTeam"]; - this.RecepientTeamID = source["RecepientTeamID"]; - this.RecepientTeam = source["RecepientTeam"]; - this.IsTradeAccepted = source["IsTradeAccepted"]; - this.IsTradeRejected = source["IsTradeRejected"]; - this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOptionObj); - this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOptionObj); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} - - -export class NFLTeamProposals { - SentTradeProposals: NFLTradeProposalDTO[]; - ReceivedTradeProposals: NFLTradeProposalDTO[]; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.SentTradeProposals = this.convertValues(source["SentTradeProposals"], NFLTradeProposalDTO); - this.ReceivedTradeProposals = this.convertValues(source["ReceivedTradeProposals"], NFLTradeProposalDTO); - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferences { - ID: number; - CreatedAt: Time; - UpdatedAt: Time; - DeletedAt: Time; - NFLTeamID: number; - Quarterbacks: boolean; - QuarterbackType: string; - Runningbacks: boolean; - RunningbackType: string; - Fullbacks: boolean; - FullbackType: string; - WideReceivers: boolean; - WideReceiverType: string; - TightEnds: boolean; - TightEndType: string; - OffensiveTackles: boolean; - OffensiveGuards: boolean; - Centers: boolean; - OffensiveTackleType: string; - OffensiveGuardType: string; - CenterType: string; - DefensiveTackles: boolean; - DefensiveTackleType: string; - DefensiveEnds: boolean; - DefensiveEndType: string; - OutsideLinebackers: boolean; - OutsideLinebackerType: string; - InsideLinebackers: boolean; - InsideLinebackerType: string; - Cornerbacks: boolean; - CornerbackType: string; - FreeSafeties: boolean; - FreeSafetyType: string; - StrongSafeties: boolean; - StrongSafetyType: string; - Kickers: boolean; - KickerType: string; - Punters: boolean; - PunterType: string; - DraftPicks: boolean; - DraftPickType: string; - - constructor(source: any = {}) { - if ('string' === typeof source) source = JSON.parse(source); - this.ID = source["ID"]; - this.CreatedAt = this.convertValues(source["CreatedAt"], Time); - this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); - this.DeletedAt = this.convertValues(source["DeletedAt"], Time); - this.NFLTeamID = source["NFLTeamID"]; - this.Quarterbacks = source["Quarterbacks"]; - this.QuarterbackType = source["QuarterbackType"]; - this.Runningbacks = source["Runningbacks"]; - this.RunningbackType = source["RunningbackType"]; - this.Fullbacks = source["Fullbacks"]; - this.FullbackType = source["FullbackType"]; - this.WideReceivers = source["WideReceivers"]; - this.WideReceiverType = source["WideReceiverType"]; - this.TightEnds = source["TightEnds"]; - this.TightEndType = source["TightEndType"]; - this.OffensiveTackles = source["OffensiveTackles"]; - this.OffensiveGuards = source["OffensiveGuards"]; - this.Centers = source["Centers"]; - this.OffensiveTackleType = source["OffensiveTackleType"]; - this.OffensiveGuardType = source["OffensiveGuardType"]; - this.CenterType = source["CenterType"]; - this.DefensiveTackles = source["DefensiveTackles"]; - this.DefensiveTackleType = source["DefensiveTackleType"]; - this.DefensiveEnds = source["DefensiveEnds"]; - this.DefensiveEndType = source["DefensiveEndType"]; - this.OutsideLinebackers = source["OutsideLinebackers"]; - this.OutsideLinebackerType = source["OutsideLinebackerType"]; - this.InsideLinebackers = source["InsideLinebackers"]; - this.InsideLinebackerType = source["InsideLinebackerType"]; - this.Cornerbacks = source["Cornerbacks"]; - this.CornerbackType = source["CornerbackType"]; - this.FreeSafeties = source["FreeSafeties"]; - this.FreeSafetyType = source["FreeSafetyType"]; - this.StrongSafeties = source["StrongSafeties"]; - this.StrongSafetyType = source["StrongSafetyType"]; - this.Kickers = source["Kickers"]; - this.KickerType = source["KickerType"]; - this.Punters = source["Punters"]; - this.PunterType = source["PunterType"]; - this.DraftPicks = source["DraftPicks"]; - this.DraftPickType = source["DraftPickType"]; - } - - convertValues(a: any, classs: any, asMap: boolean = false): any { - if (!a) { - return a; - } - if (Array.isArray(a)) { - return (a as any[]).map(elem => this.convertValues(elem, classs)); - } else if ("object" === typeof a) { - if (asMap) { - for (const key of Object.keys(a)) { - a[key] = new classs(a[key]); - } - return a; - } - return new classs(a); - } - return a; - } -} -export class NFLTradePreferencesDTO { - NFLTeamID: number; - Quarterbacks: boolean; - 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; - } -} - -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[]; - - 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"]; - } -} -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"]; - } -} -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"]; - } -} -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; - } -} - -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"]; - } -} -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; - } -} - -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; - } -} - - -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"]; - } -} -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; - 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.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 From b6884712d432e7aecbb38214160db3d2e0a202bc Mon Sep 17 00:00:00 2001 From: CalebRose Date: Thu, 19 Jun 2025 07:12:26 -0700 Subject: [PATCH 08/20] Stats v2 --- controller/StatsController.go | 32 + controller/TSController.go | 1 + data/2025/2025_cfb_games_post.csv | 61 + ...ballModels.ts-2025-06-19T07_11_45.4.backup | 8802 +++++++++++++++++ main.go | 4 +- managers/ImportManager.go | 2 +- managers/StatsManager.go | 151 +- repository/StatsRepository.go | 151 + structs/GameResultsResponse.go | 11 + ts/footballModels.ts | 40 + 10 files changed, 9239 insertions(+), 16 deletions(-) create mode 100644 data/2025/2025_cfb_games_post.csv create mode 100644 footballModels.ts-2025-06-19T07_11_45.4.backup create mode 100644 repository/StatsRepository.go diff --git a/controller/StatsController.go b/controller/StatsController.go index 644ed3b..db89c22 100644 --- a/controller/StatsController.go +++ b/controller/StatsController.go @@ -360,3 +360,35 @@ func GetCFBSeasonStatsRecord(w http.ResponseWriter, r *http.Request) { json.NewEncoder(w).Encode(player) } + +func GetCFBStatsPageContent(w http.ResponseWriter, r *http.Request) { + vars := mux.Vars(r) + seasonID := vars["seasonID"] + viewType := vars["viewType"] + weekID := vars["weekID"] + gameType := vars["gameType"] + + if len(viewType) == 0 { + panic("User did not provide view type") + } + + if len(seasonID) == 0 { + panic("User did not provide TeamID") + } + + response := managers.SearchCollegeStats(seasonID, weekID, viewType, gameType) + json.NewEncoder(w).Encode(response) +} + +func GetProStatsPageContent(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + seasonID := vars["seasonID"] + viewType := vars["viewType"] + weekID := vars["weekID"] + gameType := vars["gameType"] + + response := managers.SearchProStats(seasonID, weekID, viewType, gameType) + + json.NewEncoder(w).Encode(response) +} diff --git a/controller/TSController.go b/controller/TSController.go index 04133df..f92e0be 100644 --- a/controller/TSController.go +++ b/controller/TSController.go @@ -47,6 +47,7 @@ func CreateTSModelsFile(w http.ResponseWriter, r *http.Request) { Add(managers.BootstrapDataTwo{}). Add(managers.BootstrapDataThree{}). Add(managers.CollegeTeamProfileData{}). + Add(structs.SearchStatsResponse{}). Add(structs.FaceDataResponse{}). Add(structs.TeamRequestsResponse{}). Add(structs.BasePlayer{}). diff --git a/data/2025/2025_cfb_games_post.csv b/data/2025/2025_cfb_games_post.csv new file mode 100644 index 0000000..fc80f5f --- /dev/null +++ b/data/2025/2025_cfb_games_post.csv @@ -0,0 +1,61 @@ +GameID,Season,Week,Home Team,Away Team,Conference Game,Division Game,Neutral Site,Conference Champ,Bowl Game,Playoff,National Champ,home bye,prev bye,Listed Coach,Other Coach,TimeSlot,Stadium,City,State,Domed Stadium,GameTitle,Info,NextGame,NextGameHOA +5351,2025,17,MINN,OKST,0,0,1,0,1,0,0,1,1,Minnow,AI,Thursday Night,Wrigley Field,Chicago,IL,0,State Farm Ivy Bowl,,0, +5352,2025,17,TTU,ARK,0,0,1,0,1,0,0,1,1,rcarlson77,kwheeler,Thursday Night,"Donald W. Reynolds Razorback Stadium, Frank Broyles Field",Fayetteville,AR,0,Tyson Foods Not a Taco Bowl,,0, +5353,2025,17,CMU,SJSU,0,0,1,0,1,0,0,1,1,AI,Chandler1,Friday Night,Independence Stadium,Shreveport,LA,0,Independence Bowl,,0, +5354,2025,17,OREG,NIU,0,0,1,0,1,0,0,1,1,AI,Ape,Friday Night,Fenway Park,Boston,MA,0,Fenway Bowl,,0, +5355,2025,17,STAN,USC,0,0,1,0,1,0,0,1,1,Ricky Campbell,Dr_Novella,Saturday Morning,FAU Stadium,Boca Raton,FL,0,Boca Raton Bowl,,0, +5356,2025,17,MRSH,TULS,0,0,0,0,1,1,0,1,1,Newkbomb,acewulf,Saturday Morning,Joan C. Edwards Stadium,Huntington,WV,0,2025 FBS Playoffs Round 1,,5370,A +5357,2025,17,BOIS,OHIO,0,0,1,0,1,0,0,1,1,AI,Traith Kreios,Saturday Morning,Liberty Bowl Memorial Stadium,Memphis,TN,0,Liberty Bowl,,0, +5358,2025,17,OKLA,SMU,0,0,1,0,1,0,0,1,1,Duckal,jw1952tx,Saturday Afternoon,TIAA Bank Field,Jacksonville,FL,0,Gator Bowl,,0, +5359,2025,17,PNST,WMU,0,0,0,0,1,1,0,1,1,Rocketcan,Jieret,Saturday Afternoon,Beaver Stadium,University Park,PA,0,2025 FBS Playoffs Round 1,,5372,A +5360,2025,17,WASH,TEX,0,0,1,0,1,0,0,1,1,CoachCartier,Dean,Saturday Evening,Camping World Stadium,Orlando,FL,0,Citrus Bowl,,0, +5361,2025,17,UTAH,MIAF,0,0,0,0,1,1,0,0,1,SageBow,Dearden,Saturday Evening,Rice-Eccles Stadium,Salt Lake City,UT,0,2025 FBS Playoffs Round 1,,5375,A +5362,2025,17,SDSU,WKU,0,0,1,0,1,0,0,1,1,SittingDuck07,AI,Saturday Night,Aloha Stadium,Honolulu,HI,0,Hawai'i Bowl,,0, +5363,2025,17,WVU,CUSE,0,0,0,0,1,1,0,1,0,smackemz3,taffyowner,Saturday Night,Mountaineer Field at Milan Puskar Stadium,Morgantown,WV,0,2025 FBS Playoffs Round 1,,5377,A +5364,2025,18,CSU,TLDO,0,0,1,0,1,0,0,1,1,Bellwood,ArmTheSharks,Thursday Night,Navy-Marine Corps Memorial Stadium,Annapolis,MD,0,Military Bowl,,0, +5365,2025,18,KANS,MIZZ,0,0,1,0,1,0,0,1,1,bundy,AI,Thursday Night,Camp Randall Stadium,Madison,WI,0,Duluth Trading Co. Northern Lights Bowl,,0, +5366,2025,18,MOST,TLNE,0,0,1,0,1,0,0,1,1,AI,kgreene829,Friday Night,Sun Bowl,El Paso,TX,0,Sun Bowl,,0, +5367,2025,18,ND,UGA,0,0,1,0,1,0,0,1,1,LordLittlebutt,Sarge,Friday Night,SoFi Stadium,Inglewood,CA,1,Huy Fong Foods Sriracha Bowl,,0, +5368,2025,18,KENT,USM,0,0,1,0,1,0,0,1,1,AI,AI,Saturday Morning,Raymond James Stadium,Tampa,FL,0,Gasparilla Bowl,,0, +5369,2025,18,USAF,GASO,0,0,1,0,1,0,0,1,1,AI,miller,Saturday Morning,Yankee Stadium,The Bronx,NY,0,New Era Pinstripe Bowl,,0, +5370,2025,18,FSU,,0,0,1,0,1,1,0,1,0,Kirby,#N/A,Saturday Morning,AT&T Stadium,Arlington,TX,1,Cotton Bowl,,5391,H +5371,2025,18,UNT,UTEP,0,0,1,0,1,0,0,1,1,EmeraldSeasSunshine,AI,Saturday Afternoon,Protective Stadium,Birmingham,AL,0,Birmingham Bowl,,0, +5372,2025,18,TENN,,0,0,1,0,1,1,0,1,0,tsweezy,#N/A,Saturday Afternoon,Hard Rock Stadium,Miami Gardens,FL,0,Orange Bowl,,5391,A +5373,2025,18,UNM,JMU,0,0,1,0,1,0,0,1,1,DarthJarJar,askfortea,Saturday Evening,NRG Stadium,Houston,TX,0,Texas Bowl,,0, +5374,2025,18,TAMU,TXST,0,0,1,0,1,0,0,1,1,sleuthofbears,NillaWafer,Saturday Evening,Svalbard Stadium,Longyearbyen,NO,0,Far North Bowl,,0, +5375,2025,18,BAYL,,0,0,1,0,1,1,0,1,0,Vivid,#N/A,Saturday Evening,Rose Bowl,Pasadena,CA,0,Rose Bowl,,5393,A +5376,2025,18,UHOU,BGSU,0,0,1,0,1,0,0,1,1,mahrowkeen,PoopyRhinoPickle,Saturday Night,Albertsons Stadium,Boise,ID,0,Famous Idaho Potato Bowl,,0, +5377,2025,18,LSU,,0,0,1,0,1,1,0,1,0,Jumbo,#N/A,Saturday Night,Caesars Superdome,New Orleans,LA,1,Sugar Bowl,,5393,H +5378,2025,19,NAVY,PURD,0,0,1,0,1,0,0,1,1,Syndakyt,MasonAsher,Thursday Night,Camping World Stadium,Orlando,FL,0,Cheez-It Bowl,,0, +5379,2025,19,UNC,MICH,0,0,1,0,1,0,0,1,1,Tryggr,subsequent,Thursday Night,Nissan Stadium,Nashville,TN,0,Music City Bowl,,0, +5380,2025,19,NMSU,CONN,0,0,1,0,1,0,0,1,1,Rabbit,AI,Friday Night,Thomas Robinson Stadium,Nassau,BS,0,Bahamas Bowl,,0, +5381,2025,19,NEB,UNLV,0,0,1,0,1,0,0,1,1,alexfall862,AI,Friday Night,Bank of America Stadium,Charlotte,NC,0,Duke's Mayo Bowl,,0, +5382,2025,19,ULM,ECU,0,0,1,0,1,0,0,1,1,AI,ObliviousLAX,Saturday Morning,Arizona Stadium,Tucson,AZ,0,Snoop Dogg Arizona Bowl,,0, +5383,2025,19,ILLI,GT,0,0,1,0,1,0,0,1,1,nemolee.exe,ATonOfLaw,Saturday Morning,Raymond James Stadium,Tampa,FL,0,ReliaQuest Bowl,,0, +5384,2025,19,UTST,MEMP,0,0,1,0,1,0,0,1,1,Ewade,AI,Saturday Morning,Chase Field,Phoenix,AZ,1,Rate Bowl,,0, +5385,2025,19,BALL,UCLA,0,0,1,0,1,0,0,1,1,npklemm,jmjacobs,Saturday Morning,Ford Field,Detroit,MI,1,Meijer's/Hostess Twinkie Ice Cream Bowl,,0, +5386,2025,19,NCST,ZONA,0,0,1,0,1,0,0,1,1,Matty460,pizzly,Saturday Afternoon,Alamodome,San Antonio,TX,1,Alamo Bowl,,0, +5387,2025,19,JST,TROY,0,0,1,0,1,0,0,1,1,AI,AI,Saturday Afternoon,Exploria Stadium,Orlando,FL,0,The Cure Bowl,,0, +5388,2025,19,IND,LOU,0,0,1,0,1,0,0,1,1,Piercewise1,Sandmanlost,Saturday Afternoon,Camping World Stadium,Orlando,FL,0,Cheez-It Bowl,,0, +5389,2025,19,WAST,UKEN,0,0,1,0,1,0,0,1,1,TuscanSota,Ezaco,Saturday Evening,Milan Puskar Stadium,Morgantown,WV,0,"Big Timber Brewing Almost Heaven, West Virginia Bowl",,0, +5390,2025,19,UVA,WISC,0,0,1,0,1,0,0,1,1,Wahoo,JC,Saturday Evening,Pitbull Stadium,Miami,FL,0,The PitBowl,,0, +5391,2025,19,,,0,0,1,0,1,1,0,0,0,#N/A,#N/A,Saturday Evening,State Farm Stadium,Glendale,AZ,1,Fiesta Bowl,,5395,H +5392,2025,19,CLEM,BYU,0,0,1,0,1,0,0,1,1,Spoof,AI,Saturday Night,Wembley Stadium,London,GB,0,Weetabix Bowl,,0, +5393,2025,19,,,0,0,1,0,1,1,0,0,0,#N/A,#N/A,Saturday Night,Mercedes-Benz Stadium,Atlanta,GA,1,Peach Bowl,,5395,A +5394,2025,20,WAKE,NW,0,0,1,0,1,0,0,1,1,Qupax,T007disney,Saturday Morning,The Kibbie Dome,Moscow,ID,1,The Toilet Bowl,,0, +5395,2025,20,,,0,0,1,0,1,1,1,0,0,#N/A,#N/A,Saturday Morning,NRG Stadium,Houston,TX,1,2025 College Football Playoff National Championship Game,,0, +5396,2025,17,MONT,SAM,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Washington-Grizzly Stadium,Missoula,MT,0,FCS Playoffs First Round,,5404,H +5397,2025,17,NDSU,MTST,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Fargodome,Fargo,ND,1,FCS Playoffs First Round,,5405,H +5398,2025,17,SIU,PV,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Saluki Stadium,Carbondale,IL,0,FCS Playoffs First Round,,5406,H +5399,2025,17,ALCN,COLG,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Spinks-Casem Stadium,Lorman,MS,0,FCS Playoffs First Round,,5407,H +5400,2025,17,BCU,WIU,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Daytona Stadium,Daytona Beach,FL,0,FCS Playoffs First Round,,5407,A +5401,2025,17,SDAK,ILST,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,DakotaDome,Vermillion,SD,1,FCS Playoffs First Round,,5406,A +5402,2025,17,FOR,IDHO,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Jack Coffey Field,Bronx,NY,0,FCS Playoffs First Round,,5405,A +5403,2025,17,SSU,SOU,0,0,0,0,0,1,0,1,1,AI,AI,Saturday Morning,Hornet Stadium,Sacramento,CA,0,FCS Playoffs First Round,,5404,A +5404,2025,18,FCS #1/16,FCS #8/9,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Quarterfinals,,5408,H +5405,2025,18,FCS #2/15,FCS #7/10,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Quarterfinals,,5409,H +5406,2025,18,FCS #3/14,FCS #6/11,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Quarterfinals,,5409,A +5407,2025,18,FCS #4/13,FCS #5/12,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Quarterfinals,,5408,A +5408,2025,19,FCS #1/8/9/16,FCS #4/5/12/13,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Semifinals,,5410,H +5409,2025,19,FCS #3/6/11/14,FCS #2/7/10/15,0,0,0,0,0,1,0,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS Playoffs Semifinals,,5410,A +5410,2025,20,FCS #1/2/7/8/9/10/15/16,FCS #3/4/5/6/11/12/13/14,0,0,0,0,0,1,1,0,0,#N/A,#N/A,Saturday Morning,#N/A,#N/A,#N/A,#N/A,FCS National Championship Game,,0, diff --git a/footballModels.ts-2025-06-19T07_11_45.4.backup b/footballModels.ts-2025-06-19T07_11_45.4.backup new file mode 100644 index 0000000..8f94b6d --- /dev/null +++ b/footballModels.ts-2025-06-19T07_11_45.4.backup @@ -0,0 +1,8802 @@ +/* Do not change, this code is generated from Golang structs */ + + +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"]; + } +} +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; + } +} +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; + PassLong: number; + PassDeep: number; + PassScreen: number; + PassPAShort: 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.PassLong = source["PassLong"]; + this.PassDeep = source["PassDeep"]; + this.PassScreen = source["PassScreen"]; + this.PassPAShort = source["PassPAShort"]; + 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; + + 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"]; + } + + 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"]; + } +} +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; + 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.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.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 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; + } +} +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; + } +} +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; + 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; + AAV: 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.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.AAV = source["AAV"]; + 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; + } +} +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; + } +} +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; + } +} +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; + } +} +export class NFLDraftPick { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + SeasonID: number; + Season: number; + DrafteeID: number; + DraftRound: number; + DraftNumber: 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.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; + } +} +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; + } +} +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; + 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.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 Notification { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + TeamID: number; + League: string; + NotificationType: string; + Message: string; + Subject: string; + IsRead: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.TeamID = source["TeamID"]; + this.League = source["League"]; + this.NotificationType = source["NotificationType"]; + this.Message = source["Message"]; + this.Subject = source["Subject"]; + this.IsRead = source["IsRead"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + 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.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 CollegePromise { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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"], Time); + 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 NullInt64 { + Int64: number; + Valid: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Int64 = source["Int64"]; + this.Valid = source["Valid"]; + } +} +export class TransferPortalProfile { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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; + CollegePlayer: CollegePlayer; + Promise: CollegePromise; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.SeasonID = source["SeasonID"]; + this.CollegePlayerID = source["CollegePlayerID"]; + this.ProfileID = source["ProfileID"]; + this.PromiseID = this.convertValues(source["PromiseID"], NullInt64); + this.TeamAbbreviation = source["TeamAbbreviation"]; + this.TotalPoints = source["TotalPoints"]; + this.CurrentWeeksPoints = source["CurrentWeeksPoints"]; + this.PreviouslySpentPoints = source["PreviouslySpentPoints"]; + this.SpendingCount = source["SpendingCount"]; + this.RemovedFromBoard = source["RemovedFromBoard"]; + this.RolledOnPromise = source["RolledOnPromise"]; + this.LockProfile = source["LockProfile"]; + this.IsSigned = source["IsSigned"]; + this.Recruiter = source["Recruiter"]; + this.CollegePlayer = this.convertValues(source["CollegePlayer"], CollegePlayer); + 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 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; + } +} +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; + } +} +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; + 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; + Profiles: TransferPortalProfile[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.IsRedshirting = source["IsRedshirting"]; + this.HasGraduated = source["HasGraduated"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.HasProgressed = source["HasProgressed"]; + this.WillDeclare = source["WillDeclare"]; + this.LegacyID = source["LegacyID"]; + 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 CollegeDepthChartPosition { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + 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"], 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.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: Time; + 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"], Time); + 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: 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; + PassLong: number; + PassDeep: number; + PassScreen: number; + PassPAShort: 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.PassLong = source["PassLong"]; + this.PassDeep = source["PassDeep"]; + this.PassScreen = source["PassScreen"]; + this.PassPAShort = source["PassPAShort"]; + 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; + } +} +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; + } +} +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; + } +} +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; + } +} +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; + } +} +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; + 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.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; + 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.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; + 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.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; + } +} +export class Time { + + + 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; + 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.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 BootstrapData { + CollegeTeam: CollegeTeam; + AllCollegeTeams: CollegeTeam[]; + CollegeRosterMap: {[key: uint]: CollegePlayer[]}; + TopCFBPassers: CollegePlayer[]; + TopCFBRushers: CollegePlayer[]; + TopCFBReceivers: CollegePlayer[]; + PortalPlayers: CollegePlayer[]; + CollegeInjuryReport: CollegePlayer[]; + CollegeNotifications: Notification[]; + CollegeGameplan: CollegeGameplan; + CollegeDepthChart: CollegeTeamDepthChart; + ProTeam: NFLTeam; + AllProTeams: NFLTeam[]; + ProNotifications: Notification[]; + NFLGameplan: NFLGameplan; + NFLDepthChart: NFLDepthChart; + FaceData: {[key: uint]: FaceDataResponse}; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeTeam = this.convertValues(source["CollegeTeam"], CollegeTeam); + this.AllCollegeTeams = this.convertValues(source["AllCollegeTeams"], CollegeTeam); + this.CollegeRosterMap = source["CollegeRosterMap"]; + this.TopCFBPassers = this.convertValues(source["TopCFBPassers"], CollegePlayer); + this.TopCFBRushers = this.convertValues(source["TopCFBRushers"], CollegePlayer); + this.TopCFBReceivers = this.convertValues(source["TopCFBReceivers"], CollegePlayer); + this.PortalPlayers = this.convertValues(source["PortalPlayers"], CollegePlayer); + this.CollegeInjuryReport = this.convertValues(source["CollegeInjuryReport"], CollegePlayer); + this.CollegeNotifications = this.convertValues(source["CollegeNotifications"], Notification); + this.CollegeGameplan = this.convertValues(source["CollegeGameplan"], CollegeGameplan); + this.CollegeDepthChart = this.convertValues(source["CollegeDepthChart"], CollegeTeamDepthChart); + this.ProTeam = this.convertValues(source["ProTeam"], NFLTeam); + this.AllProTeams = this.convertValues(source["AllProTeams"], NFLTeam); + this.ProNotifications = this.convertValues(source["ProNotifications"], Notification); + this.NFLGameplan = this.convertValues(source["NFLGameplan"], NFLGameplan); + this.NFLDepthChart = this.convertValues(source["NFLDepthChart"], NFLDepthChart); + this.FaceData = this.convertValues(source["FaceData"], FaceDataResponse, true); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + 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.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 CollegeGame { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + WeekID: number; + Week: number; + SeasonID: number; + HomeTeamRank: number; + HomeTeamID: number; + HomeTeam: string; + HomeTeamCoach: string; + HomeTeamWin: boolean; + AwayTeamRank: number; + AwayTeamID: number; + AwayTeam: string; + AwayTeamCoach: string; + AwayTeamWin: boolean; + MVP: string; + HomeTeamScore: number; + AwayTeamScore: number; + TimeSlot: string; + StadiumID: number; + Stadium: string; + City: string; + State: string; + Region: string; + LowTemp: number; + HighTemp: number; + GameTemp: number; + Cloud: string; + Precip: string; + WindSpeed: number; + WindCategory: string; + IsNeutral: boolean; + IsDomed: boolean; + IsNightGame: boolean; + IsConference: boolean; + IsDivisional: boolean; + IsConferenceChampionship: boolean; + IsBowlGame: boolean; + IsPlayoffGame: boolean; + IsNationalChampionship: boolean; + IsRivalryGame: boolean; + GameComplete: boolean; + IsSpringGame: boolean; + GameTitle: string; + NextGameID: number; + NextGameHOA: string; + HomePreviousBye: boolean; + AwayPreviousBye: boolean; + ConferenceID: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.SeasonID = source["SeasonID"]; + this.HomeTeamRank = source["HomeTeamRank"]; + this.HomeTeamID = source["HomeTeamID"]; + this.HomeTeam = source["HomeTeam"]; + this.HomeTeamCoach = source["HomeTeamCoach"]; + this.HomeTeamWin = source["HomeTeamWin"]; + this.AwayTeamRank = source["AwayTeamRank"]; + this.AwayTeamID = source["AwayTeamID"]; + this.AwayTeam = source["AwayTeam"]; + this.AwayTeamCoach = source["AwayTeamCoach"]; + this.AwayTeamWin = source["AwayTeamWin"]; + this.MVP = source["MVP"]; + this.HomeTeamScore = source["HomeTeamScore"]; + this.AwayTeamScore = source["AwayTeamScore"]; + this.TimeSlot = source["TimeSlot"]; + this.StadiumID = source["StadiumID"]; + this.Stadium = source["Stadium"]; + this.City = source["City"]; + this.State = source["State"]; + this.Region = source["Region"]; + this.LowTemp = source["LowTemp"]; + this.HighTemp = source["HighTemp"]; + this.GameTemp = source["GameTemp"]; + this.Cloud = source["Cloud"]; + this.Precip = source["Precip"]; + this.WindSpeed = source["WindSpeed"]; + this.WindCategory = source["WindCategory"]; + this.IsNeutral = source["IsNeutral"]; + this.IsDomed = source["IsDomed"]; + this.IsNightGame = source["IsNightGame"]; + this.IsConference = source["IsConference"]; + this.IsDivisional = source["IsDivisional"]; + this.IsConferenceChampionship = source["IsConferenceChampionship"]; + this.IsBowlGame = source["IsBowlGame"]; + this.IsPlayoffGame = source["IsPlayoffGame"]; + this.IsNationalChampionship = source["IsNationalChampionship"]; + this.IsRivalryGame = source["IsRivalryGame"]; + this.GameComplete = source["GameComplete"]; + this.IsSpringGame = source["IsSpringGame"]; + this.GameTitle = source["GameTitle"]; + this.NextGameID = source["NextGameID"]; + this.NextGameHOA = source["NextGameHOA"]; + this.HomePreviousBye = source["HomePreviousBye"]; + this.AwayPreviousBye = source["AwayPreviousBye"]; + this.ConferenceID = source["ConferenceID"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + } +} +export class BootstrapDataTwo { + CollegeNews: NewsLog[]; + AllCollegeGames: CollegeGame[]; + TeamProfileMap: {[key: string]: RecruitingTeamProfile}; + CollegeStandings: CollegeStandings[]; + ProStandings: NFLStandings[]; + AllProGames: NFLGame[]; + CapsheetMap: {[key: uint]: NFLCapsheet}; + ProRosterMap: {[key: uint]: NFLPlayer[]}; + PracticeSquadPlayers: NFLPlayer[]; + TopNFLPassers: NFLPlayer[]; + TopNFLRushers: NFLPlayer[]; + TopNFLReceivers: NFLPlayer[]; + ProInjuryReport: NFLPlayer[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CollegeNews = this.convertValues(source["CollegeNews"], NewsLog); + this.AllCollegeGames = this.convertValues(source["AllCollegeGames"], CollegeGame); + this.TeamProfileMap = source["TeamProfileMap"]; + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.ProStandings = this.convertValues(source["ProStandings"], NFLStandings); + this.AllProGames = this.convertValues(source["AllProGames"], NFLGame); + this.CapsheetMap = this.convertValues(source["CapsheetMap"], NFLCapsheet, true); + this.ProRosterMap = source["ProRosterMap"]; + this.PracticeSquadPlayers = this.convertValues(source["PracticeSquadPlayers"], NFLPlayer); + this.TopNFLPassers = this.convertValues(source["TopNFLPassers"], NFLPlayer); + this.TopNFLRushers = this.convertValues(source["TopNFLRushers"], NFLPlayer); + this.TopNFLReceivers = this.convertValues(source["TopNFLReceivers"], NFLPlayer); + this.ProInjuryReport = this.convertValues(source["ProInjuryReport"], 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 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"]; + } +} +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[]; + + 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); + } + + 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 BootstrapDataThree { + Recruits: Croot[]; + RecruitProfiles: RecruitPlayerProfile[]; + CollegeDepthChartMap: {[key: uint]: CollegeTeamDepthChart}; + FreeAgentOffers: FreeAgencyOffer[]; + WaiverWireOffers: NFLWaiverOffer[]; + ProNews: NewsLog[]; + NFLDepthChartMap: {[key: uint]: NFLDepthChart}; + ContractMap: {[key: uint]: NFLContract}; + ExtensionMap: {[key: uint]: NFLExtensionOffer}; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Recruits = this.convertValues(source["Recruits"], Croot); + this.RecruitProfiles = this.convertValues(source["RecruitProfiles"], RecruitPlayerProfile); + this.CollegeDepthChartMap = this.convertValues(source["CollegeDepthChartMap"], CollegeTeamDepthChart, true); + this.FreeAgentOffers = this.convertValues(source["FreeAgentOffers"], FreeAgencyOffer); + this.WaiverWireOffers = this.convertValues(source["WaiverWireOffers"], NFLWaiverOffer); + this.ProNews = this.convertValues(source["ProNews"], NewsLog); + this.NFLDepthChartMap = this.convertValues(source["NFLDepthChartMap"], NFLDepthChart, true); + this.ContractMap = this.convertValues(source["ContractMap"], NFLContract, true); + this.ExtensionMap = this.convertValues(source["ExtensionMap"], NFLExtensionOffer, true); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class FlexComparisonModel { + TeamOneID: number; + TeamOne: string; + TeamOneWins: number; + TeamOneLosses: number; + TeamOneStreak: number; + TeamOneMSeason: number; + TeamOneMScore: string; + TeamTwoID: number; + TeamTwo: string; + TeamTwoWins: number; + TeamTwoLosses: number; + TeamTwoStreak: number; + TeamTwoMSeason: number; + TeamTwoMScore: string; + CurrentStreak: number; + LatestWin: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.TeamOneID = source["TeamOneID"]; + this.TeamOne = source["TeamOne"]; + this.TeamOneWins = source["TeamOneWins"]; + this.TeamOneLosses = source["TeamOneLosses"]; + this.TeamOneStreak = source["TeamOneStreak"]; + this.TeamOneMSeason = source["TeamOneMSeason"]; + this.TeamOneMScore = source["TeamOneMScore"]; + this.TeamTwoID = source["TeamTwoID"]; + this.TeamTwo = source["TeamTwo"]; + this.TeamTwoWins = source["TeamTwoWins"]; + this.TeamTwoLosses = source["TeamTwoLosses"]; + this.TeamTwoStreak = source["TeamTwoStreak"]; + this.TeamTwoMSeason = source["TeamTwoMSeason"]; + this.TeamTwoMScore = source["TeamTwoMScore"]; + this.CurrentStreak = source["CurrentStreak"]; + this.LatestWin = source["LatestWin"]; + } +} +export class CollegeTeamProfileData { + CareerStats: CollegePlayerSeasonStats[]; + CollegeStandings: CollegeStandings[]; + Rivalries: FlexComparisonModel[]; + PlayerMap: {[key: uint]: CollegePlayer}; + CollegeGames: CollegeGame[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.CareerStats = this.convertValues(source["CareerStats"], CollegePlayerSeasonStats); + this.CollegeStandings = this.convertValues(source["CollegeStandings"], CollegeStandings); + this.Rivalries = this.convertValues(source["Rivalries"], FlexComparisonModel); + this.PlayerMap = this.convertValues(source["PlayerMap"], CollegePlayer, true); + this.CollegeGames = this.convertValues(source["CollegeGames"], CollegeGame); + } + + 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; + } +} +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; + } +} +export class TeamRequestsResponse { + CollegeRequests: TeamRequest[]; + ProRequests: NFLRequest[]; + + 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); + } + + 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; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + } +} + + +export class BaseTeam { + TeamName: string; + Mascot: string; + TeamAbbr: string; + Coach: string; + City: string; + State: string; + Country: string; + StadiumID: number; + Stadium: string; + StadiumCapacity: number; + RecordAttendance: number; + Enrollment: number; + FirstPlayed: number; + ColorOne: string; + ColorTwo: string; + ColorThree: string; + DiscordID: string; + OverallGrade: string; + OffenseGrade: string; + DefenseGrade: string; + SpecialTeamsGrade: string; + PenaltyMarks: number; + JerseyType: number; + + 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"]; + } +} + + +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; + } +} + + + + + + + +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; + } +} +export class UpdateRecruitPointsDto { + RecruitPointsID: number; + RecruitID: number; + ProfileID: number; + Team: string; + WeekID: number; + AllocationID: number; + SpentPoints: number; + RewardScholarship: boolean; + RevokeScholarship: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.RecruitPointsID = source["RecruitPointsID"]; + this.RecruitID = source["RecruitID"]; + this.ProfileID = source["ProfileID"]; + this.Team = source["Team"]; + this.WeekID = source["WeekID"]; + this.AllocationID = source["AllocationID"]; + this.SpentPoints = source["SpentPoints"]; + this.RewardScholarship = source["RewardScholarship"]; + this.RevokeScholarship = source["RevokeScholarship"]; + } +} +export class CrootProfile { + ID: number; + SeasonID: number; + 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; + } +} +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; + } +} +export class RecruitPointAllocation { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + RecruitID: number; + TeamProfileID: number; + RecruitProfileID: number; + WeekID: number; + Points: number; + RESAffectedPoints: number; + AffinityOneApplied: boolean; + AffinityTwoApplied: boolean; + CaughtCheating: boolean; + + 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.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"]; + } +} +export class CFBRosterPageResponse { + Players: CollegePlayer[]; + Promises: CollegePromise[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.Players = this.convertValues(source["Players"], CollegePlayer); + this.Promises = this.convertValues(source["Promises"], CollegePromise); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + +export class TransferPlayerResponse { + FirstName: string; + LastName: string; + Archetype: string; + Position: string; + PositionTwo: string; + ArchetypeTwo: string; + Age: number; + Year: number; + State: string; + Country: string; + Stars: number; + Height: number; + Weight: number; + PotentialGrade: string; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + OverallGrade: string; + Personality: string; + RecruitingBias: string; + RecruitingBiasValue: string; + WorkEthic: string; + AcademicBias: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + IsRedshirting: boolean; + IsRedshirt: boolean; + PreviousTeamID: number; + PreviousTeam: string; + TransferStatus: number; + TransferLikeliness: string; + LegacyID: number; + SeasonStats: CollegePlayerSeasonStats; + Stats: CollegePlayerStats; + LeadingTeams: LeadingTeams[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Archetype = source["Archetype"]; + this.Position = source["Position"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.Age = source["Age"]; + this.Year = source["Year"]; + this.State = source["State"]; + this.Country = source["Country"]; + this.Stars = source["Stars"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.PotentialGrade = source["PotentialGrade"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.OverallGrade = source["OverallGrade"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.RecruitingBiasValue = source["RecruitingBiasValue"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.IsRedshirting = source["IsRedshirting"]; + this.IsRedshirt = source["IsRedshirt"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.LegacyID = source["LegacyID"]; + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.LeadingTeams = this.convertValues(source["LeadingTeams"], LeadingTeams); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class TransferPortalProfileResponse { + ID: number; + SeasonID: number; + CollegePlayerID: number; + ProfileID: number; + PromiseID: number; + TeamAbbreviation: string; + TotalPoints: number; + CurrentWeeksPoints: number; + PreviouslySpentPoints: number; + SpendingCount: number; + RemovedFromBoard: boolean; + RolledOnPromise: boolean; + LockProfile: boolean; + IsSigned: boolean; + Recruiter: string; + CollegePlayer: TransferPlayerResponse; + Promise: CollegePromise; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.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; + } +} +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; + } +} +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; + } +} + + + + +export class FreeAgencyOfferDTO { + ID: number; + NFLPlayerID: number; + TeamID: number; + Team: string; + ContractLength: number; + Y1BaseSalary: number; + Y1Bonus: number; + Y2BaseSalary: number; + Y2Bonus: number; + Y3BaseSalary: number; + Y3Bonus: number; + Y4BaseSalary: number; + Y4Bonus: number; + Y5BaseSalary: number; + Y5Bonus: number; + AAV: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.ContractLength = source["ContractLength"]; + this.Y1BaseSalary = source["Y1BaseSalary"]; + this.Y1Bonus = source["Y1Bonus"]; + this.Y2BaseSalary = source["Y2BaseSalary"]; + this.Y2Bonus = source["Y2Bonus"]; + this.Y3BaseSalary = source["Y3BaseSalary"]; + this.Y3Bonus = source["Y3Bonus"]; + this.Y4BaseSalary = source["Y4BaseSalary"]; + this.Y4Bonus = source["Y4Bonus"]; + this.Y5BaseSalary = source["Y5BaseSalary"]; + this.Y5Bonus = source["Y5Bonus"]; + this.AAV = source["AAV"]; + } +} +export class NFLWaiverOffDTO { + ID: number; + NFLPlayerID: number; + TeamID: number; + Team: string; + WaiverOrder: number; + IsActive: boolean; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.TeamID = source["TeamID"]; + this.Team = source["Team"]; + this.WaiverOrder = source["WaiverOrder"]; + this.IsActive = source["IsActive"]; + } +} + +export class CollegePollSubmission { + 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 CollegePollOfficial { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: DeletedAt; + SeasonID: number; + WeekID: number; + Week: number; + Rank1: string; + Rank1ID: number; + Rank1Votes: number; + Rank1No1Votes: number; + Rank2: string; + Rank2ID: number; + Rank2Votes: number; + Rank2No1Votes: number; + Rank3: string; + Rank3ID: number; + Rank3Votes: number; + Rank3No1Votes: number; + Rank4: string; + Rank4ID: number; + Rank4Votes: number; + Rank4No1Votes: number; + Rank5: string; + Rank5ID: number; + Rank5Votes: number; + Rank5No1Votes: number; + Rank6: string; + Rank6ID: number; + Rank6Votes: number; + Rank6No1Votes: number; + Rank7: string; + Rank7ID: number; + Rank7Votes: number; + Rank7No1Votes: number; + Rank8: string; + Rank8ID: number; + Rank8Votes: number; + Rank8No1Votes: number; + Rank9: string; + Rank9ID: number; + Rank9Votes: number; + Rank9No1Votes: number; + Rank10: string; + Rank10ID: number; + Rank10Votes: number; + Rank10No1Votes: number; + Rank11: string; + Rank11ID: number; + Rank11Votes: number; + Rank11No1Votes: number; + Rank12: string; + Rank12ID: number; + Rank12Votes: number; + Rank12No1Votes: number; + Rank13: string; + Rank13ID: number; + Rank13Votes: number; + Rank13No1Votes: number; + Rank14: string; + Rank14ID: number; + Rank14Votes: number; + Rank14No1Votes: number; + Rank15: string; + Rank15ID: number; + Rank15Votes: number; + Rank15No1Votes: number; + Rank16: string; + Rank16ID: number; + Rank16Votes: number; + Rank16No1Votes: number; + Rank17: string; + Rank17ID: number; + Rank17Votes: number; + Rank17No1Votes: number; + Rank18: string; + Rank18ID: number; + Rank18Votes: number; + Rank18No1Votes: number; + Rank19: string; + Rank19ID: number; + Rank19Votes: number; + Rank19No1Votes: number; + Rank20: string; + Rank20ID: number; + Rank20Votes: number; + Rank20No1Votes: number; + Rank21: string; + Rank21ID: number; + Rank21Votes: number; + Rank21No1Votes: number; + Rank22: string; + Rank22ID: number; + Rank22Votes: number; + Rank22No1Votes: number; + Rank23: string; + Rank23ID: number; + Rank23Votes: number; + Rank23No1Votes: number; + Rank24: string; + Rank24ID: number; + Rank24Votes: number; + Rank24No1Votes: number; + Rank25: string; + Rank25ID: number; + Rank25Votes: number; + Rank25No1Votes: number; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], DeletedAt); + this.SeasonID = source["SeasonID"]; + this.WeekID = source["WeekID"]; + this.Week = source["Week"]; + this.Rank1 = source["Rank1"]; + this.Rank1ID = source["Rank1ID"]; + this.Rank1Votes = source["Rank1Votes"]; + this.Rank1No1Votes = source["Rank1No1Votes"]; + this.Rank2 = source["Rank2"]; + this.Rank2ID = source["Rank2ID"]; + this.Rank2Votes = source["Rank2Votes"]; + this.Rank2No1Votes = source["Rank2No1Votes"]; + this.Rank3 = source["Rank3"]; + this.Rank3ID = source["Rank3ID"]; + this.Rank3Votes = source["Rank3Votes"]; + this.Rank3No1Votes = source["Rank3No1Votes"]; + this.Rank4 = source["Rank4"]; + this.Rank4ID = source["Rank4ID"]; + this.Rank4Votes = source["Rank4Votes"]; + this.Rank4No1Votes = source["Rank4No1Votes"]; + this.Rank5 = source["Rank5"]; + this.Rank5ID = source["Rank5ID"]; + this.Rank5Votes = source["Rank5Votes"]; + this.Rank5No1Votes = source["Rank5No1Votes"]; + this.Rank6 = source["Rank6"]; + this.Rank6ID = source["Rank6ID"]; + this.Rank6Votes = source["Rank6Votes"]; + this.Rank6No1Votes = source["Rank6No1Votes"]; + this.Rank7 = source["Rank7"]; + this.Rank7ID = source["Rank7ID"]; + this.Rank7Votes = source["Rank7Votes"]; + this.Rank7No1Votes = source["Rank7No1Votes"]; + this.Rank8 = source["Rank8"]; + this.Rank8ID = source["Rank8ID"]; + this.Rank8Votes = source["Rank8Votes"]; + this.Rank8No1Votes = source["Rank8No1Votes"]; + this.Rank9 = source["Rank9"]; + this.Rank9ID = source["Rank9ID"]; + this.Rank9Votes = source["Rank9Votes"]; + this.Rank9No1Votes = source["Rank9No1Votes"]; + this.Rank10 = source["Rank10"]; + this.Rank10ID = source["Rank10ID"]; + this.Rank10Votes = source["Rank10Votes"]; + this.Rank10No1Votes = source["Rank10No1Votes"]; + this.Rank11 = source["Rank11"]; + this.Rank11ID = source["Rank11ID"]; + this.Rank11Votes = source["Rank11Votes"]; + this.Rank11No1Votes = source["Rank11No1Votes"]; + this.Rank12 = source["Rank12"]; + this.Rank12ID = source["Rank12ID"]; + this.Rank12Votes = source["Rank12Votes"]; + this.Rank12No1Votes = source["Rank12No1Votes"]; + this.Rank13 = source["Rank13"]; + this.Rank13ID = source["Rank13ID"]; + this.Rank13Votes = source["Rank13Votes"]; + this.Rank13No1Votes = source["Rank13No1Votes"]; + this.Rank14 = source["Rank14"]; + this.Rank14ID = source["Rank14ID"]; + this.Rank14Votes = source["Rank14Votes"]; + this.Rank14No1Votes = source["Rank14No1Votes"]; + this.Rank15 = source["Rank15"]; + this.Rank15ID = source["Rank15ID"]; + this.Rank15Votes = source["Rank15Votes"]; + this.Rank15No1Votes = source["Rank15No1Votes"]; + this.Rank16 = source["Rank16"]; + this.Rank16ID = source["Rank16ID"]; + this.Rank16Votes = source["Rank16Votes"]; + this.Rank16No1Votes = source["Rank16No1Votes"]; + this.Rank17 = source["Rank17"]; + this.Rank17ID = source["Rank17ID"]; + this.Rank17Votes = source["Rank17Votes"]; + this.Rank17No1Votes = source["Rank17No1Votes"]; + this.Rank18 = source["Rank18"]; + this.Rank18ID = source["Rank18ID"]; + this.Rank18Votes = source["Rank18Votes"]; + this.Rank18No1Votes = source["Rank18No1Votes"]; + this.Rank19 = source["Rank19"]; + this.Rank19ID = source["Rank19ID"]; + this.Rank19Votes = source["Rank19Votes"]; + this.Rank19No1Votes = source["Rank19No1Votes"]; + this.Rank20 = source["Rank20"]; + this.Rank20ID = source["Rank20ID"]; + this.Rank20Votes = source["Rank20Votes"]; + this.Rank20No1Votes = source["Rank20No1Votes"]; + this.Rank21 = source["Rank21"]; + this.Rank21ID = source["Rank21ID"]; + this.Rank21Votes = source["Rank21Votes"]; + this.Rank21No1Votes = source["Rank21No1Votes"]; + this.Rank22 = source["Rank22"]; + this.Rank22ID = source["Rank22ID"]; + this.Rank22Votes = source["Rank22Votes"]; + this.Rank22No1Votes = source["Rank22No1Votes"]; + this.Rank23 = source["Rank23"]; + this.Rank23ID = source["Rank23ID"]; + this.Rank23Votes = source["Rank23Votes"]; + this.Rank23No1Votes = source["Rank23No1Votes"]; + this.Rank24 = source["Rank24"]; + this.Rank24ID = source["Rank24ID"]; + this.Rank24Votes = source["Rank24Votes"]; + this.Rank24No1Votes = source["Rank24No1Votes"]; + this.Rank25 = source["Rank25"]; + this.Rank25ID = source["Rank25ID"]; + this.Rank25Votes = source["Rank25Votes"]; + this.Rank25No1Votes = source["Rank25No1Votes"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class 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; + } +} + + +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; + 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.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 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; + } +} +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; + } +} +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; + } +} + + +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"]; + } +} +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; + } +} +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"]; + } +} +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; + } +} +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; + 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.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; + 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.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; + 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.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 HistoricCollegePlayer { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + FirstName: string; + LastName: string; + Position: string; + Archetype: string; + PreviousTeamID: number; + PreviousTeam: string; + Height: number; + Weight: number; + Age: number; + Stars: number; + Overall: number; + Stamina: number; + Injury: number; + FootballIQ: number; + Speed: number; + Carrying: number; + Agility: number; + Catching: number; + RouteRunning: number; + ZoneCoverage: number; + ManCoverage: number; + Strength: number; + Tackle: number; + PassBlock: number; + RunBlock: number; + PassRush: number; + RunDefense: number; + ThrowPower: number; + ThrowAccuracy: number; + KickAccuracy: number; + KickPower: number; + PuntAccuracy: number; + PuntPower: number; + Progression: number; + Discipline: number; + PotentialGrade: string; + FreeAgency: string; + Personality: string; + RecruitingBias: string; + WorkEthic: string; + AcademicBias: string; + IsInjured: boolean; + InjuryName: string; + InjuryType: string; + WeeksOfRecovery: number; + InjuryReserve: boolean; + PrimeAge: number; + Clutch: number; + Shotgun: number; + PositionTwo: string; + ArchetypeTwo: string; + RelativeID: number; + RelativeType: number; + Notes: string; + PlayerID: number; + TeamID: number; + TeamAbbr: string; + HighSchool: string; + City: string; + State: string; + Year: number; + IsRedshirt: boolean; + IsRedshirting: boolean; + HasGraduated: boolean; + TransferStatus: number; + TransferLikeliness: string; + Stats: CollegePlayerStats[]; + SeasonStats: CollegePlayerSeasonStats; + HasProgressed: boolean; + WillDeclare: boolean; + LegacyID: number; + Profiles: TransferPortalProfile[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.FirstName = source["FirstName"]; + this.LastName = source["LastName"]; + this.Position = source["Position"]; + this.Archetype = source["Archetype"]; + this.PreviousTeamID = source["PreviousTeamID"]; + this.PreviousTeam = source["PreviousTeam"]; + this.Height = source["Height"]; + this.Weight = source["Weight"]; + this.Age = source["Age"]; + this.Stars = source["Stars"]; + this.Overall = source["Overall"]; + this.Stamina = source["Stamina"]; + this.Injury = source["Injury"]; + this.FootballIQ = source["FootballIQ"]; + this.Speed = source["Speed"]; + this.Carrying = source["Carrying"]; + this.Agility = source["Agility"]; + this.Catching = source["Catching"]; + this.RouteRunning = source["RouteRunning"]; + this.ZoneCoverage = source["ZoneCoverage"]; + this.ManCoverage = source["ManCoverage"]; + this.Strength = source["Strength"]; + this.Tackle = source["Tackle"]; + this.PassBlock = source["PassBlock"]; + this.RunBlock = source["RunBlock"]; + this.PassRush = source["PassRush"]; + this.RunDefense = source["RunDefense"]; + this.ThrowPower = source["ThrowPower"]; + this.ThrowAccuracy = source["ThrowAccuracy"]; + this.KickAccuracy = source["KickAccuracy"]; + this.KickPower = source["KickPower"]; + this.PuntAccuracy = source["PuntAccuracy"]; + this.PuntPower = source["PuntPower"]; + this.Progression = source["Progression"]; + this.Discipline = source["Discipline"]; + this.PotentialGrade = source["PotentialGrade"]; + this.FreeAgency = source["FreeAgency"]; + this.Personality = source["Personality"]; + this.RecruitingBias = source["RecruitingBias"]; + this.WorkEthic = source["WorkEthic"]; + this.AcademicBias = source["AcademicBias"]; + this.IsInjured = source["IsInjured"]; + this.InjuryName = source["InjuryName"]; + this.InjuryType = source["InjuryType"]; + this.WeeksOfRecovery = source["WeeksOfRecovery"]; + this.InjuryReserve = source["InjuryReserve"]; + this.PrimeAge = source["PrimeAge"]; + this.Clutch = source["Clutch"]; + this.Shotgun = source["Shotgun"]; + this.PositionTwo = source["PositionTwo"]; + this.ArchetypeTwo = source["ArchetypeTwo"]; + this.RelativeID = source["RelativeID"]; + this.RelativeType = source["RelativeType"]; + this.Notes = source["Notes"]; + this.PlayerID = source["PlayerID"]; + this.TeamID = source["TeamID"]; + this.TeamAbbr = source["TeamAbbr"]; + this.HighSchool = source["HighSchool"]; + this.City = source["City"]; + this.State = source["State"]; + this.Year = source["Year"]; + this.IsRedshirt = source["IsRedshirt"]; + this.IsRedshirting = source["IsRedshirting"]; + this.HasGraduated = source["HasGraduated"]; + this.TransferStatus = source["TransferStatus"]; + this.TransferLikeliness = source["TransferLikeliness"]; + this.Stats = this.convertValues(source["Stats"], CollegePlayerStats); + this.SeasonStats = this.convertValues(source["SeasonStats"], CollegePlayerSeasonStats); + this.HasProgressed = source["HasProgressed"]; + this.WillDeclare = source["WillDeclare"]; + this.LegacyID = source["LegacyID"]; + 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 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; + 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; + AAV: 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.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.AAV = source["AAV"]; + 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 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; + } +} +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; + } +} +export class NFLTradeOptionObj { + ID: number; + TradeProposalID: number; + NFLTeamID: number; + NFLPlayerID: number; + NFLDraftPickID: number; + OptionType: string; + SalaryPercentage: number; + Player: NFLPlayer; + Draftpick: NFLDraftPick; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.TradeProposalID = source["TradeProposalID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLPlayerID = source["NFLPlayerID"]; + this.NFLDraftPickID = source["NFLDraftPickID"]; + this.OptionType = source["OptionType"]; + this.SalaryPercentage = source["SalaryPercentage"]; + this.Player = this.convertValues(source["Player"], NFLPlayer); + this.Draftpick = this.convertValues(source["Draftpick"], NFLDraftPick); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradeProposalDTO { + ID: number; + NFLTeamID: number; + NFLTeam: string; + RecepientTeamID: number; + RecepientTeam: string; + IsTradeAccepted: boolean; + IsTradeRejected: boolean; + NFLTeamTradeOptions: NFLTradeOptionObj[]; + RecepientTeamTradeOptions: NFLTradeOptionObj[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.NFLTeamID = source["NFLTeamID"]; + this.NFLTeam = source["NFLTeam"]; + this.RecepientTeamID = source["RecepientTeamID"]; + this.RecepientTeam = source["RecepientTeam"]; + this.IsTradeAccepted = source["IsTradeAccepted"]; + this.IsTradeRejected = source["IsTradeRejected"]; + this.NFLTeamTradeOptions = this.convertValues(source["NFLTeamTradeOptions"], NFLTradeOptionObj); + this.RecepientTeamTradeOptions = this.convertValues(source["RecepientTeamTradeOptions"], NFLTradeOptionObj); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} + + +export class NFLTeamProposals { + SentTradeProposals: NFLTradeProposalDTO[]; + ReceivedTradeProposals: NFLTradeProposalDTO[]; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.SentTradeProposals = this.convertValues(source["SentTradeProposals"], NFLTradeProposalDTO); + this.ReceivedTradeProposals = this.convertValues(source["ReceivedTradeProposals"], NFLTradeProposalDTO); + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradePreferences { + ID: number; + CreatedAt: Time; + UpdatedAt: Time; + DeletedAt: Time; + NFLTeamID: number; + Quarterbacks: boolean; + QuarterbackType: string; + Runningbacks: boolean; + RunningbackType: string; + Fullbacks: boolean; + FullbackType: string; + WideReceivers: boolean; + WideReceiverType: string; + TightEnds: boolean; + TightEndType: string; + OffensiveTackles: boolean; + OffensiveGuards: boolean; + Centers: boolean; + OffensiveTackleType: string; + OffensiveGuardType: string; + CenterType: string; + DefensiveTackles: boolean; + DefensiveTackleType: string; + DefensiveEnds: boolean; + DefensiveEndType: string; + OutsideLinebackers: boolean; + OutsideLinebackerType: string; + InsideLinebackers: boolean; + InsideLinebackerType: string; + Cornerbacks: boolean; + CornerbackType: string; + FreeSafeties: boolean; + FreeSafetyType: string; + StrongSafeties: boolean; + StrongSafetyType: string; + Kickers: boolean; + KickerType: string; + Punters: boolean; + PunterType: string; + DraftPicks: boolean; + DraftPickType: string; + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.ID = source["ID"]; + this.CreatedAt = this.convertValues(source["CreatedAt"], Time); + this.UpdatedAt = this.convertValues(source["UpdatedAt"], Time); + this.DeletedAt = this.convertValues(source["DeletedAt"], Time); + this.NFLTeamID = source["NFLTeamID"]; + this.Quarterbacks = source["Quarterbacks"]; + this.QuarterbackType = source["QuarterbackType"]; + this.Runningbacks = source["Runningbacks"]; + this.RunningbackType = source["RunningbackType"]; + this.Fullbacks = source["Fullbacks"]; + this.FullbackType = source["FullbackType"]; + this.WideReceivers = source["WideReceivers"]; + this.WideReceiverType = source["WideReceiverType"]; + this.TightEnds = source["TightEnds"]; + this.TightEndType = source["TightEndType"]; + this.OffensiveTackles = source["OffensiveTackles"]; + this.OffensiveGuards = source["OffensiveGuards"]; + this.Centers = source["Centers"]; + this.OffensiveTackleType = source["OffensiveTackleType"]; + this.OffensiveGuardType = source["OffensiveGuardType"]; + this.CenterType = source["CenterType"]; + this.DefensiveTackles = source["DefensiveTackles"]; + this.DefensiveTackleType = source["DefensiveTackleType"]; + this.DefensiveEnds = source["DefensiveEnds"]; + this.DefensiveEndType = source["DefensiveEndType"]; + this.OutsideLinebackers = source["OutsideLinebackers"]; + this.OutsideLinebackerType = source["OutsideLinebackerType"]; + this.InsideLinebackers = source["InsideLinebackers"]; + this.InsideLinebackerType = source["InsideLinebackerType"]; + this.Cornerbacks = source["Cornerbacks"]; + this.CornerbackType = source["CornerbackType"]; + this.FreeSafeties = source["FreeSafeties"]; + this.FreeSafetyType = source["FreeSafetyType"]; + this.StrongSafeties = source["StrongSafeties"]; + this.StrongSafetyType = source["StrongSafetyType"]; + this.Kickers = source["Kickers"]; + this.KickerType = source["KickerType"]; + this.Punters = source["Punters"]; + this.PunterType = source["PunterType"]; + this.DraftPicks = source["DraftPicks"]; + this.DraftPickType = source["DraftPickType"]; + } + + convertValues(a: any, classs: any, asMap: boolean = false): any { + if (!a) { + return a; + } + if (Array.isArray(a)) { + return (a as any[]).map(elem => this.convertValues(elem, classs)); + } else if ("object" === typeof a) { + if (asMap) { + for (const key of Object.keys(a)) { + a[key] = new classs(a[key]); + } + return a; + } + return new classs(a); + } + return a; + } +} +export class NFLTradePreferencesDTO { + NFLTeamID: number; + Quarterbacks: boolean; + 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; + } +} + +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[]; + + 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"]; + } +} +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"]; + } +} +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"]; + } +} +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; + } +} + +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"]; + } +} +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; + } +} + +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; + } +} + + +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"]; + } +} +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; + 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.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 diff --git a/main.go b/main.go index e7a2c64..23f47ec 100644 --- a/main.go +++ b/main.go @@ -173,7 +173,7 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/admin/import/nfl/draft", controller.Import2023DraftedPlayers).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/standings", controller.ImportCFBStandings).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/coaches", controller.GenerateCoachesForAITeams).Methods("GET") - // apiRouter.HandleFunc("/admin/import/cfb/games", controller.ImportCFBGames).Methods("GET") + apiRouter.HandleFunc("/admin/import/cfb/games", controller.ImportCFBGames).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/rivals", controller.ImportCFBRivals).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/teams", controller.ImportCFBTeams).Methods("GET") // apiRouter.HandleFunc("/admin/import/nfl/games", controller.ImportNFLGames).Methods("GET") @@ -289,6 +289,8 @@ func handleRequests() http.Handler { apiRouter.HandleFunc("/statistics/injured/players/", controller.GetInjuryReport).Methods("GET") apiRouter.HandleFunc("/statistics/interface/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetStatsPageContentForSeason).Methods("GET") apiRouter.HandleFunc("/statistics/interface/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetNFLStatsPageContent).Methods("GET") + apiRouter.HandleFunc("/statistics/interface/v2/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetCFBStatsPageContent).Methods("GET") + apiRouter.HandleFunc("/statistics/interface/v2/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetProStatsPageContent).Methods("GET") // apiRouter.HandleFunc("/statistics/reset/cfb/season/", controller.ResetCFBSeasonalStats).Methods("GET") // apiRouter.HandleFunc("/statistics/reset/nfl/season/", controller.ResetNFLSeasonalStats).Methods("GET") diff --git a/managers/ImportManager.go b/managers/ImportManager.go index d89afa5..634dd1a 100644 --- a/managers/ImportManager.go +++ b/managers/ImportManager.go @@ -560,7 +560,7 @@ func ImportUDFAs() { func ImportCFBGames() { db := dbprovider.GetInstance().GetDB() - path := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2025\\2025_cfb_games_conf.csv" + path := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2025\\2025_cfb_games_post.csv" gamesCSV := util.ReadCSV(path) diff --git a/managers/StatsManager.go b/managers/StatsManager.go index 43b28a7..3bf9f28 100644 --- a/managers/StatsManager.go +++ b/managers/StatsManager.go @@ -377,13 +377,7 @@ func GetALLCollegePlayerSeasonStatsBySeason(SeasonID string) []structs.CollegePl } func GetCollegePlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.CollegePlayerSeasonStats { - db := dbprovider.GetInstance().GetDB() - - var playerStats []structs.CollegePlayerSeasonStats - - db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) - - return playerStats + return repository.FindCollegePlayerSeasonStatsRecords(SeasonID, gameType) } func GetNFLTeamSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLTeamSeasonStats { @@ -407,13 +401,7 @@ func GetALLNFLPlayerSeasonStatsBySeason(SeasonID string) []structs.NFLPlayerSeas } func GetNFLPlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { - db := dbprovider.GetInstance().GetDB() - - var playerStats []structs.NFLPlayerSeasonStats - - db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) - - return playerStats + return repository.FindProPlayerSeasonStatsRecords(SeasonID, gameType) } func GetAllNFLPlayerSeasonStatsByPlayerID(playerID, gameType string) []structs.NFLPlayerSeasonStats { @@ -1937,3 +1925,138 @@ func GetCFBPlayerIndividualStatMapBySeason(SeasonID string) map[uint][]structs.C return statMap } + +func GetCollegePlayerGameStatsBySeason(SeasonID, gameType string) []structs.CollegePlayerStats { + return repository.FindCollegePlayerGameStatsRecords(SeasonID, gameType, "") +} + +func GetCollegeTeamGameStatsBySeason(SeasonID, gameType string) []structs.CollegeTeamStats { + return repository.FindCollegeTeamGameStatsRecords(SeasonID, gameType) +} + +func GetAllCollegeTeamSeasonStatsBySeason(SeasonID, gameType string) []structs.CollegeTeamSeasonStats { + return repository.FindCollegeTeamSeasonStatsRecords(SeasonID, gameType) +} + +func GetProPlayerGameStatsBySeason(SeasonID, gameType string) []structs.NFLPlayerStats { + return repository.FindProPlayerGameStatsRecords(SeasonID, gameType, "") +} + +func GetProTeamGameStatsBySeason(SeasonID, gameType string) []structs.NFLTeamStats { + return repository.FindProTeamGameStatsRecords(SeasonID, gameType) +} + +func GetProPlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { + return repository.FindProPlayerSeasonStatsRecords(SeasonID, gameType) +} + +func GetProTeamSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLTeamSeasonStats { + return repository.FindProTeamSeasonStatsRecords(SeasonID, gameType) +} + +func SearchCollegeStats(seasonID, weekID, viewType, gameType string) structs.SearchStatsResponse { + var ( + playerGameStats []structs.CollegePlayerStats + playerSeasonStats []structs.CollegePlayerSeasonStats + teamGameStats []structs.CollegeTeamStats + teamSeasonStats []structs.CollegeTeamSeasonStats + ) + + if viewType == "WEEK" { + playerGameStatsChan := make(chan []structs.CollegePlayerStats) + teamGameStatsChan := make(chan []structs.CollegeTeamStats) + go func() { + pGameStats := GetCollegePlayerGameStatsBySeason(seasonID, gameType) + playerGameStatsChan <- pGameStats + }() + + playerGameStats = <-playerGameStatsChan + close(playerGameStatsChan) + + go func() { + tGameStats := GetCollegeTeamGameStatsBySeason(seasonID, gameType) + teamGameStatsChan <- tGameStats + }() + teamGameStats = <-teamGameStatsChan + close(teamGameStatsChan) + } else { + playerSeasonStatsChan := make(chan []structs.CollegePlayerSeasonStats) + teamSeasonStatsChan := make(chan []structs.CollegeTeamSeasonStats) + + go func() { + pSeasonStats := GetCollegePlayerSeasonStatsBySeason(seasonID, gameType) + playerSeasonStatsChan <- pSeasonStats + }() + + playerSeasonStats = <-playerSeasonStatsChan + close(playerSeasonStatsChan) + + go func() { + tSeasonStats := GetAllCollegeTeamSeasonStatsBySeason(seasonID, gameType) + teamSeasonStatsChan <- tSeasonStats + }() + teamSeasonStats = <-teamSeasonStatsChan + close(teamSeasonStatsChan) + } + + return structs.SearchStatsResponse{ + CFBPlayerGameStats: playerGameStats, + CFBPlayerSeasonStats: playerSeasonStats, + CFBTeamGameStats: teamGameStats, + CFBTeamSeasonStats: teamSeasonStats, + } +} + +func SearchProStats(seasonID, weekID, viewType, gameType string) structs.SearchStatsResponse { + var ( + playerGameStats []structs.NFLPlayerStats + playerSeasonStats []structs.NFLPlayerSeasonStats + teamGameStats []structs.NFLTeamStats + teamSeasonStats []structs.NFLTeamSeasonStats + ) + + // Fetch week stats by season... will save time for the player + if viewType == "WEEK" { + playerGameStatsChan := make(chan []structs.NFLPlayerStats) + teamGameStatsChan := make(chan []structs.NFLTeamStats) + go func() { + pGameStats := GetProPlayerGameStatsBySeason(seasonID, gameType) + playerGameStatsChan <- pGameStats + }() + + playerGameStats = <-playerGameStatsChan + close(playerGameStatsChan) + + go func() { + tGameStats := GetProTeamGameStatsBySeason(seasonID, gameType) + teamGameStatsChan <- tGameStats + }() + teamGameStats = <-teamGameStatsChan + close(teamGameStatsChan) + } else { + playerSeasonStatsChan := make(chan []structs.NFLPlayerSeasonStats) + teamSeasonStatsChan := make(chan []structs.NFLTeamSeasonStats) + + go func() { + pSeasonStats := GetProPlayerSeasonStatsBySeason(seasonID, gameType) + playerSeasonStatsChan <- pSeasonStats + }() + + playerSeasonStats = <-playerSeasonStatsChan + close(playerSeasonStatsChan) + + go func() { + tSeasonStats := GetProTeamSeasonStatsBySeason(seasonID, gameType) + teamSeasonStatsChan <- tSeasonStats + }() + teamSeasonStats = <-teamSeasonStatsChan + close(teamSeasonStatsChan) + } + + return structs.SearchStatsResponse{ + NFLPlayerGameStats: playerGameStats, + NFLPlayerSeasonStats: playerSeasonStats, + NFLTeamGameStats: teamGameStats, + NFLTeamSeasonStats: teamSeasonStats, + } +} diff --git a/repository/StatsRepository.go b/repository/StatsRepository.go new file mode 100644 index 0000000..afc9586 --- /dev/null +++ b/repository/StatsRepository.go @@ -0,0 +1,151 @@ +package repository + +import ( + "github.com/CalebRose/SimFBA/dbprovider" + "github.com/CalebRose/SimFBA/structs" +) + +func FindCollegePlayerSeasonStatsRecords(SeasonID, gameType string) []structs.CollegePlayerSeasonStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.CollegePlayerSeasonStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + + return playerStats +} + +func FindProPlayerSeasonStatsRecords(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.NFLPlayerSeasonStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + + return playerStats +} + +func FindCollegePlayerGameStatsRecords(SeasonID, GameType, GameID string) []structs.CollegePlayerStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.CollegePlayerStats + + query := db.Model(&playerStats) + if len(SeasonID) > 0 { + query = query.Where("season_id = ?", SeasonID) + } + + if len(GameType) > 0 { + query = query.Where("game_type = ?", GameType) + } + + if len(GameID) > 0 { + query = query.Where("game_id = ?", GameID) + } + + query.Order("points desc").Find(&playerStats) + + return playerStats +} + +func FindProPlayerGameStatsRecords(SeasonID, GameType, GameID string) []structs.NFLPlayerStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.NFLPlayerStats + query := db.Model(&playerStats) + if len(SeasonID) > 0 { + query = query.Where("season_id = ?", SeasonID) + } + + if len(GameType) > 0 { + query = query.Where("game_type = ?", GameType) + } + + if len(GameID) > 0 { + query = query.Where("game_id = ?", GameID) + } + + query.Order("points desc").Find(&playerStats) + + return playerStats +} + +func FindCollegeTeamSeasonStatsRecords(SeasonID, gameType string) []structs.CollegeTeamSeasonStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats []structs.CollegeTeamSeasonStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + + return teamStats +} + +func FindProTeamSeasonStatsRecords(SeasonID, gameType string) []structs.NFLTeamSeasonStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats []structs.NFLTeamSeasonStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + + return teamStats +} + +func FindCollegeTeamGameStatsRecords(SeasonID, gameType string) []structs.CollegeTeamStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats []structs.CollegeTeamStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + + return teamStats +} + +func FindProTeamGameStatsRecords(SeasonID, gameType string) []structs.NFLTeamStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats []structs.NFLTeamStats + + db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + + return teamStats +} + +func FindCollegeTeamStatsRecordByGame(gameID, teamID string) structs.CollegeTeamStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats structs.CollegeTeamStats + + db.Order("points desc").Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) + + return teamStats +} + +func FindProTeamStatsRecordByGame(gameID, teamID string) structs.NFLTeamStats { + db := dbprovider.GetInstance().GetDB() + + var teamStats structs.NFLTeamStats + + db.Order("points desc").Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) + + return teamStats +} + +func FindCollegePlayerStatsRecordByGame(gameID string) []structs.CollegePlayerStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.CollegePlayerStats + + db.Order("points desc").Where("game_id = ?", gameID).Find(&playerStats) + + return playerStats +} + +func FindProPlayerStatsRecordByGame(gameID string) []structs.NFLPlayerStats { + db := dbprovider.GetInstance().GetDB() + + var playerStats []structs.NFLPlayerStats + + db.Order("points desc").Where("game_id = ?", gameID).Find(&playerStats) + + return playerStats +} diff --git a/structs/GameResultsResponse.go b/structs/GameResultsResponse.go index 55593a0..219ff66 100644 --- a/structs/GameResultsResponse.go +++ b/structs/GameResultsResponse.go @@ -123,3 +123,14 @@ type ScoreBoard struct { AwayOffensiveScheme string AwayDefensiveScheme string } + +type SearchStatsResponse struct { + CFBPlayerGameStats []CollegePlayerStats + CFBPlayerSeasonStats []CollegePlayerSeasonStats + CFBTeamGameStats []CollegeTeamStats + CFBTeamSeasonStats []CollegeTeamSeasonStats + NFLPlayerGameStats []NFLPlayerStats + NFLPlayerSeasonStats []NFLPlayerSeasonStats + NFLTeamGameStats []NFLTeamStats + NFLTeamSeasonStats []NFLTeamSeasonStats +} diff --git a/ts/footballModels.ts b/ts/footballModels.ts index 8f94b6d..1b6e6b1 100644 --- a/ts/footballModels.ts +++ b/ts/footballModels.ts @@ -5119,6 +5119,46 @@ export class CollegeTeamProfileData { 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; + } +} export class NFLRequest { ID: number; From 4b67c8bdab1363778b0e7343982e963e65acdb04 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sat, 21 Jun 2025 06:44:58 -0700 Subject: [PATCH 09/20] label change --- structs/Recruit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/Recruit.go b/structs/Recruit.go index c938121..1bb011c 100644 --- a/structs/Recruit.go +++ b/structs/Recruit.go @@ -50,7 +50,7 @@ func (r *Recruit) ApplyRecruitingStatus(num float64, threshold float64) { } else if percentage < 0.51 { r.RecruitingStatus = "Hearing Offers" } else if percentage < 0.76 { - r.RecruitingStatus = "Narrowing Down Offers" + r.RecruitingStatus = "Visiting Schools" } else if percentage < 0.96 { r.RecruitingStatus = "Finalizing Decisions" } else if percentage < 1 { From 23f8dd4d79970e3ab3943ad8136c7690e8419fd3 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 22 Jun 2025 07:43:14 -0700 Subject: [PATCH 10/20] Adding free agency data to bootstrap 3 --- managers/BootstrapManager.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index 499983f..ff131c6 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -54,6 +54,8 @@ type BootstrapDataThree struct { CollegeDepthChartMap map[uint]structs.CollegeTeamDepthChart FreeAgentOffers []structs.FreeAgencyOffer WaiverWireOffers []structs.NFLWaiverOffer + FreeAgents []structs.NFLPlayer + WaiverPlayers []structs.NFLPlayer ProNews []structs.NewsLog NFLDepthChartMap map[uint]structs.NFLDepthChart ContractMap map[uint]structs.NFLContract @@ -333,6 +335,8 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { proDepthChartMap map[uint]structs.NFLDepthChart contractMap map[uint]structs.NFLContract extensionMap map[uint]structs.NFLExtensionOffer + freeAgents []structs.NFLPlayer + waiverPlayers []structs.NFLPlayer freeAgentoffers []structs.FreeAgencyOffer waiverOffers []structs.NFLWaiverOffer ) @@ -356,7 +360,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { } if len(proID) > 0 && proID != "0" { - wg.Add(6) + wg.Add(8) go func() { defer wg.Done() @@ -389,6 +393,15 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { defer wg.Done() extensionMap = GetExtensionMap() }() + go func() { + defer wg.Done() + freeAgents = GetAllFreeAgents() + }() + + go func() { + defer wg.Done() + waiverPlayers = GetAllWaiverWirePlayers() + }() wg.Wait() } @@ -402,6 +415,8 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { NFLDepthChartMap: proDepthChartMap, ContractMap: contractMap, ExtensionMap: extensionMap, + FreeAgents: freeAgents, + WaiverPlayers: waiverPlayers, } } From 54e1833b72e91b070ae7220d54010f70ee33c01f Mon Sep 17 00:00:00 2001 From: CalebRose Date: Thu, 26 Jun 2025 11:21:49 -0700 Subject: [PATCH 11/20] Fixing next game logic --- data/2025/2025_nfl_postseason_games.csv | 14 ++++++++++++++ main.go | 3 ++- managers/AdminManager.go | 13 ++++++++----- managers/ImportManager.go | 6 ++++-- 4 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 data/2025/2025_nfl_postseason_games.csv diff --git a/data/2025/2025_nfl_postseason_games.csv b/data/2025/2025_nfl_postseason_games.csv new file mode 100644 index 0000000..2de42d3 --- /dev/null +++ b/data/2025/2025_nfl_postseason_games.csv @@ -0,0 +1,14 @@ +GameID,Season,Week,Home Team,Away Team,Listed Win,Other Win,Listed Score,Other Score,Conference Game,Division Game,Neutral Site,PreSeason,Conference Champ,Playoff,National Champ,Listed Coach,Other Coach,TimeSlot,Stadium,City,State,GameTitle,Info,NextGameID,HoA +987,2025,19,IND,PIT,0,0,0,0,0,0,0,0,0,1,0,npklemm,smackemz3,Sunday Noon,Lucas Oil Stadium,Indianapolis,IN,AFC Wildcard,,993,A +988,2025,19,DEN,TEN,0,0,0,0,0,0,0,0,0,1,0,alexfall861,Paradoxic,Sunday Noon,Empower Field at Mile High,Denver,CO,AFC Wildcard,,994,H +989,2025,19,CLE,JAX,0,0,0,0,0,0,0,0,0,1,0,Piercewise1,Weeze,Sunday Afternoon,FirstEnergy Stadium,Cleveland,OH,AFC Wildcard,,994,A +990,2025,19,GB,DAL,0,0,0,0,0,0,0,0,0,1,0,JC,Rocketcan,Sunday Noon,Lambeau Field,Green Bay,WI,NFC Wildcard,,995,A +991,2025,19,ATL,CAR,0,0,0,0,0,0,0,0,0,1,0,mahrowkeen,Sarge,Sunday Noon,Mercedes-Benz Stadium,Atlanta,GA,NFC Wildcard,,996,H +992,2025,19,LAR,PHI,0,0,0,0,0,0,0,0,0,1,0,Vivid,acewulf,Sunday Afternoon,SoFi Stadium,Inglewood,CA,NFC Wildcard,,996,A +993,2025,20,MIA,,0,0,0,0,0,0,0,0,0,1,0,TheLiberator,#N/A,Sunday Noon,Hard Rock Stadium,Miami Gardens,FL,AFC Division Round,,997,H +994,2025,20,,,0,0,0,0,0,0,0,0,0,1,0,#N/A,#N/A,Sunday Afternoon,#N/A,#N/A,#N/A,AFC Division Round,,997,A +995,2025,20,WAS,,0,0,0,0,0,0,0,0,0,1,0,Ewade,#N/A,Sunday Noon,FedExField,Landover,MD,NFC Division Round,,998,H +996,2025,20,,,0,0,0,0,0,0,0,0,0,1,0,#N/A,#N/A,Sunday Afternoon,#N/A,#N/A,#N/A,NFC Division Round,,998,A +997,2025,21,,,0,0,0,0,0,0,0,0,0,1,0,#N/A,#N/A,Sunday Noon,#N/A,#N/A,#N/A,2024 AFC Championship,,999,H +998,2025,21,,,0,0,0,0,0,0,0,0,0,1,0,#N/A,#N/A,Sunday Afternoon,#N/A,#N/A,#N/A,2024 NFC Championship,,999,A +999,2025,22,,,0,0,0,0,0,0,1,0,0,1,1,#N/A,#N/A,Sunday Night,#N/A,#N/A,#N/A,2024 SimNFL Super Bowl,,0, diff --git a/main.go b/main.go index 23f47ec..9b27b0e 100644 --- a/main.go +++ b/main.go @@ -173,7 +173,8 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/admin/import/nfl/draft", controller.Import2023DraftedPlayers).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/standings", controller.ImportCFBStandings).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/coaches", controller.GenerateCoachesForAITeams).Methods("GET") - apiRouter.HandleFunc("/admin/import/cfb/games", controller.ImportCFBGames).Methods("GET") + // apiRouter.HandleFunc("/admin/import/cfb/games", controller.ImportCFBGames).Methods("GET") + // apiRouter.HandleFunc("/admin/import/cfb/games", controller.ImportCFBGames).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/rivals", controller.ImportCFBRivals).Methods("GET") // apiRouter.HandleFunc("/admin/import/cfb/teams", controller.ImportCFBTeams).Methods("GET") // apiRouter.HandleFunc("/admin/import/nfl/games", controller.ImportNFLGames).Methods("GET") diff --git a/managers/AdminManager.go b/managers/AdminManager.go index 296858c..2b35651 100644 --- a/managers/AdminManager.go +++ b/managers/AdminManager.go @@ -269,10 +269,13 @@ func SyncTimeslot(timeslot string) { isDomed := false if game.HomeTeamWin { - stadium = game.Stadium - city = game.City - state = game.State - stadiumID = int(game.StadiumID) + homeTeam := GetTeamByTeamID(strconv.Itoa(homeTeamID)) + stadiumRecord := GetStadiumByStadiumID(strconv.Itoa(int(homeTeam.StadiumID))) + stadium = homeTeam.Stadium + city = homeTeam.City + state = homeTeam.State + stadiumID = int(homeTeam.StadiumID) + isDomed = stadiumRecord.IsDomed } else { awayTeam := GetTeamByTeamID(strconv.Itoa(awayTeamID)) stadiumRecord := GetStadiumByStadiumID(strconv.Itoa(int(awayTeam.StadiumID))) @@ -282,7 +285,7 @@ func SyncTimeslot(timeslot string) { stadiumID = int(awayTeam.StadiumID) isDomed = stadiumRecord.IsDomed } - if game.NextGameHOA == "H" && (nextGame.City == "" || nextGame.City == "N/A") { + if game.NextGameHOA == "H" && !nextGame.IsNationalChampionship && !nextGame.IsNeutral { nextGame.AddLocation(stadiumID, stadium, city, state, isDomed) } } diff --git a/managers/ImportManager.go b/managers/ImportManager.go index 634dd1a..efbf3c5 100644 --- a/managers/ImportManager.go +++ b/managers/ImportManager.go @@ -656,7 +656,7 @@ func ImportCFBGames() { func ImportNFLGames() { db := dbprovider.GetInstance().GetDB() - path := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2025\\2025_nfl_games.csv" + path := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2025\\2025_nfl_postseason_games.csv" gamesCSV := util.ReadCSV(path) @@ -681,7 +681,7 @@ func ImportNFLGames() { week := util.ConvertStringToInt(row[2]) weekID := week + 23 // Week 43 is week 0 of the 2024 Season if gameID > 381 { - weekID = week + 26 + weekID = week + 51 } homeTeamAbbr := row[3] awayTeamAbbr := row[4] @@ -750,6 +750,8 @@ func ImportNFLGames() { db.Create(&game) } + + GenerateWeatherForGames() } func ImportCFBTeams() { From fe6fc1cfd79187c678c8afd658056cd533db1b6e Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Jun 2025 23:43:20 -0500 Subject: [PATCH 12/20] easyjson, move facedata to bootstrap 3 --- controller/BootstrapController.go | 25 +- go.mod | 6 +- go.sum | 4 + managers/BootstrapManager.go | 35 +- managers/BootstrapManager_easyjson.go | 18462 ++++++++++++++++++++++++ 5 files changed, 18512 insertions(+), 20 deletions(-) create mode 100644 managers/BootstrapManager_easyjson.go diff --git a/controller/BootstrapController.go b/controller/BootstrapController.go index a3b5507..350d448 100644 --- a/controller/BootstrapController.go +++ b/controller/BootstrapController.go @@ -7,16 +7,18 @@ import ( "github.com/CalebRose/SimFBA/managers" "github.com/gorilla/mux" + "github.com/mailru/easyjson" ) func BootstrapTeamData(w http.ResponseWriter, r *http.Request) { data := managers.GetTeamsBootstrap() w.Header().Set("Content-Type", "application/json") - err := json.NewEncoder(w).Encode(data) + teamData, err := easyjson.Marshal(data) if err != nil { log.Printf("Failed to encode JSON response: %v", err) http.Error(w, "Internal Server Error", http.StatusInternalServerError) } + w.Write(teamData) } func FirstBootstrapFootballData(w http.ResponseWriter, r *http.Request) { @@ -25,7 +27,12 @@ func FirstBootstrapFootballData(w http.ResponseWriter, r *http.Request) { collegeID := vars["collegeID"] proID := vars["proID"] data := managers.GetFirstBootstrapData(collegeID, proID) - json.NewEncoder(w).Encode(data) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) } func SecondBootstrapFootballData(w http.ResponseWriter, r *http.Request) { @@ -34,7 +41,12 @@ func SecondBootstrapFootballData(w http.ResponseWriter, r *http.Request) { collegeID := vars["collegeID"] proID := vars["proID"] data := managers.GetSecondBootstrapData(collegeID, proID) - json.NewEncoder(w).Encode(data) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) } func ThirdBootstrapFootballData(w http.ResponseWriter, r *http.Request) { @@ -43,7 +55,12 @@ func ThirdBootstrapFootballData(w http.ResponseWriter, r *http.Request) { collegeID := vars["collegeID"] proID := vars["proID"] data := managers.GetThirdBootstrapData(collegeID, proID) - json.NewEncoder(w).Encode(data) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) } func GetCollegeHistoryProfile(w http.ResponseWriter, r *http.Request) { diff --git a/go.mod b/go.mod index 33dbebb..f3b6fdb 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,11 @@ require ( gorm.io/gorm v1.25.5 ) -require github.com/tkrajina/go-reflector v0.5.5 // indirect +require ( + github.com/josharian/intern v1.0.0 // indirect + github.com/mailru/easyjson v0.9.0 // indirect + github.com/tkrajina/go-reflector v0.5.5 // indirect +) require ( github.com/felixge/httpsnoop v1.0.4 // indirect diff --git a/go.sum b/go.sum index 066b8f5..c64b96e 100644 --- a/go.sum +++ b/go.sum @@ -75,6 +75,8 @@ github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/ github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= @@ -89,6 +91,8 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/lib/pq v1.1.1 h1:sJZmqHoEaY7f+NPP8pgLB/WxulyR3fewgCM2qaSlBb4= github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4= +github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= github.com/mattn/go-sqlite3 v1.14.0 h1:mLyGNKR8+Vv9CAU7PphKa2hkEqxxhn8i32J6FPj1/QA= diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index ff131c6..a6e9033 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -60,6 +60,7 @@ type BootstrapDataThree struct { NFLDepthChartMap map[uint]structs.NFLDepthChart ContractMap map[uint]structs.NFLContract ExtensionMap map[uint]structs.NFLExtensionOffer + FaceData map[uint]structs.FaceDataResponse } func GetTeamsBootstrap() BootstrapData { @@ -104,7 +105,6 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { topPassers []structs.CollegePlayer topRushers []structs.CollegePlayer topReceivers []structs.CollegePlayer - faceDataMap map[uint]structs.FaceDataResponse ) // Professional Data @@ -174,12 +174,6 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { }() } - wg.Add(1) - go func() { - defer wg.Done() - faceDataMap = GetAllFaces() - }() - wg.Wait() return BootstrapData{ CollegeTeam: collegeTeam, @@ -196,7 +190,6 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { TopCFBPassers: topPassers, TopCFBRushers: topRushers, TopCFBReceivers: topReceivers, - FaceData: faceDataMap, } } @@ -327,6 +320,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { recruits []structs.Croot recruitProfiles []structs.RecruitPlayerProfile collegeDepthChartMap map[uint]structs.CollegeTeamDepthChart + faceDataMap map[uint]structs.FaceDataResponse ) // Professional Data @@ -403,8 +397,16 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { waiverPlayers = GetAllWaiverWirePlayers() }() - wg.Wait() } + + wg.Add(1) + go func() { + defer wg.Done() + faceDataMap = GetAllFaces() + }() + + wg.Wait() + return BootstrapDataThree{ CollegeDepthChartMap: collegeDepthChartMap, Recruits: recruits, @@ -417,21 +419,23 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { ExtensionMap: extensionMap, FreeAgents: freeAgents, WaiverPlayers: waiverPlayers, + FaceData: faceDataMap, } } func getCFBOrderedListByStatType(statType string, teamID uint, CollegeStats []structs.CollegePlayerSeasonStats, collegePlayerMap map[uint]structs.CollegePlayer) []structs.CollegePlayer { orderedStats := CollegeStats resultList := []structs.CollegePlayer{} - if statType == "PASSING" { + switch statType { + case "PASSING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].PassingTDs > orderedStats[j].PassingTDs }) - } else if statType == "RUSHING" { + case "RUSHING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].RushingYards > orderedStats[j].RushingYards }) - } else if statType == "RECEIVING" { + case "RECEIVING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].ReceivingYards > orderedStats[j].ReceivingYards }) @@ -466,15 +470,16 @@ func getCFBOrderedListByStatType(statType string, teamID uint, CollegeStats []st func getNFLOrderedListByStatType(statType string, teamID uint, CollegeStats []structs.NFLPlayerSeasonStats, proPlayerMap map[uint]structs.NFLPlayer) []structs.NFLPlayer { orderedStats := CollegeStats resultList := []structs.NFLPlayer{} - if statType == "PASSING" { + switch statType { + case "PASSING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].PassingTDs > orderedStats[j].PassingTDs }) - } else if statType == "RUSHING" { + case "RUSHING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].RushingYards > orderedStats[j].RushingYards }) - } else if statType == "RECEIVING" { + case "RECEIVING": sort.Slice(orderedStats[:], func(i, j int) bool { return orderedStats[i].ReceivingYards > orderedStats[j].ReceivingYards }) diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go new file mode 100644 index 0000000..f843ae5 --- /dev/null +++ b/managers/BootstrapManager_easyjson.go @@ -0,0 +1,18462 @@ +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. + +package managers + +import ( + sql "database/sql" + json "encoding/json" + structs "github.com/CalebRose/SimFBA/structs" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" + time "time" +) + +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) + +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(in *jlexer.Lexer, out *CollegeTeamProfileData) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CareerStats": + if in.IsNull() { + in.Skip() + out.CareerStats = nil + } else { + in.Delim('[') + if out.CareerStats == nil { + if !in.IsDelim(']') { + out.CareerStats = make([]structs.CollegePlayerSeasonStats, 0, 0) + } else { + out.CareerStats = []structs.CollegePlayerSeasonStats{} + } + } else { + out.CareerStats = (out.CareerStats)[:0] + } + for !in.IsDelim(']') { + var v1 structs.CollegePlayerSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &v1) + out.CareerStats = append(out.CareerStats, v1) + in.WantComma() + } + in.Delim(']') + } + case "CollegeStandings": + if in.IsNull() { + in.Skip() + out.CollegeStandings = nil + } else { + in.Delim('[') + if out.CollegeStandings == nil { + if !in.IsDelim(']') { + out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.CollegeStandings = []structs.CollegeStandings{} + } + } else { + out.CollegeStandings = (out.CollegeStandings)[:0] + } + for !in.IsDelim(']') { + var v2 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v2) + out.CollegeStandings = append(out.CollegeStandings, v2) + in.WantComma() + } + in.Delim(']') + } + case "Rivalries": + if in.IsNull() { + in.Skip() + out.Rivalries = nil + } else { + in.Delim('[') + if out.Rivalries == nil { + if !in.IsDelim(']') { + out.Rivalries = make([]structs.FlexComparisonModel, 0, 0) + } else { + out.Rivalries = []structs.FlexComparisonModel{} + } + } else { + out.Rivalries = (out.Rivalries)[:0] + } + for !in.IsDelim(']') { + var v3 structs.FlexComparisonModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in, &v3) + out.Rivalries = append(out.Rivalries, v3) + in.WantComma() + } + in.Delim(']') + } + case "PlayerMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.PlayerMap = make(map[uint]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v4 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v4) + (out.PlayerMap)[key] = v4 + in.WantComma() + } + in.Delim('}') + } + case "CollegeGames": + if in.IsNull() { + in.Skip() + out.CollegeGames = nil + } else { + in.Delim('[') + if out.CollegeGames == nil { + if !in.IsDelim(']') { + out.CollegeGames = make([]structs.CollegeGame, 0, 0) + } else { + out.CollegeGames = []structs.CollegeGame{} + } + } else { + out.CollegeGames = (out.CollegeGames)[:0] + } + for !in.IsDelim(']') { + var v5 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v5) + out.CollegeGames = append(out.CollegeGames, v5) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(out *jwriter.Writer, in CollegeTeamProfileData) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CareerStats\":" + out.RawString(prefix[1:]) + if in.CareerStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.CareerStats { + if v6 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, v7) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeStandings\":" + out.RawString(prefix) + if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.CollegeStandings { + if v8 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v9) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Rivalries\":" + out.RawString(prefix) + if in.Rivalries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v10, v11 := range in.Rivalries { + if v10 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out, v11) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PlayerMap\":" + out.RawString(prefix) + if in.PlayerMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v12First := true + for v12Name, v12Value := range in.PlayerMap { + if v12First { + v12First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v12Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v12Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeGames\":" + out.RawString(prefix) + if in.CollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v13, v14 := range in.CollegeGames { + if v13 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v14) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CollegeTeamProfileData) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CollegeTeamProfileData) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CollegeTeamProfileData) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CollegeTeamProfileData) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in *jlexer.Lexer, out *structs.CollegeGame) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "HomeTeamRank": + out.HomeTeamRank = uint(in.Uint()) + case "HomeTeamID": + out.HomeTeamID = int(in.Int()) + case "HomeTeam": + out.HomeTeam = string(in.String()) + case "HomeTeamCoach": + out.HomeTeamCoach = string(in.String()) + case "HomeTeamWin": + out.HomeTeamWin = bool(in.Bool()) + case "AwayTeamRank": + out.AwayTeamRank = uint(in.Uint()) + case "AwayTeamID": + out.AwayTeamID = int(in.Int()) + case "AwayTeam": + out.AwayTeam = string(in.String()) + case "AwayTeamCoach": + out.AwayTeamCoach = string(in.String()) + case "AwayTeamWin": + out.AwayTeamWin = bool(in.Bool()) + case "MVP": + out.MVP = string(in.String()) + case "HomeTeamScore": + out.HomeTeamScore = int(in.Int()) + case "AwayTeamScore": + out.AwayTeamScore = int(in.Int()) + case "TimeSlot": + out.TimeSlot = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Region": + out.Region = string(in.String()) + case "LowTemp": + out.LowTemp = float64(in.Float64()) + case "HighTemp": + out.HighTemp = float64(in.Float64()) + case "GameTemp": + out.GameTemp = float64(in.Float64()) + case "Cloud": + out.Cloud = string(in.String()) + case "Precip": + out.Precip = string(in.String()) + case "WindSpeed": + out.WindSpeed = float64(in.Float64()) + case "WindCategory": + out.WindCategory = string(in.String()) + case "IsNeutral": + out.IsNeutral = bool(in.Bool()) + case "IsDomed": + out.IsDomed = bool(in.Bool()) + case "IsNightGame": + out.IsNightGame = bool(in.Bool()) + case "IsConference": + out.IsConference = bool(in.Bool()) + case "IsDivisional": + out.IsDivisional = bool(in.Bool()) + case "IsConferenceChampionship": + out.IsConferenceChampionship = bool(in.Bool()) + case "IsBowlGame": + out.IsBowlGame = bool(in.Bool()) + case "IsPlayoffGame": + out.IsPlayoffGame = bool(in.Bool()) + case "IsNationalChampionship": + out.IsNationalChampionship = bool(in.Bool()) + case "IsRivalryGame": + out.IsRivalryGame = bool(in.Bool()) + case "GameComplete": + out.GameComplete = bool(in.Bool()) + case "IsSpringGame": + out.IsSpringGame = bool(in.Bool()) + case "GameTitle": + out.GameTitle = string(in.String()) + case "NextGameID": + out.NextGameID = uint(in.Uint()) + case "NextGameHOA": + out.NextGameHOA = string(in.String()) + case "HomePreviousBye": + out.HomePreviousBye = bool(in.Bool()) + case "AwayPreviousBye": + out.AwayPreviousBye = bool(in.Bool()) + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out *jwriter.Writer, in structs.CollegeGame) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"HomeTeamRank\":" + out.RawString(prefix) + out.Uint(uint(in.HomeTeamRank)) + } + { + const prefix string = ",\"HomeTeamID\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamID)) + } + { + const prefix string = ",\"HomeTeam\":" + out.RawString(prefix) + out.String(string(in.HomeTeam)) + } + { + const prefix string = ",\"HomeTeamCoach\":" + out.RawString(prefix) + out.String(string(in.HomeTeamCoach)) + } + { + const prefix string = ",\"HomeTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.HomeTeamWin)) + } + { + const prefix string = ",\"AwayTeamRank\":" + out.RawString(prefix) + out.Uint(uint(in.AwayTeamRank)) + } + { + const prefix string = ",\"AwayTeamID\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamID)) + } + { + const prefix string = ",\"AwayTeam\":" + out.RawString(prefix) + out.String(string(in.AwayTeam)) + } + { + const prefix string = ",\"AwayTeamCoach\":" + out.RawString(prefix) + out.String(string(in.AwayTeamCoach)) + } + { + const prefix string = ",\"AwayTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.AwayTeamWin)) + } + { + const prefix string = ",\"MVP\":" + out.RawString(prefix) + out.String(string(in.MVP)) + } + { + const prefix string = ",\"HomeTeamScore\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamScore)) + } + { + const prefix string = ",\"AwayTeamScore\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamScore)) + } + { + const prefix string = ",\"TimeSlot\":" + out.RawString(prefix) + out.String(string(in.TimeSlot)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Region\":" + out.RawString(prefix) + out.String(string(in.Region)) + } + { + const prefix string = ",\"LowTemp\":" + out.RawString(prefix) + out.Float64(float64(in.LowTemp)) + } + { + const prefix string = ",\"HighTemp\":" + out.RawString(prefix) + out.Float64(float64(in.HighTemp)) + } + { + const prefix string = ",\"GameTemp\":" + out.RawString(prefix) + out.Float64(float64(in.GameTemp)) + } + { + const prefix string = ",\"Cloud\":" + out.RawString(prefix) + out.String(string(in.Cloud)) + } + { + const prefix string = ",\"Precip\":" + out.RawString(prefix) + out.String(string(in.Precip)) + } + { + const prefix string = ",\"WindSpeed\":" + out.RawString(prefix) + out.Float64(float64(in.WindSpeed)) + } + { + const prefix string = ",\"WindCategory\":" + out.RawString(prefix) + out.String(string(in.WindCategory)) + } + { + const prefix string = ",\"IsNeutral\":" + out.RawString(prefix) + out.Bool(bool(in.IsNeutral)) + } + { + const prefix string = ",\"IsDomed\":" + out.RawString(prefix) + out.Bool(bool(in.IsDomed)) + } + { + const prefix string = ",\"IsNightGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsNightGame)) + } + { + const prefix string = ",\"IsConference\":" + out.RawString(prefix) + out.Bool(bool(in.IsConference)) + } + { + const prefix string = ",\"IsDivisional\":" + out.RawString(prefix) + out.Bool(bool(in.IsDivisional)) + } + { + const prefix string = ",\"IsConferenceChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsConferenceChampionship)) + } + { + const prefix string = ",\"IsBowlGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsBowlGame)) + } + { + const prefix string = ",\"IsPlayoffGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPlayoffGame)) + } + { + const prefix string = ",\"IsNationalChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsNationalChampionship)) + } + { + const prefix string = ",\"IsRivalryGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsRivalryGame)) + } + { + const prefix string = ",\"GameComplete\":" + out.RawString(prefix) + out.Bool(bool(in.GameComplete)) + } + { + const prefix string = ",\"IsSpringGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsSpringGame)) + } + { + const prefix string = ",\"GameTitle\":" + out.RawString(prefix) + out.String(string(in.GameTitle)) + } + { + const prefix string = ",\"NextGameID\":" + out.RawString(prefix) + out.Uint(uint(in.NextGameID)) + } + { + const prefix string = ",\"NextGameHOA\":" + out.RawString(prefix) + out.String(string(in.NextGameHOA)) + } + { + const prefix string = ",\"HomePreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.HomePreviousBye)) + } + { + const prefix string = ",\"AwayPreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.AwayPreviousBye)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in *jlexer.Lexer, out *structs.CollegePlayer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "IsRedshirting": + out.IsRedshirting = bool(in.Bool()) + case "HasGraduated": + out.HasGraduated = bool(in.Bool()) + case "TransferStatus": + out.TransferStatus = int(in.Int()) + case "TransferLikeliness": + out.TransferLikeliness = string(in.String()) + case "Stats": + if in.IsNull() { + in.Skip() + out.Stats = nil + } else { + in.Delim('[') + if out.Stats == nil { + if !in.IsDelim(']') { + out.Stats = make([]structs.CollegePlayerStats, 0, 0) + } else { + out.Stats = []structs.CollegePlayerStats{} + } + } else { + out.Stats = (out.Stats)[:0] + } + for !in.IsDelim(']') { + var v15 structs.CollegePlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v15) + out.Stats = append(out.Stats, v15) + in.WantComma() + } + in.Delim(']') + } + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &out.SeasonStats) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "WillDeclare": + out.WillDeclare = bool(in.Bool()) + case "LegacyID": + out.LegacyID = uint(in.Uint()) + case "Profiles": + if in.IsNull() { + in.Skip() + out.Profiles = nil + } else { + in.Delim('[') + if out.Profiles == nil { + if !in.IsDelim(']') { + out.Profiles = make([]structs.TransferPortalProfile, 0, 0) + } else { + out.Profiles = []structs.TransferPortalProfile{} + } + } else { + out.Profiles = (out.Profiles)[:0] + } + for !in.IsDelim(']') { + var v16 structs.TransferPortalProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v16) + out.Profiles = append(out.Profiles, v16) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out *jwriter.Writer, in structs.CollegePlayer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"IsRedshirting\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirting)) + } + { + const prefix string = ",\"HasGraduated\":" + out.RawString(prefix) + out.Bool(bool(in.HasGraduated)) + } + { + const prefix string = ",\"TransferStatus\":" + out.RawString(prefix) + out.Int(int(in.TransferStatus)) + } + { + const prefix string = ",\"TransferLikeliness\":" + out.RawString(prefix) + out.String(string(in.TransferLikeliness)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.Stats { + if v17 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v18) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"SeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, in.SeasonStats) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"WillDeclare\":" + out.RawString(prefix) + out.Bool(bool(in.WillDeclare)) + } + { + const prefix string = ",\"LegacyID\":" + out.RawString(prefix) + out.Uint(uint(in.LegacyID)) + } + { + const prefix string = ",\"Profiles\":" + out.RawString(prefix) + if in.Profiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v19, v20 := range in.Profiles { + if v19 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v20) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, out *structs.TransferPortalProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "ProfileID": + out.ProfileID = uint(in.Uint()) + case "PromiseID": + easyjson83226b63DecodeDatabaseSql(in, &out.PromiseID) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "TotalPoints": + out.TotalPoints = float64(in.Float64()) + case "CurrentWeeksPoints": + out.CurrentWeeksPoints = int(in.Int()) + case "PreviouslySpentPoints": + out.PreviouslySpentPoints = int(in.Int()) + case "SpendingCount": + out.SpendingCount = int(in.Int()) + case "RemovedFromBoard": + out.RemovedFromBoard = bool(in.Bool()) + case "RolledOnPromise": + out.RolledOnPromise = bool(in.Bool()) + case "LockProfile": + out.LockProfile = bool(in.Bool()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "CollegePlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &out.CollegePlayer) + case "Promise": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &out.Promise) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, in structs.TransferPortalProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Uint(uint(in.ProfileID)) + } + { + const prefix string = ",\"PromiseID\":" + out.RawString(prefix) + easyjson83226b63EncodeDatabaseSql(out, in.PromiseID) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"TotalPoints\":" + out.RawString(prefix) + out.Float64(float64(in.TotalPoints)) + } + { + const prefix string = ",\"CurrentWeeksPoints\":" + out.RawString(prefix) + out.Int(int(in.CurrentWeeksPoints)) + } + { + const prefix string = ",\"PreviouslySpentPoints\":" + out.RawString(prefix) + out.Int(int(in.PreviouslySpentPoints)) + } + { + const prefix string = ",\"SpendingCount\":" + out.RawString(prefix) + out.Int(int(in.SpendingCount)) + } + { + const prefix string = ",\"RemovedFromBoard\":" + out.RawString(prefix) + out.Bool(bool(in.RemovedFromBoard)) + } + { + const prefix string = ",\"RolledOnPromise\":" + out.RawString(prefix) + out.Bool(bool(in.RolledOnPromise)) + } + { + const prefix string = ",\"LockProfile\":" + out.RawString(prefix) + out.Bool(bool(in.LockProfile)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"CollegePlayer\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, in.CollegePlayer) + } + { + const prefix string = ",\"Promise\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, in.Promise) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, out *structs.CollegePromise) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "PromiseType": + out.PromiseType = string(in.String()) + case "PromiseWeight": + out.PromiseWeight = string(in.String()) + case "Benchmark": + out.Benchmark = int(in.Int()) + case "BenchmarkStr": + out.BenchmarkStr = string(in.String()) + case "PromiseMade": + out.PromiseMade = bool(in.Bool()) + case "IsFullfilled": + out.IsFullfilled = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out *jwriter.Writer, in structs.CollegePromise) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"PromiseType\":" + out.RawString(prefix) + out.String(string(in.PromiseType)) + } + { + const prefix string = ",\"PromiseWeight\":" + out.RawString(prefix) + out.String(string(in.PromiseWeight)) + } + { + const prefix string = ",\"Benchmark\":" + out.RawString(prefix) + out.Int(int(in.Benchmark)) + } + { + const prefix string = ",\"BenchmarkStr\":" + out.RawString(prefix) + out.String(string(in.BenchmarkStr)) + } + { + const prefix string = ",\"PromiseMade\":" + out.RawString(prefix) + out.Bool(bool(in.PromiseMade)) + } + { + const prefix string = ",\"IsFullfilled\":" + out.RawString(prefix) + out.Bool(bool(in.IsFullfilled)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeDatabaseSql(in *jlexer.Lexer, out *sql.NullInt64) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Int64": + out.Int64 = int64(in.Int64()) + case "Valid": + out.Valid = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeDatabaseSql(out *jwriter.Writer, in sql.NullInt64) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Int64\":" + out.RawString(prefix[1:]) + out.Int64(int64(in.Int64)) + } + { + const prefix string = ",\"Valid\":" + out.RawString(prefix) + out.Bool(bool(in.Valid)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in *jlexer.Lexer, out *structs.CollegePlayerStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegePlayerID": + out.CollegePlayerID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, in structs.CollegePlayerStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.CollegePlayerID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in *jlexer.Lexer, out *structs.FlexComparisonModel) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamOneID": + out.TeamOneID = uint(in.Uint()) + case "TeamOne": + out.TeamOne = string(in.String()) + case "TeamOneWins": + out.TeamOneWins = uint(in.Uint()) + case "TeamOneLosses": + out.TeamOneLosses = uint(in.Uint()) + case "TeamOneStreak": + out.TeamOneStreak = uint(in.Uint()) + case "TeamOneMSeason": + out.TeamOneMSeason = int(in.Int()) + case "TeamOneMScore": + out.TeamOneMScore = string(in.String()) + case "TeamTwoID": + out.TeamTwoID = uint(in.Uint()) + case "TeamTwo": + out.TeamTwo = string(in.String()) + case "TeamTwoWins": + out.TeamTwoWins = uint(in.Uint()) + case "TeamTwoLosses": + out.TeamTwoLosses = uint(in.Uint()) + case "TeamTwoStreak": + out.TeamTwoStreak = uint(in.Uint()) + case "TeamTwoMSeason": + out.TeamTwoMSeason = int(in.Int()) + case "TeamTwoMScore": + out.TeamTwoMScore = string(in.String()) + case "CurrentStreak": + out.CurrentStreak = uint(in.Uint()) + case "LatestWin": + out.LatestWin = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out *jwriter.Writer, in structs.FlexComparisonModel) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamOneID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamOneID)) + } + { + const prefix string = ",\"TeamOne\":" + out.RawString(prefix) + out.String(string(in.TeamOne)) + } + { + const prefix string = ",\"TeamOneWins\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneWins)) + } + { + const prefix string = ",\"TeamOneLosses\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneLosses)) + } + { + const prefix string = ",\"TeamOneStreak\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneStreak)) + } + { + const prefix string = ",\"TeamOneMSeason\":" + out.RawString(prefix) + out.Int(int(in.TeamOneMSeason)) + } + { + const prefix string = ",\"TeamOneMScore\":" + out.RawString(prefix) + out.String(string(in.TeamOneMScore)) + } + { + const prefix string = ",\"TeamTwoID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoID)) + } + { + const prefix string = ",\"TeamTwo\":" + out.RawString(prefix) + out.String(string(in.TeamTwo)) + } + { + const prefix string = ",\"TeamTwoWins\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoWins)) + } + { + const prefix string = ",\"TeamTwoLosses\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoLosses)) + } + { + const prefix string = ",\"TeamTwoStreak\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoStreak)) + } + { + const prefix string = ",\"TeamTwoMSeason\":" + out.RawString(prefix) + out.Int(int(in.TeamTwoMSeason)) + } + { + const prefix string = ",\"TeamTwoMScore\":" + out.RawString(prefix) + out.String(string(in.TeamTwoMScore)) + } + { + const prefix string = ",\"CurrentStreak\":" + out.RawString(prefix) + out.Uint(uint(in.CurrentStreak)) + } + { + const prefix string = ",\"LatestWin\":" + out.RawString(prefix) + out.String(string(in.LatestWin)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in *jlexer.Lexer, out *structs.CollegeStandings) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "TeamName": + out.TeamName = string(in.String()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "Season": + out.Season = int(in.Int()) + case "LeagueID": + out.LeagueID = uint(in.Uint()) + case "LeagueName": + out.LeagueName = string(in.String()) + case "ConferenceID": + out.ConferenceID = int(in.Int()) + case "ConferenceName": + out.ConferenceName = string(in.String()) + case "DivisionID": + out.DivisionID = int(in.Int()) + case "PostSeasonStatus": + out.PostSeasonStatus = string(in.String()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "Rank": + out.Rank = uint(in.Uint()) + case "TotalWins": + out.TotalWins = int(in.Int()) + case "TotalLosses": + out.TotalLosses = int(in.Int()) + case "ConferenceWins": + out.ConferenceWins = int(in.Int()) + case "ConferenceLosses": + out.ConferenceLosses = int(in.Int()) + case "RankedWins": + out.RankedWins = int(in.Int()) + case "RankedLosses": + out.RankedLosses = int(in.Int()) + case "PointsFor": + out.PointsFor = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "Streak": + out.Streak = int(in.Int()) + case "HomeWins": + out.HomeWins = int(in.Int()) + case "AwayWins": + out.AwayWins = int(in.Int()) + case "Coach": + out.Coach = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "TotalWinPercentage": + out.TotalWinPercentage = float32(in.Float32()) + case "ConfWinPercentage": + out.ConfWinPercentage = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out *jwriter.Writer, in structs.CollegeStandings) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Int(int(in.Season)) + } + { + const prefix string = ",\"LeagueID\":" + out.RawString(prefix) + out.Uint(uint(in.LeagueID)) + } + { + const prefix string = ",\"LeagueName\":" + out.RawString(prefix) + out.String(string(in.LeagueName)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Int(int(in.ConferenceID)) + } + { + const prefix string = ",\"ConferenceName\":" + out.RawString(prefix) + out.String(string(in.ConferenceName)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Int(int(in.DivisionID)) + } + { + const prefix string = ",\"PostSeasonStatus\":" + out.RawString(prefix) + out.String(string(in.PostSeasonStatus)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"Rank\":" + out.RawString(prefix) + out.Uint(uint(in.Rank)) + } + { + const prefix string = ",\"TotalWins\":" + out.RawString(prefix) + out.Int(int(in.TotalWins)) + } + { + const prefix string = ",\"TotalLosses\":" + out.RawString(prefix) + out.Int(int(in.TotalLosses)) + } + { + const prefix string = ",\"ConferenceWins\":" + out.RawString(prefix) + out.Int(int(in.ConferenceWins)) + } + { + const prefix string = ",\"ConferenceLosses\":" + out.RawString(prefix) + out.Int(int(in.ConferenceLosses)) + } + { + const prefix string = ",\"RankedWins\":" + out.RawString(prefix) + out.Int(int(in.RankedWins)) + } + { + const prefix string = ",\"RankedLosses\":" + out.RawString(prefix) + out.Int(int(in.RankedLosses)) + } + { + const prefix string = ",\"PointsFor\":" + out.RawString(prefix) + out.Int(int(in.PointsFor)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"Streak\":" + out.RawString(prefix) + out.Int(int(in.Streak)) + } + { + const prefix string = ",\"HomeWins\":" + out.RawString(prefix) + out.Int(int(in.HomeWins)) + } + { + const prefix string = ",\"AwayWins\":" + out.RawString(prefix) + out.Int(int(in.AwayWins)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"TotalWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.TotalWinPercentage)) + } + { + const prefix string = ",\"ConfWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.ConfWinPercentage)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in *jlexer.Lexer, out *structs.CollegePlayerSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = uint(in.Uint()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "RushingAvg": + out.RushingAvg = float64(in.Float64()) + case "PassingAvg": + out.PassingAvg = float64(in.Float64()) + case "ReceivingAvg": + out.ReceivingAvg = float64(in.Float64()) + case "Completion": + out.Completion = float64(in.Float64()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, in structs.CollegePlayerSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Uint(uint(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"RushingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.RushingAvg)) + } + { + const prefix string = ",\"PassingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.PassingAvg)) + } + { + const prefix string = ",\"ReceivingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.ReceivingAvg)) + } + { + const prefix string = ",\"Completion\":" + out.RawString(prefix) + out.Float64(float64(in.Completion)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, out *BootstrapDataTwo) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegeNews": + if in.IsNull() { + in.Skip() + out.CollegeNews = nil + } else { + in.Delim('[') + if out.CollegeNews == nil { + if !in.IsDelim(']') { + out.CollegeNews = make([]structs.NewsLog, 0, 0) + } else { + out.CollegeNews = []structs.NewsLog{} + } + } else { + out.CollegeNews = (out.CollegeNews)[:0] + } + for !in.IsDelim(']') { + var v21 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v21) + out.CollegeNews = append(out.CollegeNews, v21) + in.WantComma() + } + in.Delim(']') + } + case "AllCollegeGames": + if in.IsNull() { + in.Skip() + out.AllCollegeGames = nil + } else { + in.Delim('[') + if out.AllCollegeGames == nil { + if !in.IsDelim(']') { + out.AllCollegeGames = make([]structs.CollegeGame, 0, 0) + } else { + out.AllCollegeGames = []structs.CollegeGame{} + } + } else { + out.AllCollegeGames = (out.AllCollegeGames)[:0] + } + for !in.IsDelim(']') { + var v22 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v22) + out.AllCollegeGames = append(out.AllCollegeGames, v22) + in.WantComma() + } + in.Delim(']') + } + case "TeamProfileMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.TeamProfileMap = make(map[string]*structs.RecruitingTeamProfile) + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v23 *structs.RecruitingTeamProfile + if in.IsNull() { + in.Skip() + v23 = nil + } else { + if v23 == nil { + v23 = new(structs.RecruitingTeamProfile) + } + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, v23) + } + (out.TeamProfileMap)[key] = v23 + in.WantComma() + } + in.Delim('}') + } + case "CollegeStandings": + if in.IsNull() { + in.Skip() + out.CollegeStandings = nil + } else { + in.Delim('[') + if out.CollegeStandings == nil { + if !in.IsDelim(']') { + out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.CollegeStandings = []structs.CollegeStandings{} + } + } else { + out.CollegeStandings = (out.CollegeStandings)[:0] + } + for !in.IsDelim(']') { + var v24 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v24) + out.CollegeStandings = append(out.CollegeStandings, v24) + in.WantComma() + } + in.Delim(']') + } + case "ProStandings": + if in.IsNull() { + in.Skip() + out.ProStandings = nil + } else { + in.Delim('[') + if out.ProStandings == nil { + if !in.IsDelim(']') { + out.ProStandings = make([]structs.NFLStandings, 0, 0) + } else { + out.ProStandings = []structs.NFLStandings{} + } + } else { + out.ProStandings = (out.ProStandings)[:0] + } + for !in.IsDelim(']') { + var v25 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v25) + out.ProStandings = append(out.ProStandings, v25) + in.WantComma() + } + in.Delim(']') + } + case "AllProGames": + if in.IsNull() { + in.Skip() + out.AllProGames = nil + } else { + in.Delim('[') + if out.AllProGames == nil { + if !in.IsDelim(']') { + out.AllProGames = make([]structs.NFLGame, 0, 0) + } else { + out.AllProGames = []structs.NFLGame{} + } + } else { + out.AllProGames = (out.AllProGames)[:0] + } + for !in.IsDelim(']') { + var v26 structs.NFLGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v26) + out.AllProGames = append(out.AllProGames, v26) + in.WantComma() + } + in.Delim(']') + } + case "CapsheetMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CapsheetMap = make(map[uint]structs.NFLCapsheet) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v27 structs.NFLCapsheet + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v27) + (out.CapsheetMap)[key] = v27 + in.WantComma() + } + in.Delim('}') + } + case "ProRosterMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ProRosterMap = make(map[uint][]structs.NFLPlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v28 []structs.NFLPlayer + if in.IsNull() { + in.Skip() + v28 = nil + } else { + in.Delim('[') + if v28 == nil { + if !in.IsDelim(']') { + v28 = make([]structs.NFLPlayer, 0, 0) + } else { + v28 = []structs.NFLPlayer{} + } + } else { + v28 = (v28)[:0] + } + for !in.IsDelim(']') { + var v29 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v29) + v28 = append(v28, v29) + in.WantComma() + } + in.Delim(']') + } + (out.ProRosterMap)[key] = v28 + in.WantComma() + } + in.Delim('}') + } + case "PracticeSquadPlayers": + if in.IsNull() { + in.Skip() + out.PracticeSquadPlayers = nil + } else { + in.Delim('[') + if out.PracticeSquadPlayers == nil { + if !in.IsDelim(']') { + out.PracticeSquadPlayers = make([]structs.NFLPlayer, 0, 0) + } else { + out.PracticeSquadPlayers = []structs.NFLPlayer{} + } + } else { + out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] + } + for !in.IsDelim(']') { + var v30 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v30) + out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v30) + in.WantComma() + } + in.Delim(']') + } + case "TopNFLPassers": + if in.IsNull() { + in.Skip() + out.TopNFLPassers = nil + } else { + in.Delim('[') + if out.TopNFLPassers == nil { + if !in.IsDelim(']') { + out.TopNFLPassers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLPassers = []structs.NFLPlayer{} + } + } else { + out.TopNFLPassers = (out.TopNFLPassers)[:0] + } + for !in.IsDelim(']') { + var v31 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v31) + out.TopNFLPassers = append(out.TopNFLPassers, v31) + in.WantComma() + } + in.Delim(']') + } + case "TopNFLRushers": + if in.IsNull() { + in.Skip() + out.TopNFLRushers = nil + } else { + in.Delim('[') + if out.TopNFLRushers == nil { + if !in.IsDelim(']') { + out.TopNFLRushers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLRushers = []structs.NFLPlayer{} + } + } else { + out.TopNFLRushers = (out.TopNFLRushers)[:0] + } + for !in.IsDelim(']') { + var v32 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v32) + out.TopNFLRushers = append(out.TopNFLRushers, v32) + in.WantComma() + } + in.Delim(']') + } + case "TopNFLReceivers": + if in.IsNull() { + in.Skip() + out.TopNFLReceivers = nil + } else { + in.Delim('[') + if out.TopNFLReceivers == nil { + if !in.IsDelim(']') { + out.TopNFLReceivers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLReceivers = []structs.NFLPlayer{} + } + } else { + out.TopNFLReceivers = (out.TopNFLReceivers)[:0] + } + for !in.IsDelim(']') { + var v33 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v33) + out.TopNFLReceivers = append(out.TopNFLReceivers, v33) + in.WantComma() + } + in.Delim(']') + } + case "ProInjuryReport": + if in.IsNull() { + in.Skip() + out.ProInjuryReport = nil + } else { + in.Delim('[') + if out.ProInjuryReport == nil { + if !in.IsDelim(']') { + out.ProInjuryReport = make([]structs.NFLPlayer, 0, 0) + } else { + out.ProInjuryReport = []structs.NFLPlayer{} + } + } else { + out.ProInjuryReport = (out.ProInjuryReport)[:0] + } + for !in.IsDelim(']') { + var v34 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v34) + out.ProInjuryReport = append(out.ProInjuryReport, v34) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer, in BootstrapDataTwo) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegeNews\":" + out.RawString(prefix[1:]) + if in.CollegeNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v35, v36 := range in.CollegeNews { + if v35 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v36) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"AllCollegeGames\":" + out.RawString(prefix) + if in.AllCollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v37, v38 := range in.AllCollegeGames { + if v37 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v38) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamProfileMap\":" + out.RawString(prefix) + if in.TeamProfileMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v39First := true + for v39Name, v39Value := range in.TeamProfileMap { + if v39First { + v39First = false + } else { + out.RawByte(',') + } + out.String(string(v39Name)) + out.RawByte(':') + if v39Value == nil { + out.RawString("null") + } else { + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, *v39Value) + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeStandings\":" + out.RawString(prefix) + if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v40, v41 := range in.CollegeStandings { + if v40 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v41) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProStandings\":" + out.RawString(prefix) + if in.ProStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v42, v43 := range in.ProStandings { + if v42 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v43) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"AllProGames\":" + out.RawString(prefix) + if in.AllProGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v44, v45 := range in.AllProGames { + if v44 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v45) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CapsheetMap\":" + out.RawString(prefix) + if in.CapsheetMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v46First := true + for v46Name, v46Value := range in.CapsheetMap { + if v46First { + v46First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v46Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v46Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ProRosterMap\":" + out.RawString(prefix) + if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v47First := true + for v47Name, v47Value := range in.ProRosterMap { + if v47First { + v47First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v47Name)) + out.RawByte(':') + if v47Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v48, v49 := range v47Value { + if v48 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v49) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"PracticeSquadPlayers\":" + out.RawString(prefix) + if in.PracticeSquadPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v50, v51 := range in.PracticeSquadPlayers { + if v50 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v51) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopNFLPassers\":" + out.RawString(prefix) + if in.TopNFLPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v52, v53 := range in.TopNFLPassers { + if v52 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v53) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopNFLRushers\":" + out.RawString(prefix) + if in.TopNFLRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v54, v55 := range in.TopNFLRushers { + if v54 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v55) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopNFLReceivers\":" + out.RawString(prefix) + if in.TopNFLReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v56, v57 := range in.TopNFLReceivers { + if v56 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v57) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProInjuryReport\":" + out.RawString(prefix) + if in.ProInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v58, v59 := range in.ProInjuryReport { + if v58 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v59) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataTwo) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataTwo) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataTwo) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataTwo) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, out *structs.NFLPlayer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "CollegeID": + out.CollegeID = uint(in.Uint()) + case "College": + out.College = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Experience": + out.Experience = uint(in.Uint()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "Hometown": + out.Hometown = string(in.String()) + case "State": + out.State = string(in.String()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsPracticeSquad": + out.IsPracticeSquad = bool(in.Bool()) + case "IsFreeAgent": + out.IsFreeAgent = bool(in.Bool()) + case "IsWaived": + out.IsWaived = bool(in.Bool()) + case "IsOnTradeBlock": + out.IsOnTradeBlock = bool(in.Bool()) + case "IsAcceptingOffers": + out.IsAcceptingOffers = bool(in.Bool()) + case "IsNegotiating": + out.IsNegotiating = bool(in.Bool()) + case "NegotiationRound": + out.NegotiationRound = uint(in.Uint()) + case "SigningRound": + out.SigningRound = uint(in.Uint()) + case "MinimumValue": + out.MinimumValue = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "DraftedTeamID": + out.DraftedTeamID = uint(in.Uint()) + case "DraftedTeam": + out.DraftedTeam = string(in.String()) + case "DraftedRound": + out.DraftedRound = uint(in.Uint()) + case "DraftPickID": + out.DraftPickID = uint(in.Uint()) + case "DraftedPick": + out.DraftedPick = uint(in.Uint()) + case "ShowLetterGrade": + out.ShowLetterGrade = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "Rejections": + out.Rejections = int(in.Int()) + case "ProBowls": + out.ProBowls = uint8(in.Uint8()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "Stats": + if in.IsNull() { + in.Skip() + out.Stats = nil + } else { + in.Delim('[') + if out.Stats == nil { + if !in.IsDelim(']') { + out.Stats = make([]structs.NFLPlayerStats, 0, 0) + } else { + out.Stats = []structs.NFLPlayerStats{} + } + } else { + out.Stats = (out.Stats)[:0] + } + for !in.IsDelim(']') { + var v60 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v60) + out.Stats = append(out.Stats, v60) + in.WantComma() + } + in.Delim(']') + } + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &out.SeasonStats) + case "Contract": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &out.Contract) + case "Offers": + if in.IsNull() { + in.Skip() + out.Offers = nil + } else { + in.Delim('[') + if out.Offers == nil { + if !in.IsDelim(']') { + out.Offers = make([]structs.FreeAgencyOffer, 0, 0) + } else { + out.Offers = []structs.FreeAgencyOffer{} + } + } else { + out.Offers = (out.Offers)[:0] + } + for !in.IsDelim(']') { + var v61 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v61) + out.Offers = append(out.Offers, v61) + in.WantComma() + } + in.Delim(']') + } + case "WaiverOffers": + if in.IsNull() { + in.Skip() + out.WaiverOffers = nil + } else { + in.Delim('[') + if out.WaiverOffers == nil { + if !in.IsDelim(']') { + out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) + } else { + out.WaiverOffers = []structs.NFLWaiverOffer{} + } + } else { + out.WaiverOffers = (out.WaiverOffers)[:0] + } + for !in.IsDelim(']') { + var v62 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v62) + out.WaiverOffers = append(out.WaiverOffers, v62) + in.WantComma() + } + in.Delim(']') + } + case "Extensions": + if in.IsNull() { + in.Skip() + out.Extensions = nil + } else { + in.Delim('[') + if out.Extensions == nil { + if !in.IsDelim(']') { + out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) + } else { + out.Extensions = []structs.NFLExtensionOffer{} + } + } else { + out.Extensions = (out.Extensions)[:0] + } + for !in.IsDelim(']') { + var v63 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v63) + out.Extensions = append(out.Extensions, v63) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer, in structs.NFLPlayer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"CollegeID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegeID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Experience\":" + out.RawString(prefix) + out.Uint(uint(in.Experience)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"Hometown\":" + out.RawString(prefix) + out.String(string(in.Hometown)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsPracticeSquad\":" + out.RawString(prefix) + out.Bool(bool(in.IsPracticeSquad)) + } + { + const prefix string = ",\"IsFreeAgent\":" + out.RawString(prefix) + out.Bool(bool(in.IsFreeAgent)) + } + { + const prefix string = ",\"IsWaived\":" + out.RawString(prefix) + out.Bool(bool(in.IsWaived)) + } + { + const prefix string = ",\"IsOnTradeBlock\":" + out.RawString(prefix) + out.Bool(bool(in.IsOnTradeBlock)) + } + { + const prefix string = ",\"IsAcceptingOffers\":" + out.RawString(prefix) + out.Bool(bool(in.IsAcceptingOffers)) + } + { + const prefix string = ",\"IsNegotiating\":" + out.RawString(prefix) + out.Bool(bool(in.IsNegotiating)) + } + { + const prefix string = ",\"NegotiationRound\":" + out.RawString(prefix) + out.Uint(uint(in.NegotiationRound)) + } + { + const prefix string = ",\"SigningRound\":" + out.RawString(prefix) + out.Uint(uint(in.SigningRound)) + } + { + const prefix string = ",\"MinimumValue\":" + out.RawString(prefix) + out.Float64(float64(in.MinimumValue)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"DraftedTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedTeamID)) + } + { + const prefix string = ",\"DraftedTeam\":" + out.RawString(prefix) + out.String(string(in.DraftedTeam)) + } + { + const prefix string = ",\"DraftedRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedRound)) + } + { + const prefix string = ",\"DraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftPickID)) + } + { + const prefix string = ",\"DraftedPick\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedPick)) + } + { + const prefix string = ",\"ShowLetterGrade\":" + out.RawString(prefix) + out.Bool(bool(in.ShowLetterGrade)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"ProBowls\":" + out.RawString(prefix) + out.Uint8(uint8(in.ProBowls)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v64, v65 := range in.Stats { + if v64 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v65) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"SeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, in.SeasonStats) + } + { + const prefix string = ",\"Contract\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, in.Contract) + } + { + const prefix string = ",\"Offers\":" + out.RawString(prefix) + if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v66, v67 := range in.Offers { + if v66 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v67) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverOffers\":" + out.RawString(prefix) + if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v68, v69 := range in.WaiverOffers { + if v68 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v69) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Extensions\":" + out.RawString(prefix) + if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v70, v71 := range in.Extensions { + if v70 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v71) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, out *structs.NFLExtensionOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "Rejections": + out.Rejections = int(in.Int()) + case "IsAccepted": + out.IsAccepted = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRejected": + out.IsRejected = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out *jwriter.Writer, in structs.NFLExtensionOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"TotalBonus\":" + out.RawString(prefix) + out.Float64(float64(in.TotalBonus)) + } + { + const prefix string = ",\"TotalSalary\":" + out.RawString(prefix) + out.Float64(float64(in.TotalSalary)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"IsAccepted\":" + out.RawString(prefix) + out.Bool(bool(in.IsAccepted)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsRejected\":" + out.RawString(prefix) + out.Bool(bool(in.IsRejected)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in *jlexer.Lexer, out *structs.NFLWaiverOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "IsActive": + out.IsActive = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer, in structs.NFLWaiverOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"WaiverOrder\":" + out.RawString(prefix) + out.Uint(uint(in.WaiverOrder)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, out *structs.FreeAgencyOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out *jwriter.Writer, in structs.FreeAgencyOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"TotalBonus\":" + out.RawString(prefix) + out.Float64(float64(in.TotalBonus)) + } + { + const prefix string = ",\"TotalSalary\":" + out.RawString(prefix) + out.Float64(float64(in.TotalSalary)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, out *structs.NFLContract) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "OriginalTeamID": + out.OriginalTeamID = uint(in.Uint()) + case "OriginalTeam": + out.OriginalTeam = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "ContractType": + out.ContractType = string(in.String()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "SigningValue": + out.SigningValue = float64(in.Float64()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsComplete": + out.IsComplete = bool(in.Bool()) + case "IsExtended": + out.IsExtended = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "PlayerRetired": + out.PlayerRetired = bool(in.Bool()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "IsTagged": + out.IsTagged = bool(in.Bool()) + case "IsCut": + out.IsCut = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out *jwriter.Writer, in structs.NFLContract) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Int(int(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"OriginalTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.OriginalTeamID)) + } + { + const prefix string = ",\"OriginalTeam\":" + out.RawString(prefix) + out.String(string(in.OriginalTeam)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"ContractType\":" + out.RawString(prefix) + out.String(string(in.ContractType)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"SigningValue\":" + out.RawString(prefix) + out.Float64(float64(in.SigningValue)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsComplete\":" + out.RawString(prefix) + out.Bool(bool(in.IsComplete)) + } + { + const prefix string = ",\"IsExtended\":" + out.RawString(prefix) + out.Bool(bool(in.IsExtended)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"PlayerRetired\":" + out.RawString(prefix) + out.Bool(bool(in.PlayerRetired)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"IsTagged\":" + out.RawString(prefix) + out.Bool(bool(in.IsTagged)) + } + { + const prefix string = ",\"IsCut\":" + out.RawString(prefix) + out.Bool(bool(in.IsCut)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in *jlexer.Lexer, out *structs.NFLPlayerSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = uint(in.Uint()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "RushingAvg": + out.RushingAvg = float64(in.Float64()) + case "PassingAvg": + out.PassingAvg = float64(in.Float64()) + case "ReceivingAvg": + out.ReceivingAvg = float64(in.Float64()) + case "Completion": + out.Completion = float64(in.Float64()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer, in structs.NFLPlayerSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Uint(uint(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"RushingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.RushingAvg)) + } + { + const prefix string = ",\"PassingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.PassingAvg)) + } + { + const prefix string = ",\"ReceivingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.ReceivingAvg)) + } + { + const prefix string = ",\"Completion\":" + out.RawString(prefix) + out.Float64(float64(in.Completion)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, out *structs.NFLPlayerStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer, in structs.NFLPlayerStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix[1:]) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Int(int(in.NFLPlayerID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, out *structs.NFLCapsheet) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLTeamID": + out.NFLTeamID = uint(in.Uint()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y1Salary": + out.Y1Salary = float64(in.Float64()) + case "Y1CapHit": + out.Y1CapHit = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y2Salary": + out.Y2Salary = float64(in.Float64()) + case "Y2CapHit": + out.Y2CapHit = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y3Salary": + out.Y3Salary = float64(in.Float64()) + case "Y3CapHit": + out.Y3CapHit = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y4Salary": + out.Y4Salary = float64(in.Float64()) + case "Y4CapHit": + out.Y4CapHit = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "Y5Salary": + out.Y5Salary = float64(in.Float64()) + case "Y5CapHit": + out.Y5CapHit = float64(in.Float64()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer, in structs.NFLCapsheet) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLTeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLTeamID)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y1Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Salary)) + } + { + const prefix string = ",\"Y1CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y1CapHit)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y2Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Salary)) + } + { + const prefix string = ",\"Y2CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y2CapHit)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y3Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Salary)) + } + { + const prefix string = ",\"Y3CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y3CapHit)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y4Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Salary)) + } + { + const prefix string = ",\"Y4CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y4CapHit)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"Y5Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Salary)) + } + { + const prefix string = ",\"Y5CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y5CapHit)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, out *structs.NFLGame) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "HomeTeamID": + out.HomeTeamID = int(in.Int()) + case "HomeTeam": + out.HomeTeam = string(in.String()) + case "HomeTeamCoach": + out.HomeTeamCoach = string(in.String()) + case "HomeTeamWin": + out.HomeTeamWin = bool(in.Bool()) + case "AwayTeamID": + out.AwayTeamID = int(in.Int()) + case "AwayTeam": + out.AwayTeam = string(in.String()) + case "AwayTeamCoach": + out.AwayTeamCoach = string(in.String()) + case "AwayTeamWin": + out.AwayTeamWin = bool(in.Bool()) + case "MVP": + out.MVP = string(in.String()) + case "HomeTeamScore": + out.HomeTeamScore = int(in.Int()) + case "AwayTeamScore": + out.AwayTeamScore = int(in.Int()) + case "TimeSlot": + out.TimeSlot = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Region": + out.Region = string(in.String()) + case "LowTemp": + out.LowTemp = float64(in.Float64()) + case "HighTemp": + out.HighTemp = float64(in.Float64()) + case "GameTemp": + out.GameTemp = float64(in.Float64()) + case "Cloud": + out.Cloud = string(in.String()) + case "Precip": + out.Precip = string(in.String()) + case "WindSpeed": + out.WindSpeed = float64(in.Float64()) + case "WindCategory": + out.WindCategory = string(in.String()) + case "IsNeutral": + out.IsNeutral = bool(in.Bool()) + case "IsDomed": + out.IsDomed = bool(in.Bool()) + case "IsNightGame": + out.IsNightGame = bool(in.Bool()) + case "IsPlayoffGame": + out.IsPlayoffGame = bool(in.Bool()) + case "IsRivalryGame": + out.IsRivalryGame = bool(in.Bool()) + case "IsConference": + out.IsConference = bool(in.Bool()) + case "IsDivisional": + out.IsDivisional = bool(in.Bool()) + case "IsConferenceChampionship": + out.IsConferenceChampionship = bool(in.Bool()) + case "IsSuperBowl": + out.IsSuperBowl = bool(in.Bool()) + case "GameComplete": + out.GameComplete = bool(in.Bool()) + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "GameTitle": + out.GameTitle = string(in.String()) + case "NextGameID": + out.NextGameID = uint(in.Uint()) + case "NextGameHOA": + out.NextGameHOA = string(in.String()) + case "HomePreviousBye": + out.HomePreviousBye = bool(in.Bool()) + case "AwayPreviousBye": + out.AwayPreviousBye = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer, in structs.NFLGame) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"HomeTeamID\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamID)) + } + { + const prefix string = ",\"HomeTeam\":" + out.RawString(prefix) + out.String(string(in.HomeTeam)) + } + { + const prefix string = ",\"HomeTeamCoach\":" + out.RawString(prefix) + out.String(string(in.HomeTeamCoach)) + } + { + const prefix string = ",\"HomeTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.HomeTeamWin)) + } + { + const prefix string = ",\"AwayTeamID\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamID)) + } + { + const prefix string = ",\"AwayTeam\":" + out.RawString(prefix) + out.String(string(in.AwayTeam)) + } + { + const prefix string = ",\"AwayTeamCoach\":" + out.RawString(prefix) + out.String(string(in.AwayTeamCoach)) + } + { + const prefix string = ",\"AwayTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.AwayTeamWin)) + } + { + const prefix string = ",\"MVP\":" + out.RawString(prefix) + out.String(string(in.MVP)) + } + { + const prefix string = ",\"HomeTeamScore\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamScore)) + } + { + const prefix string = ",\"AwayTeamScore\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamScore)) + } + { + const prefix string = ",\"TimeSlot\":" + out.RawString(prefix) + out.String(string(in.TimeSlot)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Region\":" + out.RawString(prefix) + out.String(string(in.Region)) + } + { + const prefix string = ",\"LowTemp\":" + out.RawString(prefix) + out.Float64(float64(in.LowTemp)) + } + { + const prefix string = ",\"HighTemp\":" + out.RawString(prefix) + out.Float64(float64(in.HighTemp)) + } + { + const prefix string = ",\"GameTemp\":" + out.RawString(prefix) + out.Float64(float64(in.GameTemp)) + } + { + const prefix string = ",\"Cloud\":" + out.RawString(prefix) + out.String(string(in.Cloud)) + } + { + const prefix string = ",\"Precip\":" + out.RawString(prefix) + out.String(string(in.Precip)) + } + { + const prefix string = ",\"WindSpeed\":" + out.RawString(prefix) + out.Float64(float64(in.WindSpeed)) + } + { + const prefix string = ",\"WindCategory\":" + out.RawString(prefix) + out.String(string(in.WindCategory)) + } + { + const prefix string = ",\"IsNeutral\":" + out.RawString(prefix) + out.Bool(bool(in.IsNeutral)) + } + { + const prefix string = ",\"IsDomed\":" + out.RawString(prefix) + out.Bool(bool(in.IsDomed)) + } + { + const prefix string = ",\"IsNightGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsNightGame)) + } + { + const prefix string = ",\"IsPlayoffGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPlayoffGame)) + } + { + const prefix string = ",\"IsRivalryGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsRivalryGame)) + } + { + const prefix string = ",\"IsConference\":" + out.RawString(prefix) + out.Bool(bool(in.IsConference)) + } + { + const prefix string = ",\"IsDivisional\":" + out.RawString(prefix) + out.Bool(bool(in.IsDivisional)) + } + { + const prefix string = ",\"IsConferenceChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsConferenceChampionship)) + } + { + const prefix string = ",\"IsSuperBowl\":" + out.RawString(prefix) + out.Bool(bool(in.IsSuperBowl)) + } + { + const prefix string = ",\"GameComplete\":" + out.RawString(prefix) + out.Bool(bool(in.GameComplete)) + } + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"GameTitle\":" + out.RawString(prefix) + out.String(string(in.GameTitle)) + } + { + const prefix string = ",\"NextGameID\":" + out.RawString(prefix) + out.Uint(uint(in.NextGameID)) + } + { + const prefix string = ",\"NextGameHOA\":" + out.RawString(prefix) + out.String(string(in.NextGameHOA)) + } + { + const prefix string = ",\"HomePreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.HomePreviousBye)) + } + { + const prefix string = ",\"AwayPreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.AwayPreviousBye)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in *jlexer.Lexer, out *structs.NFLStandings) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "LeagueID": + out.LeagueID = uint(in.Uint()) + case "LeagueName": + out.LeagueName = string(in.String()) + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "ConferenceName": + out.ConferenceName = string(in.String()) + case "TotalTies": + out.TotalTies = uint(in.Uint()) + case "ConferenceTies": + out.ConferenceTies = uint(in.Uint()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "DivisionName": + out.DivisionName = string(in.String()) + case "DivisionWins": + out.DivisionWins = uint(in.Uint()) + case "DivisionLosses": + out.DivisionLosses = uint(in.Uint()) + case "DivisionTies": + out.DivisionTies = uint(in.Uint()) + case "PostSeasonStatus": + out.PostSeasonStatus = string(in.String()) + case "TotalWins": + out.TotalWins = int(in.Int()) + case "TotalLosses": + out.TotalLosses = int(in.Int()) + case "ConferenceWins": + out.ConferenceWins = int(in.Int()) + case "ConferenceLosses": + out.ConferenceLosses = int(in.Int()) + case "RankedWins": + out.RankedWins = int(in.Int()) + case "RankedLosses": + out.RankedLosses = int(in.Int()) + case "PointsFor": + out.PointsFor = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "Streak": + out.Streak = int(in.Int()) + case "HomeWins": + out.HomeWins = int(in.Int()) + case "AwayWins": + out.AwayWins = int(in.Int()) + case "Coach": + out.Coach = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "TotalWinPercentage": + out.TotalWinPercentage = float32(in.Float32()) + case "ConfWinPercentage": + out.ConfWinPercentage = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer, in structs.NFLStandings) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Uint(uint(in.Season)) + } + { + const prefix string = ",\"LeagueID\":" + out.RawString(prefix) + out.Uint(uint(in.LeagueID)) + } + { + const prefix string = ",\"LeagueName\":" + out.RawString(prefix) + out.String(string(in.LeagueName)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"ConferenceName\":" + out.RawString(prefix) + out.String(string(in.ConferenceName)) + } + { + const prefix string = ",\"TotalTies\":" + out.RawString(prefix) + out.Uint(uint(in.TotalTies)) + } + { + const prefix string = ",\"ConferenceTies\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceTies)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionID)) + } + { + const prefix string = ",\"DivisionName\":" + out.RawString(prefix) + out.String(string(in.DivisionName)) + } + { + const prefix string = ",\"DivisionWins\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionWins)) + } + { + const prefix string = ",\"DivisionLosses\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionLosses)) + } + { + const prefix string = ",\"DivisionTies\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionTies)) + } + { + const prefix string = ",\"PostSeasonStatus\":" + out.RawString(prefix) + out.String(string(in.PostSeasonStatus)) + } + { + const prefix string = ",\"TotalWins\":" + out.RawString(prefix) + out.Int(int(in.TotalWins)) + } + { + const prefix string = ",\"TotalLosses\":" + out.RawString(prefix) + out.Int(int(in.TotalLosses)) + } + { + const prefix string = ",\"ConferenceWins\":" + out.RawString(prefix) + out.Int(int(in.ConferenceWins)) + } + { + const prefix string = ",\"ConferenceLosses\":" + out.RawString(prefix) + out.Int(int(in.ConferenceLosses)) + } + { + const prefix string = ",\"RankedWins\":" + out.RawString(prefix) + out.Int(int(in.RankedWins)) + } + { + const prefix string = ",\"RankedLosses\":" + out.RawString(prefix) + out.Int(int(in.RankedLosses)) + } + { + const prefix string = ",\"PointsFor\":" + out.RawString(prefix) + out.Int(int(in.PointsFor)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"Streak\":" + out.RawString(prefix) + out.Int(int(in.Streak)) + } + { + const prefix string = ",\"HomeWins\":" + out.RawString(prefix) + out.Int(int(in.HomeWins)) + } + { + const prefix string = ",\"AwayWins\":" + out.RawString(prefix) + out.Int(int(in.AwayWins)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"TotalWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.TotalWinPercentage)) + } + { + const prefix string = ",\"ConfWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.ConfWinPercentage)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, out *structs.RecruitingTeamProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "Team": + out.Team = string(in.String()) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "State": + out.State = string(in.String()) + case "ScholarshipsAvailable": + out.ScholarshipsAvailable = int(in.Int()) + case "WeeklyPoints": + out.WeeklyPoints = float64(in.Float64()) + case "SpentPoints": + out.SpentPoints = float64(in.Float64()) + case "TotalCommitments": + out.TotalCommitments = int(in.Int()) + case "RecruitClassSize": + out.RecruitClassSize = int(in.Int()) + case "PortalReputation": + out.PortalReputation = int(in.Int()) + case "BaseEfficiencyScore": + out.BaseEfficiencyScore = float64(in.Float64()) + case "RecruitingEfficiencyScore": + out.RecruitingEfficiencyScore = float64(in.Float64()) + case "PreviousOverallWinPer": + out.PreviousOverallWinPer = float64(in.Float64()) + case "PreviousConferenceWinPer": + out.PreviousConferenceWinPer = float64(in.Float64()) + case "CurrentOverallWinPer": + out.CurrentOverallWinPer = float64(in.Float64()) + case "CurrentConferenceWinPer": + out.CurrentConferenceWinPer = float64(in.Float64()) + case "ESPNScore": + out.ESPNScore = float64(in.Float64()) + case "RivalsScore": + out.RivalsScore = float64(in.Float64()) + case "Rank247Score": + out.Rank247Score = float64(in.Float64()) + case "CompositeScore": + out.CompositeScore = float64(in.Float64()) + case "ThreeStars": + out.ThreeStars = uint8(in.Uint8()) + case "FourStars": + out.FourStars = uint8(in.Uint8()) + case "FiveStars": + out.FiveStars = uint8(in.Uint8()) + case "RecruitingClassRank": + out.RecruitingClassRank = int(in.Int()) + case "CaughtCheating": + out.CaughtCheating = bool(in.Bool()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "IsAI": + out.IsAI = bool(in.Bool()) + case "IsUserTeam": + out.IsUserTeam = bool(in.Bool()) + case "AIBehavior": + out.AIBehavior = string(in.String()) + case "AIQuality": + out.AIQuality = string(in.String()) + case "WeeksMissed": + out.WeeksMissed = int(in.Int()) + case "BattlesWon": + out.BattlesWon = int(in.Int()) + case "BattlesLost": + out.BattlesLost = int(in.Int()) + case "AIMinThreshold": + out.AIMinThreshold = int(in.Int()) + case "AIMaxThreshold": + out.AIMaxThreshold = int(in.Int()) + case "AIStarMin": + out.AIStarMin = int(in.Int()) + case "AIStarMax": + out.AIStarMax = int(in.Int()) + case "AIAutoOfferscholarships": + out.AIAutoOfferscholarships = bool(in.Bool()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "AcademicsAffinity": + out.AcademicsAffinity = bool(in.Bool()) + case "FrontrunnerAffinity": + out.FrontrunnerAffinity = bool(in.Bool()) + case "LargeCrowdsAffinity": + out.LargeCrowdsAffinity = bool(in.Bool()) + case "ReligionAffinity": + out.ReligionAffinity = bool(in.Bool()) + case "ServiceAffinity": + out.ServiceAffinity = bool(in.Bool()) + case "SmallSchoolAffinity": + out.SmallSchoolAffinity = bool(in.Bool()) + case "SmallTownAffinity": + out.SmallTownAffinity = bool(in.Bool()) + case "BigCityAffinity": + out.BigCityAffinity = bool(in.Bool()) + case "MediaSpotlightAffinity": + out.MediaSpotlightAffinity = bool(in.Bool()) + case "RisingStarsAffinity": + out.RisingStarsAffinity = bool(in.Bool()) + case "Recruits": + if in.IsNull() { + in.Skip() + out.Recruits = nil + } else { + in.Delim('[') + if out.Recruits == nil { + if !in.IsDelim(']') { + out.Recruits = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.Recruits = []structs.RecruitPlayerProfile{} + } + } else { + out.Recruits = (out.Recruits)[:0] + } + for !in.IsDelim(']') { + var v72 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v72) + out.Recruits = append(out.Recruits, v72) + in.WantComma() + } + in.Delim(']') + } + case "Affinities": + if in.IsNull() { + in.Skip() + out.Affinities = nil + } else { + in.Delim('[') + if out.Affinities == nil { + if !in.IsDelim(']') { + out.Affinities = make([]structs.ProfileAffinity, 0, 0) + } else { + out.Affinities = []structs.ProfileAffinity{} + } + } else { + out.Affinities = (out.Affinities)[:0] + } + for !in.IsDelim(']') { + var v73 structs.ProfileAffinity + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v73) + out.Affinities = append(out.Affinities, v73) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, in structs.RecruitingTeamProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"ScholarshipsAvailable\":" + out.RawString(prefix) + out.Int(int(in.ScholarshipsAvailable)) + } + { + const prefix string = ",\"WeeklyPoints\":" + out.RawString(prefix) + out.Float64(float64(in.WeeklyPoints)) + } + { + const prefix string = ",\"SpentPoints\":" + out.RawString(prefix) + out.Float64(float64(in.SpentPoints)) + } + { + const prefix string = ",\"TotalCommitments\":" + out.RawString(prefix) + out.Int(int(in.TotalCommitments)) + } + { + const prefix string = ",\"RecruitClassSize\":" + out.RawString(prefix) + out.Int(int(in.RecruitClassSize)) + } + { + const prefix string = ",\"PortalReputation\":" + out.RawString(prefix) + out.Int(int(in.PortalReputation)) + } + { + const prefix string = ",\"BaseEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.BaseEfficiencyScore)) + } + { + const prefix string = ",\"RecruitingEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingEfficiencyScore)) + } + { + const prefix string = ",\"PreviousOverallWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousOverallWinPer)) + } + { + const prefix string = ",\"PreviousConferenceWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousConferenceWinPer)) + } + { + const prefix string = ",\"CurrentOverallWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentOverallWinPer)) + } + { + const prefix string = ",\"CurrentConferenceWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentConferenceWinPer)) + } + { + const prefix string = ",\"ESPNScore\":" + out.RawString(prefix) + out.Float64(float64(in.ESPNScore)) + } + { + const prefix string = ",\"RivalsScore\":" + out.RawString(prefix) + out.Float64(float64(in.RivalsScore)) + } + { + const prefix string = ",\"Rank247Score\":" + out.RawString(prefix) + out.Float64(float64(in.Rank247Score)) + } + { + const prefix string = ",\"CompositeScore\":" + out.RawString(prefix) + out.Float64(float64(in.CompositeScore)) + } + { + const prefix string = ",\"ThreeStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.ThreeStars)) + } + { + const prefix string = ",\"FourStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.FourStars)) + } + { + const prefix string = ",\"FiveStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.FiveStars)) + } + { + const prefix string = ",\"RecruitingClassRank\":" + out.RawString(prefix) + out.Int(int(in.RecruitingClassRank)) + } + { + const prefix string = ",\"CaughtCheating\":" + out.RawString(prefix) + out.Bool(bool(in.CaughtCheating)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"IsAI\":" + out.RawString(prefix) + out.Bool(bool(in.IsAI)) + } + { + const prefix string = ",\"IsUserTeam\":" + out.RawString(prefix) + out.Bool(bool(in.IsUserTeam)) + } + { + const prefix string = ",\"AIBehavior\":" + out.RawString(prefix) + out.String(string(in.AIBehavior)) + } + { + const prefix string = ",\"AIQuality\":" + out.RawString(prefix) + out.String(string(in.AIQuality)) + } + { + const prefix string = ",\"WeeksMissed\":" + out.RawString(prefix) + out.Int(int(in.WeeksMissed)) + } + { + const prefix string = ",\"BattlesWon\":" + out.RawString(prefix) + out.Int(int(in.BattlesWon)) + } + { + const prefix string = ",\"BattlesLost\":" + out.RawString(prefix) + out.Int(int(in.BattlesLost)) + } + { + const prefix string = ",\"AIMinThreshold\":" + out.RawString(prefix) + out.Int(int(in.AIMinThreshold)) + } + { + const prefix string = ",\"AIMaxThreshold\":" + out.RawString(prefix) + out.Int(int(in.AIMaxThreshold)) + } + { + const prefix string = ",\"AIStarMin\":" + out.RawString(prefix) + out.Int(int(in.AIStarMin)) + } + { + const prefix string = ",\"AIStarMax\":" + out.RawString(prefix) + out.Int(int(in.AIStarMax)) + } + { + const prefix string = ",\"AIAutoOfferscholarships\":" + out.RawString(prefix) + out.Bool(bool(in.AIAutoOfferscholarships)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"AcademicsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.AcademicsAffinity)) + } + { + const prefix string = ",\"FrontrunnerAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.FrontrunnerAffinity)) + } + { + const prefix string = ",\"LargeCrowdsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.LargeCrowdsAffinity)) + } + { + const prefix string = ",\"ReligionAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.ReligionAffinity)) + } + { + const prefix string = ",\"ServiceAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.ServiceAffinity)) + } + { + const prefix string = ",\"SmallSchoolAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.SmallSchoolAffinity)) + } + { + const prefix string = ",\"SmallTownAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.SmallTownAffinity)) + } + { + const prefix string = ",\"BigCityAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.BigCityAffinity)) + } + { + const prefix string = ",\"MediaSpotlightAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.MediaSpotlightAffinity)) + } + { + const prefix string = ",\"RisingStarsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.RisingStarsAffinity)) + } + { + const prefix string = ",\"Recruits\":" + out.RawString(prefix) + if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v74, v75 := range in.Recruits { + if v74 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v75) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Affinities\":" + out.RawString(prefix) + if in.Affinities == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v76, v77 := range in.Affinities { + if v76 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v77) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in *jlexer.Lexer, out *structs.ProfileAffinity) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "AffinityID": + out.AffinityID = int(in.Int()) + case "ProfileID": + out.ProfileID = int(in.Int()) + case "AffinityName": + out.AffinityName = string(in.String()) + case "IsApplicable": + out.IsApplicable = bool(in.Bool()) + case "IsDynamicAffinity": + out.IsDynamicAffinity = bool(in.Bool()) + case "IsCheckedWeekly": + out.IsCheckedWeekly = bool(in.Bool()) + case "IsCheckedSeasonal": + out.IsCheckedSeasonal = bool(in.Bool()) + case "AffinityValue": + out.AffinityValue = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out *jwriter.Writer, in structs.ProfileAffinity) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"AffinityID\":" + out.RawString(prefix[1:]) + out.Int(int(in.AffinityID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Int(int(in.ProfileID)) + } + { + const prefix string = ",\"AffinityName\":" + out.RawString(prefix) + out.String(string(in.AffinityName)) + } + { + const prefix string = ",\"IsApplicable\":" + out.RawString(prefix) + out.Bool(bool(in.IsApplicable)) + } + { + const prefix string = ",\"IsDynamicAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.IsDynamicAffinity)) + } + { + const prefix string = ",\"IsCheckedWeekly\":" + out.RawString(prefix) + out.Bool(bool(in.IsCheckedWeekly)) + } + { + const prefix string = ",\"IsCheckedSeasonal\":" + out.RawString(prefix) + out.Bool(bool(in.IsCheckedSeasonal)) + } + { + const prefix string = ",\"AffinityValue\":" + out.RawString(prefix) + out.Float32(float32(in.AffinityValue)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, out *structs.RecruitPlayerProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = int(in.Int()) + case "RecruitID": + out.RecruitID = int(in.Int()) + case "ProfileID": + out.ProfileID = int(in.Int()) + case "TotalPoints": + out.TotalPoints = float64(in.Float64()) + case "CurrentWeeksPoints": + out.CurrentWeeksPoints = float64(in.Float64()) + case "PreviousWeekPoints": + out.PreviousWeekPoints = float64(in.Float64()) + case "SpendingCount": + out.SpendingCount = int(in.Int()) + case "RecruitingEfficiencyScore": + out.RecruitingEfficiencyScore = float64(in.Float64()) + case "Scholarship": + out.Scholarship = bool(in.Bool()) + case "ScholarshipRevoked": + out.ScholarshipRevoked = bool(in.Bool()) + case "AffinityOneEligible": + out.AffinityOneEligible = bool(in.Bool()) + case "AffinityTwoEligible": + out.AffinityTwoEligible = bool(in.Bool()) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "RemovedFromBoard": + out.RemovedFromBoard = bool(in.Bool()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "IsLocked": + out.IsLocked = bool(in.Bool()) + case "CaughtCheating": + out.CaughtCheating = bool(in.Bool()) + case "TeamReachedMax": + out.TeamReachedMax = bool(in.Bool()) + case "Recruit": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &out.Recruit) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out *jwriter.Writer, in structs.RecruitPlayerProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"RecruitID\":" + out.RawString(prefix) + out.Int(int(in.RecruitID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Int(int(in.ProfileID)) + } + { + const prefix string = ",\"TotalPoints\":" + out.RawString(prefix) + out.Float64(float64(in.TotalPoints)) + } + { + const prefix string = ",\"CurrentWeeksPoints\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentWeeksPoints)) + } + { + const prefix string = ",\"PreviousWeekPoints\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousWeekPoints)) + } + { + const prefix string = ",\"SpendingCount\":" + out.RawString(prefix) + out.Int(int(in.SpendingCount)) + } + { + const prefix string = ",\"RecruitingEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingEfficiencyScore)) + } + { + const prefix string = ",\"Scholarship\":" + out.RawString(prefix) + out.Bool(bool(in.Scholarship)) + } + { + const prefix string = ",\"ScholarshipRevoked\":" + out.RawString(prefix) + out.Bool(bool(in.ScholarshipRevoked)) + } + { + const prefix string = ",\"AffinityOneEligible\":" + out.RawString(prefix) + out.Bool(bool(in.AffinityOneEligible)) + } + { + const prefix string = ",\"AffinityTwoEligible\":" + out.RawString(prefix) + out.Bool(bool(in.AffinityTwoEligible)) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"RemovedFromBoard\":" + out.RawString(prefix) + out.Bool(bool(in.RemovedFromBoard)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"IsLocked\":" + out.RawString(prefix) + out.Bool(bool(in.IsLocked)) + } + { + const prefix string = ",\"CaughtCheating\":" + out.RawString(prefix) + out.Bool(bool(in.CaughtCheating)) + } + { + const prefix string = ",\"TeamReachedMax\":" + out.RawString(prefix) + out.Bool(bool(in.TeamReachedMax)) + } + { + const prefix string = ",\"Recruit\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, in.Recruit) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in *jlexer.Lexer, out *structs.Recruit) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "AffinityOne": + out.AffinityOne = string(in.String()) + case "AffinityTwo": + out.AffinityTwo = string(in.String()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "IsCustomCroot": + out.IsCustomCroot = bool(in.Bool()) + case "CustomCrootFor": + out.CustomCrootFor = string(in.String()) + case "College": + out.College = string(in.String()) + case "OverallRank": + out.OverallRank = float64(in.Float64()) + case "RivalsRank": + out.RivalsRank = float64(in.Float64()) + case "ESPNRank": + out.ESPNRank = float64(in.Float64()) + case "Rank247": + out.Rank247 = float64(in.Float64()) + case "TopRankModifier": + out.TopRankModifier = float64(in.Float64()) + case "RecruitingModifier": + out.RecruitingModifier = float64(in.Float64()) + case "RecruitingStatus": + out.RecruitingStatus = string(in.String()) + case "RecruitPlayerProfiles": + if in.IsNull() { + in.Skip() + out.RecruitPlayerProfiles = nil + } else { + in.Delim('[') + if out.RecruitPlayerProfiles == nil { + if !in.IsDelim(']') { + out.RecruitPlayerProfiles = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.RecruitPlayerProfiles = []structs.RecruitPlayerProfile{} + } + } else { + out.RecruitPlayerProfiles = (out.RecruitPlayerProfiles)[:0] + } + for !in.IsDelim(']') { + var v78 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v78) + out.RecruitPlayerProfiles = append(out.RecruitPlayerProfiles, v78) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer, in structs.Recruit) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"AffinityOne\":" + out.RawString(prefix) + out.String(string(in.AffinityOne)) + } + { + const prefix string = ",\"AffinityTwo\":" + out.RawString(prefix) + out.String(string(in.AffinityTwo)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"IsCustomCroot\":" + out.RawString(prefix) + out.Bool(bool(in.IsCustomCroot)) + } + { + const prefix string = ",\"CustomCrootFor\":" + out.RawString(prefix) + out.String(string(in.CustomCrootFor)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"OverallRank\":" + out.RawString(prefix) + out.Float64(float64(in.OverallRank)) + } + { + const prefix string = ",\"RivalsRank\":" + out.RawString(prefix) + out.Float64(float64(in.RivalsRank)) + } + { + const prefix string = ",\"ESPNRank\":" + out.RawString(prefix) + out.Float64(float64(in.ESPNRank)) + } + { + const prefix string = ",\"Rank247\":" + out.RawString(prefix) + out.Float64(float64(in.Rank247)) + } + { + const prefix string = ",\"TopRankModifier\":" + out.RawString(prefix) + out.Float64(float64(in.TopRankModifier)) + } + { + const prefix string = ",\"RecruitingModifier\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingModifier)) + } + { + const prefix string = ",\"RecruitingStatus\":" + out.RawString(prefix) + out.String(string(in.RecruitingStatus)) + } + { + const prefix string = ",\"RecruitPlayerProfiles\":" + out.RawString(prefix) + if in.RecruitPlayerProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v79, v80 := range in.RecruitPlayerProfiles { + if v79 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v80) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, out *structs.NewsLog) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "MessageType": + out.MessageType = string(in.String()) + case "Message": + out.Message = string(in.String()) + case "League": + out.League = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, in structs.NewsLog) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"MessageType\":" + out.RawString(prefix) + out.String(string(in.MessageType)) + } + { + const prefix string = ",\"Message\":" + out.RawString(prefix) + out.String(string(in.Message)) + } + { + const prefix string = ",\"League\":" + out.RawString(prefix) + out.String(string(in.League)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, out *BootstrapDataThree) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Recruits": + if in.IsNull() { + in.Skip() + out.Recruits = nil + } else { + in.Delim('[') + if out.Recruits == nil { + if !in.IsDelim(']') { + out.Recruits = make([]structs.Croot, 0, 0) + } else { + out.Recruits = []structs.Croot{} + } + } else { + out.Recruits = (out.Recruits)[:0] + } + for !in.IsDelim(']') { + var v81 structs.Croot + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in, &v81) + out.Recruits = append(out.Recruits, v81) + in.WantComma() + } + in.Delim(']') + } + case "RecruitProfiles": + if in.IsNull() { + in.Skip() + out.RecruitProfiles = nil + } else { + in.Delim('[') + if out.RecruitProfiles == nil { + if !in.IsDelim(']') { + out.RecruitProfiles = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.RecruitProfiles = []structs.RecruitPlayerProfile{} + } + } else { + out.RecruitProfiles = (out.RecruitProfiles)[:0] + } + for !in.IsDelim(']') { + var v82 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v82) + out.RecruitProfiles = append(out.RecruitProfiles, v82) + in.WantComma() + } + in.Delim(']') + } + case "CollegeDepthChartMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeDepthChartMap = make(map[uint]structs.CollegeTeamDepthChart) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v83 structs.CollegeTeamDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &v83) + (out.CollegeDepthChartMap)[key] = v83 + in.WantComma() + } + in.Delim('}') + } + case "FreeAgentOffers": + if in.IsNull() { + in.Skip() + out.FreeAgentOffers = nil + } else { + in.Delim('[') + if out.FreeAgentOffers == nil { + if !in.IsDelim(']') { + out.FreeAgentOffers = make([]structs.FreeAgencyOffer, 0, 0) + } else { + out.FreeAgentOffers = []structs.FreeAgencyOffer{} + } + } else { + out.FreeAgentOffers = (out.FreeAgentOffers)[:0] + } + for !in.IsDelim(']') { + var v84 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v84) + out.FreeAgentOffers = append(out.FreeAgentOffers, v84) + in.WantComma() + } + in.Delim(']') + } + case "WaiverWireOffers": + if in.IsNull() { + in.Skip() + out.WaiverWireOffers = nil + } else { + in.Delim('[') + if out.WaiverWireOffers == nil { + if !in.IsDelim(']') { + out.WaiverWireOffers = make([]structs.NFLWaiverOffer, 0, 1) + } else { + out.WaiverWireOffers = []structs.NFLWaiverOffer{} + } + } else { + out.WaiverWireOffers = (out.WaiverWireOffers)[:0] + } + for !in.IsDelim(']') { + var v85 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v85) + out.WaiverWireOffers = append(out.WaiverWireOffers, v85) + in.WantComma() + } + in.Delim(']') + } + case "ProNews": + if in.IsNull() { + in.Skip() + out.ProNews = nil + } else { + in.Delim('[') + if out.ProNews == nil { + if !in.IsDelim(']') { + out.ProNews = make([]structs.NewsLog, 0, 0) + } else { + out.ProNews = []structs.NewsLog{} + } + } else { + out.ProNews = (out.ProNews)[:0] + } + for !in.IsDelim(']') { + var v86 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v86) + out.ProNews = append(out.ProNews, v86) + in.WantComma() + } + in.Delim(']') + } + case "NFLDepthChartMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.NFLDepthChartMap = make(map[uint]structs.NFLDepthChart) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v87 structs.NFLDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v87) + (out.NFLDepthChartMap)[key] = v87 + in.WantComma() + } + in.Delim('}') + } + case "ContractMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ContractMap = make(map[uint]structs.NFLContract) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v88 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v88) + (out.ContractMap)[key] = v88 + in.WantComma() + } + in.Delim('}') + } + case "ExtensionMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ExtensionMap = make(map[uint]structs.NFLExtensionOffer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v89 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v89) + (out.ExtensionMap)[key] = v89 + in.WantComma() + } + in.Delim('}') + } + case "FaceData": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.FaceData = make(map[uint]structs.FaceDataResponse) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v90 structs.FaceDataResponse + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v90) + (out.FaceData)[key] = v90 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataThree) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Recruits\":" + out.RawString(prefix[1:]) + if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v91, v92 := range in.Recruits { + if v91 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, v92) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"RecruitProfiles\":" + out.RawString(prefix) + if in.RecruitProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v93, v94 := range in.RecruitProfiles { + if v93 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v94) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeDepthChartMap\":" + out.RawString(prefix) + if in.CollegeDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v95First := true + for v95Name, v95Value := range in.CollegeDepthChartMap { + if v95First { + v95First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v95Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, v95Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"FreeAgentOffers\":" + out.RawString(prefix) + if in.FreeAgentOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v96, v97 := range in.FreeAgentOffers { + if v96 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v97) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverWireOffers\":" + out.RawString(prefix) + if in.WaiverWireOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v98, v99 := range in.WaiverWireOffers { + if v98 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v99) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProNews\":" + out.RawString(prefix) + if in.ProNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v100, v101 := range in.ProNews { + if v100 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v101) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"NFLDepthChartMap\":" + out.RawString(prefix) + if in.NFLDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v102First := true + for v102Name, v102Value := range in.NFLDepthChartMap { + if v102First { + v102First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v102Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v102Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ContractMap\":" + out.RawString(prefix) + if in.ContractMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v103First := true + for v103Name, v103Value := range in.ContractMap { + if v103First { + v103First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v103Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v103Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ExtensionMap\":" + out.RawString(prefix) + if in.ExtensionMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v104First := true + for v104Name, v104Value := range in.ExtensionMap { + if v104First { + v104First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v104Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v104Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"FaceData\":" + out.RawString(prefix) + if in.FaceData == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v105First := true + for v105Name, v105Value := range in.FaceData { + if v105First { + v105First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v105Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v105Value) + } + out.RawByte('}') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataThree) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataThree) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataThree) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataThree) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in *jlexer.Lexer, out *structs.FaceDataResponse) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = uint(in.Uint()) + case "Accessories": + out.Accessories = string(in.String()) + case "Body": + out.Body = string(in.String()) + case "Ear": + out.Ear = string(in.String()) + case "Eye": + out.Eye = string(in.String()) + case "EyeLine": + out.EyeLine = string(in.String()) + case "Eyebrow": + out.Eyebrow = string(in.String()) + case "FacialHair": + out.FacialHair = string(in.String()) + case "Glasses": + out.Glasses = string(in.String()) + case "Hair": + out.Hair = string(in.String()) + case "HairBG": + out.HairBG = string(in.String()) + case "HairFlip": + out.HairFlip = bool(in.Bool()) + case "Head": + out.Head = string(in.String()) + case "Jersey": + out.Jersey = string(in.String()) + case "MiscLine": + out.MiscLine = string(in.String()) + case "Mouth": + out.Mouth = string(in.String()) + case "MouthFlip": + out.MouthFlip = bool(in.Bool()) + case "Nose": + out.Nose = string(in.String()) + case "NoseFlip": + out.NoseFlip = bool(in.Bool()) + case "SmileLine": + out.SmileLine = string(in.String()) + case "BodySize": + out.BodySize = float32(in.Float32()) + case "EarSize": + out.EarSize = float32(in.Float32()) + case "EyeAngle": + out.EyeAngle = int8(in.Int8()) + case "EyeBrowAngle": + out.EyeBrowAngle = int8(in.Int8()) + case "FaceSize": + out.FaceSize = float32(in.Float32()) + case "FacialHairShave": + out.FacialHairShave = string(in.String()) + case "NoseSize": + out.NoseSize = float32(in.Float32()) + case "SmileLineSize": + out.SmileLineSize = float32(in.Float32()) + case "SkinColor": + out.SkinColor = string(in.String()) + case "HairColor": + out.HairColor = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out *jwriter.Writer, in structs.FaceDataResponse) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.PlayerID)) + } + { + const prefix string = ",\"Accessories\":" + out.RawString(prefix) + out.String(string(in.Accessories)) + } + { + const prefix string = ",\"Body\":" + out.RawString(prefix) + out.String(string(in.Body)) + } + { + const prefix string = ",\"Ear\":" + out.RawString(prefix) + out.String(string(in.Ear)) + } + { + const prefix string = ",\"Eye\":" + out.RawString(prefix) + out.String(string(in.Eye)) + } + { + const prefix string = ",\"EyeLine\":" + out.RawString(prefix) + out.String(string(in.EyeLine)) + } + { + const prefix string = ",\"Eyebrow\":" + out.RawString(prefix) + out.String(string(in.Eyebrow)) + } + { + const prefix string = ",\"FacialHair\":" + out.RawString(prefix) + out.String(string(in.FacialHair)) + } + { + const prefix string = ",\"Glasses\":" + out.RawString(prefix) + out.String(string(in.Glasses)) + } + { + const prefix string = ",\"Hair\":" + out.RawString(prefix) + out.String(string(in.Hair)) + } + { + const prefix string = ",\"HairBG\":" + out.RawString(prefix) + out.String(string(in.HairBG)) + } + { + const prefix string = ",\"HairFlip\":" + out.RawString(prefix) + out.Bool(bool(in.HairFlip)) + } + { + const prefix string = ",\"Head\":" + out.RawString(prefix) + out.String(string(in.Head)) + } + { + const prefix string = ",\"Jersey\":" + out.RawString(prefix) + out.String(string(in.Jersey)) + } + { + const prefix string = ",\"MiscLine\":" + out.RawString(prefix) + out.String(string(in.MiscLine)) + } + { + const prefix string = ",\"Mouth\":" + out.RawString(prefix) + out.String(string(in.Mouth)) + } + { + const prefix string = ",\"MouthFlip\":" + out.RawString(prefix) + out.Bool(bool(in.MouthFlip)) + } + { + const prefix string = ",\"Nose\":" + out.RawString(prefix) + out.String(string(in.Nose)) + } + { + const prefix string = ",\"NoseFlip\":" + out.RawString(prefix) + out.Bool(bool(in.NoseFlip)) + } + { + const prefix string = ",\"SmileLine\":" + out.RawString(prefix) + out.String(string(in.SmileLine)) + } + { + const prefix string = ",\"BodySize\":" + out.RawString(prefix) + out.Float32(float32(in.BodySize)) + } + { + const prefix string = ",\"EarSize\":" + out.RawString(prefix) + out.Float32(float32(in.EarSize)) + } + { + const prefix string = ",\"EyeAngle\":" + out.RawString(prefix) + out.Int8(int8(in.EyeAngle)) + } + { + const prefix string = ",\"EyeBrowAngle\":" + out.RawString(prefix) + out.Int8(int8(in.EyeBrowAngle)) + } + { + const prefix string = ",\"FaceSize\":" + out.RawString(prefix) + out.Float32(float32(in.FaceSize)) + } + { + const prefix string = ",\"FacialHairShave\":" + out.RawString(prefix) + out.String(string(in.FacialHairShave)) + } + { + const prefix string = ",\"NoseSize\":" + out.RawString(prefix) + out.Float32(float32(in.NoseSize)) + } + { + const prefix string = ",\"SmileLineSize\":" + out.RawString(prefix) + out.Float32(float32(in.SmileLineSize)) + } + { + const prefix string = ",\"SkinColor\":" + out.RawString(prefix) + out.String(string(in.SkinColor)) + } + { + const prefix string = ",\"HairColor\":" + out.RawString(prefix) + out.String(string(in.HairColor)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in *jlexer.Lexer, out *structs.NFLDepthChart) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "DepthChartPlayers": + if in.IsNull() { + in.Skip() + out.DepthChartPlayers = nil + } else { + in.Delim('[') + if out.DepthChartPlayers == nil { + if !in.IsDelim(']') { + out.DepthChartPlayers = make([]structs.NFLDepthChartPosition, 0, 0) + } else { + out.DepthChartPlayers = []structs.NFLDepthChartPosition{} + } + } else { + out.DepthChartPlayers = (out.DepthChartPlayers)[:0] + } + for !in.IsDelim(']') { + var v106 structs.NFLDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in, &v106) + out.DepthChartPlayers = append(out.DepthChartPlayers, v106) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out *jwriter.Writer, in structs.NFLDepthChart) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"DepthChartPlayers\":" + out.RawString(prefix) + if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v107, v108 := range in.DepthChartPlayers { + if v107 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out, v108) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in *jlexer.Lexer, out *structs.NFLDepthChartPosition) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "DepthChartID": + out.DepthChartID = uint(in.Uint()) + case "PlayerID": + out.PlayerID = uint(in.Uint()) + case "Position": + out.Position = string(in.String()) + case "PositionLevel": + out.PositionLevel = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "OriginalPosition": + out.OriginalPosition = string(in.String()) + case "NFLPlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.NFLPlayer) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out *jwriter.Writer, in structs.NFLDepthChartPosition) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"DepthChartID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.DepthChartID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.PlayerID)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"PositionLevel\":" + out.RawString(prefix) + out.String(string(in.PositionLevel)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"OriginalPosition\":" + out.RawString(prefix) + out.String(string(in.OriginalPosition)) + } + { + const prefix string = ",\"NFLPlayer\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.NFLPlayer) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, out *structs.CollegeTeamDepthChart) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "DepthChartPlayers": + if in.IsNull() { + in.Skip() + out.DepthChartPlayers = nil + } else { + in.Delim('[') + if out.DepthChartPlayers == nil { + if !in.IsDelim(']') { + out.DepthChartPlayers = make([]structs.CollegeDepthChartPosition, 0, 0) + } else { + out.DepthChartPlayers = []structs.CollegeDepthChartPosition{} + } + } else { + out.DepthChartPlayers = (out.DepthChartPlayers)[:0] + } + for !in.IsDelim(']') { + var v109 structs.CollegeDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v109) + out.DepthChartPlayers = append(out.DepthChartPlayers, v109) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer, in structs.CollegeTeamDepthChart) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"DepthChartPlayers\":" + out.RawString(prefix) + if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v110, v111 := range in.DepthChartPlayers { + if v110 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v111) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in *jlexer.Lexer, out *structs.CollegeDepthChartPosition) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "DepthChartID": + out.DepthChartID = int(in.Int()) + case "PlayerID": + out.PlayerID = int(in.Int()) + case "Position": + out.Position = string(in.String()) + case "PositionLevel": + out.PositionLevel = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "OriginalPosition": + out.OriginalPosition = string(in.String()) + case "CollegePlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &out.CollegePlayer) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out *jwriter.Writer, in structs.CollegeDepthChartPosition) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"DepthChartID\":" + out.RawString(prefix[1:]) + out.Int(int(in.DepthChartID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"PositionLevel\":" + out.RawString(prefix) + out.String(string(in.PositionLevel)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"OriginalPosition\":" + out.RawString(prefix) + out.String(string(in.OriginalPosition)) + } + { + const prefix string = ",\"CollegePlayer\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, in.CollegePlayer) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in *jlexer.Lexer, out *structs.Croot) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "College": + out.College = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "AffinityOne": + out.AffinityOne = string(in.String()) + case "AffinityTwo": + out.AffinityTwo = string(in.String()) + case "RecruitingStatus": + out.RecruitingStatus = string(in.String()) + case "RecruitModifier": + out.RecruitModifier = float64(in.Float64()) + case "IsCustomCroot": + out.IsCustomCroot = bool(in.Bool()) + case "CustomCrootFor": + out.CustomCrootFor = string(in.String()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "TotalRank": + out.TotalRank = float64(in.Float64()) + case "LeadingTeams": + if in.IsNull() { + in.Skip() + out.LeadingTeams = nil + } else { + in.Delim('[') + if out.LeadingTeams == nil { + if !in.IsDelim(']') { + out.LeadingTeams = make([]structs.LeadingTeams, 0, 1) + } else { + out.LeadingTeams = []structs.LeadingTeams{} + } + } else { + out.LeadingTeams = (out.LeadingTeams)[:0] + } + for !in.IsDelim(']') { + var v112 structs.LeadingTeams + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v112) + out.LeadingTeams = append(out.LeadingTeams, v112) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out *jwriter.Writer, in structs.Croot) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"AffinityOne\":" + out.RawString(prefix) + out.String(string(in.AffinityOne)) + } + { + const prefix string = ",\"AffinityTwo\":" + out.RawString(prefix) + out.String(string(in.AffinityTwo)) + } + { + const prefix string = ",\"RecruitingStatus\":" + out.RawString(prefix) + out.String(string(in.RecruitingStatus)) + } + { + const prefix string = ",\"RecruitModifier\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitModifier)) + } + { + const prefix string = ",\"IsCustomCroot\":" + out.RawString(prefix) + out.Bool(bool(in.IsCustomCroot)) + } + { + const prefix string = ",\"CustomCrootFor\":" + out.RawString(prefix) + out.String(string(in.CustomCrootFor)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"TotalRank\":" + out.RawString(prefix) + out.Float64(float64(in.TotalRank)) + } + { + const prefix string = ",\"LeadingTeams\":" + out.RawString(prefix) + if in.LeadingTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v113, v114 := range in.LeadingTeams { + if v113 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v114) + } + out.RawByte(']') + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in *jlexer.Lexer, out *structs.LeadingTeams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "TeamName": + out.TeamName = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Odds": + out.Odds = float64(in.Float64()) + case "HasScholarship": + out.HasScholarship = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out *jwriter.Writer, in structs.LeadingTeams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Odds\":" + out.RawString(prefix) + out.Float64(float64(in.Odds)) + } + { + const prefix string = ",\"HasScholarship\":" + out.RawString(prefix) + out.Bool(bool(in.HasScholarship)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, out *BootstrapData) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegeTeam": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &out.CollegeTeam) + case "AllCollegeTeams": + if in.IsNull() { + in.Skip() + out.AllCollegeTeams = nil + } else { + in.Delim('[') + if out.AllCollegeTeams == nil { + if !in.IsDelim(']') { + out.AllCollegeTeams = make([]structs.CollegeTeam, 0, 0) + } else { + out.AllCollegeTeams = []structs.CollegeTeam{} + } + } else { + out.AllCollegeTeams = (out.AllCollegeTeams)[:0] + } + for !in.IsDelim(']') { + var v115 structs.CollegeTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v115) + out.AllCollegeTeams = append(out.AllCollegeTeams, v115) + in.WantComma() + } + in.Delim(']') + } + case "CollegeRosterMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v116 []structs.CollegePlayer + if in.IsNull() { + in.Skip() + v116 = nil + } else { + in.Delim('[') + if v116 == nil { + if !in.IsDelim(']') { + v116 = make([]structs.CollegePlayer, 0, 0) + } else { + v116 = []structs.CollegePlayer{} + } + } else { + v116 = (v116)[:0] + } + for !in.IsDelim(']') { + var v117 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v117) + v116 = append(v116, v117) + in.WantComma() + } + in.Delim(']') + } + (out.CollegeRosterMap)[key] = v116 + in.WantComma() + } + in.Delim('}') + } + case "TopCFBPassers": + if in.IsNull() { + in.Skip() + out.TopCFBPassers = nil + } else { + in.Delim('[') + if out.TopCFBPassers == nil { + if !in.IsDelim(']') { + out.TopCFBPassers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBPassers = []structs.CollegePlayer{} + } + } else { + out.TopCFBPassers = (out.TopCFBPassers)[:0] + } + for !in.IsDelim(']') { + var v118 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v118) + out.TopCFBPassers = append(out.TopCFBPassers, v118) + in.WantComma() + } + in.Delim(']') + } + case "TopCFBRushers": + if in.IsNull() { + in.Skip() + out.TopCFBRushers = nil + } else { + in.Delim('[') + if out.TopCFBRushers == nil { + if !in.IsDelim(']') { + out.TopCFBRushers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBRushers = []structs.CollegePlayer{} + } + } else { + out.TopCFBRushers = (out.TopCFBRushers)[:0] + } + for !in.IsDelim(']') { + var v119 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v119) + out.TopCFBRushers = append(out.TopCFBRushers, v119) + in.WantComma() + } + in.Delim(']') + } + case "TopCFBReceivers": + if in.IsNull() { + in.Skip() + out.TopCFBReceivers = nil + } else { + in.Delim('[') + if out.TopCFBReceivers == nil { + if !in.IsDelim(']') { + out.TopCFBReceivers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBReceivers = []structs.CollegePlayer{} + } + } else { + out.TopCFBReceivers = (out.TopCFBReceivers)[:0] + } + for !in.IsDelim(']') { + var v120 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v120) + out.TopCFBReceivers = append(out.TopCFBReceivers, v120) + in.WantComma() + } + in.Delim(']') + } + case "PortalPlayers": + if in.IsNull() { + in.Skip() + out.PortalPlayers = nil + } else { + in.Delim('[') + if out.PortalPlayers == nil { + if !in.IsDelim(']') { + out.PortalPlayers = make([]structs.CollegePlayer, 0, 0) + } else { + out.PortalPlayers = []structs.CollegePlayer{} + } + } else { + out.PortalPlayers = (out.PortalPlayers)[:0] + } + for !in.IsDelim(']') { + var v121 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v121) + out.PortalPlayers = append(out.PortalPlayers, v121) + in.WantComma() + } + in.Delim(']') + } + case "CollegeInjuryReport": + if in.IsNull() { + in.Skip() + out.CollegeInjuryReport = nil + } else { + in.Delim('[') + if out.CollegeInjuryReport == nil { + if !in.IsDelim(']') { + out.CollegeInjuryReport = make([]structs.CollegePlayer, 0, 0) + } else { + out.CollegeInjuryReport = []structs.CollegePlayer{} + } + } else { + out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] + } + for !in.IsDelim(']') { + var v122 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v122) + out.CollegeInjuryReport = append(out.CollegeInjuryReport, v122) + in.WantComma() + } + in.Delim(']') + } + case "CollegeNotifications": + if in.IsNull() { + in.Skip() + out.CollegeNotifications = nil + } else { + in.Delim('[') + if out.CollegeNotifications == nil { + if !in.IsDelim(']') { + out.CollegeNotifications = make([]structs.Notification, 0, 0) + } else { + out.CollegeNotifications = []structs.Notification{} + } + } else { + out.CollegeNotifications = (out.CollegeNotifications)[:0] + } + for !in.IsDelim(']') { + var v123 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v123) + out.CollegeNotifications = append(out.CollegeNotifications, v123) + in.WantComma() + } + in.Delim(']') + } + case "CollegeGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &out.CollegeGameplan) + case "CollegeDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &out.CollegeDepthChart) + case "ProTeam": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &out.ProTeam) + case "AllProTeams": + if in.IsNull() { + in.Skip() + out.AllProTeams = nil + } else { + in.Delim('[') + if out.AllProTeams == nil { + if !in.IsDelim(']') { + out.AllProTeams = make([]structs.NFLTeam, 0, 0) + } else { + out.AllProTeams = []structs.NFLTeam{} + } + } else { + out.AllProTeams = (out.AllProTeams)[:0] + } + for !in.IsDelim(']') { + var v124 structs.NFLTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &v124) + out.AllProTeams = append(out.AllProTeams, v124) + in.WantComma() + } + in.Delim(']') + } + case "ProNotifications": + if in.IsNull() { + in.Skip() + out.ProNotifications = nil + } else { + in.Delim('[') + if out.ProNotifications == nil { + if !in.IsDelim(']') { + out.ProNotifications = make([]structs.Notification, 0, 0) + } else { + out.ProNotifications = []structs.Notification{} + } + } else { + out.ProNotifications = (out.ProNotifications)[:0] + } + for !in.IsDelim(']') { + var v125 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v125) + out.ProNotifications = append(out.ProNotifications, v125) + in.WantComma() + } + in.Delim(']') + } + case "NFLGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &out.NFLGameplan) + case "NFLDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &out.NFLDepthChart) + case "FaceData": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.FaceData = make(map[uint]structs.FaceDataResponse) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v126 structs.FaceDataResponse + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v126) + (out.FaceData)[key] = v126 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer, in BootstrapData) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegeTeam\":" + out.RawString(prefix[1:]) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, in.CollegeTeam) + } + { + const prefix string = ",\"AllCollegeTeams\":" + out.RawString(prefix) + if in.AllCollegeTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v127, v128 := range in.AllCollegeTeams { + if v127 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v128) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeRosterMap\":" + out.RawString(prefix) + if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v129First := true + for v129Name, v129Value := range in.CollegeRosterMap { + if v129First { + v129First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v129Name)) + out.RawByte(':') + if v129Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v130, v131 := range v129Value { + if v130 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v131) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"TopCFBPassers\":" + out.RawString(prefix) + if in.TopCFBPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v132, v133 := range in.TopCFBPassers { + if v132 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v133) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopCFBRushers\":" + out.RawString(prefix) + if in.TopCFBRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v134, v135 := range in.TopCFBRushers { + if v134 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v135) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopCFBReceivers\":" + out.RawString(prefix) + if in.TopCFBReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v136, v137 := range in.TopCFBReceivers { + if v136 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v137) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PortalPlayers\":" + out.RawString(prefix) + if in.PortalPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v138, v139 := range in.PortalPlayers { + if v138 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v139) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeInjuryReport\":" + out.RawString(prefix) + if in.CollegeInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v140, v141 := range in.CollegeInjuryReport { + if v140 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v141) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeNotifications\":" + out.RawString(prefix) + if in.CollegeNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v142, v143 := range in.CollegeNotifications { + if v142 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v143) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, in.CollegeGameplan) + } + { + const prefix string = ",\"CollegeDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, in.CollegeDepthChart) + } + { + const prefix string = ",\"ProTeam\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, in.ProTeam) + } + { + const prefix string = ",\"AllProTeams\":" + out.RawString(prefix) + if in.AllProTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v144, v145 := range in.AllProTeams { + if v144 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, v145) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProNotifications\":" + out.RawString(prefix) + if in.ProNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v146, v147 := range in.ProNotifications { + if v146 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v147) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"NFLGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, in.NFLGameplan) + } + { + const prefix string = ",\"NFLDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, in.NFLDepthChart) + } + { + const prefix string = ",\"FaceData\":" + out.RawString(prefix) + if in.FaceData == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v148First := true + for v148Name, v148Value := range in.FaceData { + if v148First { + v148First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v148Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v148Value) + } + out.RawByte('}') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapData) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapData) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapData) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapData) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in *jlexer.Lexer, out *structs.NFLGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "OffRunToPassRatio": + out.OffRunToPassRatio = int(in.Int()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "BlitzSafeties": + out.BlitzSafeties = bool(in.Bool()) + case "BlitzCorners": + out.BlitzCorners = bool(in.Bool()) + case "LinebackerCoverage": + out.LinebackerCoverage = string(in.String()) + case "CornersCoverage": + out.CornersCoverage = string(in.String()) + case "SafetiesCoverage": + out.SafetiesCoverage = string(in.String()) + case "DiveFocus": + out.DiveFocus = int(in.Int()) + case "PitchFocus": + out.PitchFocus = int(in.Int()) + case "PrimaryHB": + out.PrimaryHB = int(in.Int()) + case "MaximumFGDistance": + out.MaximumFGDistance = int(in.Int()) + case "GoFor4AndShort": + out.GoFor4AndShort = int(in.Int()) + case "GoFor4AndLong": + out.GoFor4AndLong = int(in.Int()) + case "HasSchemePenalty": + out.HasSchemePenalty = bool(in.Bool()) + case "OffenseSchemePenalty": + out.OffenseSchemePenalty = uint(in.Uint()) + case "DefenseSchemePenalty": + out.DefenseSchemePenalty = uint(in.Uint()) + case "DefaultOffense": + out.DefaultOffense = bool(in.Bool()) + case "DefaultDefense": + out.DefaultDefense = bool(in.Bool()) + case "PreviousWeekBye": + out.PreviousWeekBye = bool(in.Bool()) + case "FocusPlays": + out.FocusPlays = string(in.String()) + case "DoubleTeam": + out.DoubleTeam = int(in.Int()) + case "DefFormation1": + out.DefFormation1 = string(in.String()) + case "DefFormation1RunToPass": + out.DefFormation1RunToPass = int(in.Int()) + case "DefFormation1BlitzWeight": + out.DefFormation1BlitzWeight = int(in.Int()) + case "DefFormation1BlitzAggression": + out.DefFormation1BlitzAggression = string(in.String()) + case "DefFormation2": + out.DefFormation2 = string(in.String()) + case "DefFormation2RunToPass": + out.DefFormation2RunToPass = int(in.Int()) + case "DefFormation2BlitzWeight": + out.DefFormation2BlitzWeight = int(in.Int()) + case "DefFormation2BlitzAggression": + out.DefFormation2BlitzAggression = string(in.String()) + case "DefFormation3": + out.DefFormation3 = string(in.String()) + case "DefFormation3RunToPass": + out.DefFormation3RunToPass = int(in.Int()) + case "DefFormation3BlitzWeight": + out.DefFormation3BlitzWeight = int(in.Int()) + case "DefFormation3BlitzAggression": + out.DefFormation3BlitzAggression = string(in.String()) + case "DefFormation4": + out.DefFormation4 = string(in.String()) + case "DefFormation4RunToPass": + out.DefFormation4RunToPass = int(in.Int()) + case "DefFormation4BlitzWeight": + out.DefFormation4BlitzWeight = int(in.Int()) + case "DefFormation4BlitzAggression": + out.DefFormation4BlitzAggression = string(in.String()) + case "DefFormation5": + out.DefFormation5 = string(in.String()) + case "DefFormation5RunToPass": + out.DefFormation5RunToPass = int(in.Int()) + case "DefFormation5BlitzWeight": + out.DefFormation5BlitzWeight = int(in.Int()) + case "DefFormation5BlitzAggression": + out.DefFormation5BlitzAggression = string(in.String()) + case "OffFormation1Name": + out.OffFormation1Name = string(in.String()) + case "OffForm1Weight": + out.OffForm1Weight = int(in.Int()) + case "OffForm1TraditionalRun": + out.OffForm1TraditionalRun = int(in.Int()) + case "OffForm1OptionRun": + out.OffForm1OptionRun = int(in.Int()) + case "OffForm1Pass": + out.OffForm1Pass = int(in.Int()) + case "OffForm1RPO": + out.OffForm1RPO = int(in.Int()) + case "OffFormation2Name": + out.OffFormation2Name = string(in.String()) + case "OffForm2Weight": + out.OffForm2Weight = int(in.Int()) + case "OffForm2TraditionalRun": + out.OffForm2TraditionalRun = int(in.Int()) + case "OffForm2OptionRun": + out.OffForm2OptionRun = int(in.Int()) + case "OffForm2Pass": + out.OffForm2Pass = int(in.Int()) + case "OffForm2RPO": + out.OffForm2RPO = int(in.Int()) + case "OffFormation3Name": + out.OffFormation3Name = string(in.String()) + case "OffForm3Weight": + out.OffForm3Weight = int(in.Int()) + case "OffForm3TraditionalRun": + out.OffForm3TraditionalRun = int(in.Int()) + case "OffForm3OptionRun": + out.OffForm3OptionRun = int(in.Int()) + case "OffForm3Pass": + out.OffForm3Pass = int(in.Int()) + case "OffForm3RPO": + out.OffForm3RPO = int(in.Int()) + case "OffFormation4Name": + out.OffFormation4Name = string(in.String()) + case "OffForm4Weight": + out.OffForm4Weight = int(in.Int()) + case "OffForm4TraditionalRun": + out.OffForm4TraditionalRun = int(in.Int()) + case "OffForm4OptionRun": + out.OffForm4OptionRun = int(in.Int()) + case "OffForm4Pass": + out.OffForm4Pass = int(in.Int()) + case "OffForm4RPO": + out.OffForm4RPO = int(in.Int()) + case "OffFormation5Name": + out.OffFormation5Name = string(in.String()) + case "OffForm5Weight": + out.OffForm5Weight = int(in.Int()) + case "OffForm5TraditionalRun": + out.OffForm5TraditionalRun = int(in.Int()) + case "OffForm5OptionRun": + out.OffForm5OptionRun = int(in.Int()) + case "OffForm5Pass": + out.OffForm5Pass = int(in.Int()) + case "OffForm5RPO": + out.OffForm5RPO = int(in.Int()) + case "RunnerDistributionQB": + out.RunnerDistributionQB = int(in.Int()) + case "RunnerDistributionRB1": + out.RunnerDistributionRB1 = int(in.Int()) + case "RunnerDistributionRB2": + out.RunnerDistributionRB2 = int(in.Int()) + case "RunnerDistributionRB3": + out.RunnerDistributionRB3 = int(in.Int()) + case "RunnerDistributionFB1": + out.RunnerDistributionFB1 = int(in.Int()) + case "RunnerDistributionFB2": + out.RunnerDistributionFB2 = int(in.Int()) + case "RunnerDistributionWR": + out.RunnerDistributionWR = int(in.Int()) + case "RunnerDistributionWRPosition": + out.RunnerDistributionWRPosition = string(in.String()) + case "RunnerDistributionWRID": + out.RunnerDistributionWRID = uint(in.Uint()) + case "RunOutsideLeft": + out.RunOutsideLeft = int(in.Int()) + case "RunOutsideRight": + out.RunOutsideRight = int(in.Int()) + case "RunInsideLeft": + out.RunInsideLeft = int(in.Int()) + case "RunInsideRight": + out.RunInsideRight = int(in.Int()) + case "RunPowerLeft": + out.RunPowerLeft = int(in.Int()) + case "RunPowerRight": + out.RunPowerRight = int(in.Int()) + case "RunDrawLeft": + out.RunDrawLeft = int(in.Int()) + case "RunDrawRight": + out.RunDrawRight = int(in.Int()) + case "ReadOptionLeft": + out.ReadOptionLeft = int(in.Int()) + case "ReadOptionRight": + out.ReadOptionRight = int(in.Int()) + case "SpeedOptionLeft": + out.SpeedOptionLeft = int(in.Int()) + case "SpeedOptionRight": + out.SpeedOptionRight = int(in.Int()) + case "InvertedOptionLeft": + out.InvertedOptionLeft = int(in.Int()) + case "InvertedOptionRight": + out.InvertedOptionRight = int(in.Int()) + case "TripleOptionLeft": + out.TripleOptionLeft = int(in.Int()) + case "TripleOptionRight": + out.TripleOptionRight = int(in.Int()) + case "PassQuick": + out.PassQuick = int(in.Int()) + case "PassShort": + out.PassShort = int(in.Int()) + case "PassLong": + out.PassLong = int(in.Int()) + case "PassDeep": + out.PassDeep = int(in.Int()) + case "PassScreen": + out.PassScreen = int(in.Int()) + case "PassPAShort": + out.PassPAShort = int(in.Int()) + case "PassPALong": + out.PassPALong = int(in.Int()) + case "PassPADeep": + out.PassPADeep = int(in.Int()) + case "LeftVsRight": + out.LeftVsRight = int(in.Int()) + case "ChoiceOutside": + out.ChoiceOutside = int(in.Int()) + case "ChoiceInside": + out.ChoiceInside = int(in.Int()) + case "ChoicePower": + out.ChoicePower = int(in.Int()) + case "PeekOutside": + out.PeekOutside = int(in.Int()) + case "PeekInside": + out.PeekInside = int(in.Int()) + case "PeekPower": + out.PeekPower = int(in.Int()) + case "TargetingWR1": + out.TargetingWR1 = int(in.Int()) + case "TargetDepthWR1": + out.TargetDepthWR1 = string(in.String()) + case "TargetingWR2": + out.TargetingWR2 = int(in.Int()) + case "TargetDepthWR2": + out.TargetDepthWR2 = string(in.String()) + case "TargetingWR3": + out.TargetingWR3 = int(in.Int()) + case "TargetDepthWR3": + out.TargetDepthWR3 = string(in.String()) + case "TargetingWR4": + out.TargetingWR4 = int(in.Int()) + case "TargetDepthWR4": + out.TargetDepthWR4 = string(in.String()) + case "TargetingWR5": + out.TargetingWR5 = int(in.Int()) + case "TargetDepthWR5": + out.TargetDepthWR5 = string(in.String()) + case "TargetingTE1": + out.TargetingTE1 = int(in.Int()) + case "TargetDepthTE1": + out.TargetDepthTE1 = string(in.String()) + case "TargetingTE2": + out.TargetingTE2 = int(in.Int()) + case "TargetDepthTE2": + out.TargetDepthTE2 = string(in.String()) + case "TargetingTE3": + out.TargetingTE3 = int(in.Int()) + case "TargetDepthTE3": + out.TargetDepthTE3 = string(in.String()) + case "TargetingRB1": + out.TargetingRB1 = int(in.Int()) + case "TargetDepthRB1": + out.TargetDepthRB1 = string(in.String()) + case "TargetingRB2": + out.TargetingRB2 = int(in.Int()) + case "TargetDepthRB2": + out.TargetDepthRB2 = string(in.String()) + case "TargetingFB1": + out.TargetingFB1 = int(in.Int()) + case "TargetDepthFB1": + out.TargetDepthFB1 = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out *jwriter.Writer, in structs.NFLGameplan) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"OffRunToPassRatio\":" + out.RawString(prefix) + out.Int(int(in.OffRunToPassRatio)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"BlitzSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzSafeties)) + } + { + const prefix string = ",\"BlitzCorners\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzCorners)) + } + { + const prefix string = ",\"LinebackerCoverage\":" + out.RawString(prefix) + out.String(string(in.LinebackerCoverage)) + } + { + const prefix string = ",\"CornersCoverage\":" + out.RawString(prefix) + out.String(string(in.CornersCoverage)) + } + { + const prefix string = ",\"SafetiesCoverage\":" + out.RawString(prefix) + out.String(string(in.SafetiesCoverage)) + } + { + const prefix string = ",\"DiveFocus\":" + out.RawString(prefix) + out.Int(int(in.DiveFocus)) + } + { + const prefix string = ",\"PitchFocus\":" + out.RawString(prefix) + out.Int(int(in.PitchFocus)) + } + { + const prefix string = ",\"PrimaryHB\":" + out.RawString(prefix) + out.Int(int(in.PrimaryHB)) + } + { + const prefix string = ",\"MaximumFGDistance\":" + out.RawString(prefix) + out.Int(int(in.MaximumFGDistance)) + } + { + const prefix string = ",\"GoFor4AndShort\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndShort)) + } + { + const prefix string = ",\"GoFor4AndLong\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndLong)) + } + { + const prefix string = ",\"HasSchemePenalty\":" + out.RawString(prefix) + out.Bool(bool(in.HasSchemePenalty)) + } + { + const prefix string = ",\"OffenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.OffenseSchemePenalty)) + } + { + const prefix string = ",\"DefenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.DefenseSchemePenalty)) + } + { + const prefix string = ",\"DefaultOffense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultOffense)) + } + { + const prefix string = ",\"DefaultDefense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultDefense)) + } + { + const prefix string = ",\"PreviousWeekBye\":" + out.RawString(prefix) + out.Bool(bool(in.PreviousWeekBye)) + } + { + const prefix string = ",\"FocusPlays\":" + out.RawString(prefix) + out.String(string(in.FocusPlays)) + } + { + const prefix string = ",\"DoubleTeam\":" + out.RawString(prefix) + out.Int(int(in.DoubleTeam)) + } + { + const prefix string = ",\"DefFormation1\":" + out.RawString(prefix) + out.String(string(in.DefFormation1)) + } + { + const prefix string = ",\"DefFormation1RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1RunToPass)) + } + { + const prefix string = ",\"DefFormation1BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1BlitzWeight)) + } + { + const prefix string = ",\"DefFormation1BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation1BlitzAggression)) + } + { + const prefix string = ",\"DefFormation2\":" + out.RawString(prefix) + out.String(string(in.DefFormation2)) + } + { + const prefix string = ",\"DefFormation2RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2RunToPass)) + } + { + const prefix string = ",\"DefFormation2BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2BlitzWeight)) + } + { + const prefix string = ",\"DefFormation2BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation2BlitzAggression)) + } + { + const prefix string = ",\"DefFormation3\":" + out.RawString(prefix) + out.String(string(in.DefFormation3)) + } + { + const prefix string = ",\"DefFormation3RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3RunToPass)) + } + { + const prefix string = ",\"DefFormation3BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3BlitzWeight)) + } + { + const prefix string = ",\"DefFormation3BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation3BlitzAggression)) + } + { + const prefix string = ",\"DefFormation4\":" + out.RawString(prefix) + out.String(string(in.DefFormation4)) + } + { + const prefix string = ",\"DefFormation4RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4RunToPass)) + } + { + const prefix string = ",\"DefFormation4BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4BlitzWeight)) + } + { + const prefix string = ",\"DefFormation4BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation4BlitzAggression)) + } + { + const prefix string = ",\"DefFormation5\":" + out.RawString(prefix) + out.String(string(in.DefFormation5)) + } + { + const prefix string = ",\"DefFormation5RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5RunToPass)) + } + { + const prefix string = ",\"DefFormation5BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5BlitzWeight)) + } + { + const prefix string = ",\"DefFormation5BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation5BlitzAggression)) + } + { + const prefix string = ",\"OffFormation1Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation1Name)) + } + { + const prefix string = ",\"OffForm1Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Weight)) + } + { + const prefix string = ",\"OffForm1TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1TraditionalRun)) + } + { + const prefix string = ",\"OffForm1OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1OptionRun)) + } + { + const prefix string = ",\"OffForm1Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Pass)) + } + { + const prefix string = ",\"OffForm1RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm1RPO)) + } + { + const prefix string = ",\"OffFormation2Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation2Name)) + } + { + const prefix string = ",\"OffForm2Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Weight)) + } + { + const prefix string = ",\"OffForm2TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2TraditionalRun)) + } + { + const prefix string = ",\"OffForm2OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2OptionRun)) + } + { + const prefix string = ",\"OffForm2Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Pass)) + } + { + const prefix string = ",\"OffForm2RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm2RPO)) + } + { + const prefix string = ",\"OffFormation3Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation3Name)) + } + { + const prefix string = ",\"OffForm3Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Weight)) + } + { + const prefix string = ",\"OffForm3TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3TraditionalRun)) + } + { + const prefix string = ",\"OffForm3OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3OptionRun)) + } + { + const prefix string = ",\"OffForm3Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Pass)) + } + { + const prefix string = ",\"OffForm3RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm3RPO)) + } + { + const prefix string = ",\"OffFormation4Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation4Name)) + } + { + const prefix string = ",\"OffForm4Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Weight)) + } + { + const prefix string = ",\"OffForm4TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4TraditionalRun)) + } + { + const prefix string = ",\"OffForm4OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4OptionRun)) + } + { + const prefix string = ",\"OffForm4Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Pass)) + } + { + const prefix string = ",\"OffForm4RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm4RPO)) + } + { + const prefix string = ",\"OffFormation5Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation5Name)) + } + { + const prefix string = ",\"OffForm5Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Weight)) + } + { + const prefix string = ",\"OffForm5TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5TraditionalRun)) + } + { + const prefix string = ",\"OffForm5OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5OptionRun)) + } + { + const prefix string = ",\"OffForm5Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Pass)) + } + { + const prefix string = ",\"OffForm5RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm5RPO)) + } + { + const prefix string = ",\"RunnerDistributionQB\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionQB)) + } + { + const prefix string = ",\"RunnerDistributionRB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB1)) + } + { + const prefix string = ",\"RunnerDistributionRB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB2)) + } + { + const prefix string = ",\"RunnerDistributionRB3\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB3)) + } + { + const prefix string = ",\"RunnerDistributionFB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB1)) + } + { + const prefix string = ",\"RunnerDistributionFB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB2)) + } + { + const prefix string = ",\"RunnerDistributionWR\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionWR)) + } + { + const prefix string = ",\"RunnerDistributionWRPosition\":" + out.RawString(prefix) + out.String(string(in.RunnerDistributionWRPosition)) + } + { + const prefix string = ",\"RunnerDistributionWRID\":" + out.RawString(prefix) + out.Uint(uint(in.RunnerDistributionWRID)) + } + { + const prefix string = ",\"RunOutsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideLeft)) + } + { + const prefix string = ",\"RunOutsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideRight)) + } + { + const prefix string = ",\"RunInsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunInsideLeft)) + } + { + const prefix string = ",\"RunInsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunInsideRight)) + } + { + const prefix string = ",\"RunPowerLeft\":" + out.RawString(prefix) + out.Int(int(in.RunPowerLeft)) + } + { + const prefix string = ",\"RunPowerRight\":" + out.RawString(prefix) + out.Int(int(in.RunPowerRight)) + } + { + const prefix string = ",\"RunDrawLeft\":" + out.RawString(prefix) + out.Int(int(in.RunDrawLeft)) + } + { + const prefix string = ",\"RunDrawRight\":" + out.RawString(prefix) + out.Int(int(in.RunDrawRight)) + } + { + const prefix string = ",\"ReadOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionLeft)) + } + { + const prefix string = ",\"ReadOptionRight\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionRight)) + } + { + const prefix string = ",\"SpeedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionLeft)) + } + { + const prefix string = ",\"SpeedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionRight)) + } + { + const prefix string = ",\"InvertedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionLeft)) + } + { + const prefix string = ",\"InvertedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionRight)) + } + { + const prefix string = ",\"TripleOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionLeft)) + } + { + const prefix string = ",\"TripleOptionRight\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionRight)) + } + { + const prefix string = ",\"PassQuick\":" + out.RawString(prefix) + out.Int(int(in.PassQuick)) + } + { + const prefix string = ",\"PassShort\":" + out.RawString(prefix) + out.Int(int(in.PassShort)) + } + { + const prefix string = ",\"PassLong\":" + out.RawString(prefix) + out.Int(int(in.PassLong)) + } + { + const prefix string = ",\"PassDeep\":" + out.RawString(prefix) + out.Int(int(in.PassDeep)) + } + { + const prefix string = ",\"PassScreen\":" + out.RawString(prefix) + out.Int(int(in.PassScreen)) + } + { + const prefix string = ",\"PassPAShort\":" + out.RawString(prefix) + out.Int(int(in.PassPAShort)) + } + { + const prefix string = ",\"PassPALong\":" + out.RawString(prefix) + out.Int(int(in.PassPALong)) + } + { + const prefix string = ",\"PassPADeep\":" + out.RawString(prefix) + out.Int(int(in.PassPADeep)) + } + { + const prefix string = ",\"LeftVsRight\":" + out.RawString(prefix) + out.Int(int(in.LeftVsRight)) + } + { + const prefix string = ",\"ChoiceOutside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceOutside)) + } + { + const prefix string = ",\"ChoiceInside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceInside)) + } + { + const prefix string = ",\"ChoicePower\":" + out.RawString(prefix) + out.Int(int(in.ChoicePower)) + } + { + const prefix string = ",\"PeekOutside\":" + out.RawString(prefix) + out.Int(int(in.PeekOutside)) + } + { + const prefix string = ",\"PeekInside\":" + out.RawString(prefix) + out.Int(int(in.PeekInside)) + } + { + const prefix string = ",\"PeekPower\":" + out.RawString(prefix) + out.Int(int(in.PeekPower)) + } + { + const prefix string = ",\"TargetingWR1\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR1)) + } + { + const prefix string = ",\"TargetDepthWR1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR1)) + } + { + const prefix string = ",\"TargetingWR2\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR2)) + } + { + const prefix string = ",\"TargetDepthWR2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR2)) + } + { + const prefix string = ",\"TargetingWR3\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR3)) + } + { + const prefix string = ",\"TargetDepthWR3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR3)) + } + { + const prefix string = ",\"TargetingWR4\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR4)) + } + { + const prefix string = ",\"TargetDepthWR4\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR4)) + } + { + const prefix string = ",\"TargetingWR5\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR5)) + } + { + const prefix string = ",\"TargetDepthWR5\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR5)) + } + { + const prefix string = ",\"TargetingTE1\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE1)) + } + { + const prefix string = ",\"TargetDepthTE1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE1)) + } + { + const prefix string = ",\"TargetingTE2\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE2)) + } + { + const prefix string = ",\"TargetDepthTE2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE2)) + } + { + const prefix string = ",\"TargetingTE3\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE3)) + } + { + const prefix string = ",\"TargetDepthTE3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE3)) + } + { + const prefix string = ",\"TargetingRB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB1)) + } + { + const prefix string = ",\"TargetDepthRB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB1)) + } + { + const prefix string = ",\"TargetingRB2\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB2)) + } + { + const prefix string = ",\"TargetDepthRB2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB2)) + } + { + const prefix string = ",\"TargetingFB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingFB1)) + } + { + const prefix string = ",\"TargetDepthFB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthFB1)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, out *structs.NFLTeam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "Conference": + out.Conference = string(in.String()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "Division": + out.Division = string(in.String()) + case "NFLOwnerID": + out.NFLOwnerID = uint(in.Uint()) + case "NFLOwnerName": + out.NFLOwnerName = string(in.String()) + case "NFLCoachID": + out.NFLCoachID = uint(in.Uint()) + case "NFLCoachName": + out.NFLCoachName = string(in.String()) + case "NFLGMID": + out.NFLGMID = uint(in.Uint()) + case "NFLGMName": + out.NFLGMName = string(in.String()) + case "NFLAssistantID": + out.NFLAssistantID = uint(in.Uint()) + case "NFLAssistantName": + out.NFLAssistantName = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "UsedTagThisSeason": + out.UsedTagThisSeason = bool(in.Bool()) + case "Capsheet": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &out.Capsheet) + case "Contracts": + if in.IsNull() { + in.Skip() + out.Contracts = nil + } else { + in.Delim('[') + if out.Contracts == nil { + if !in.IsDelim(']') { + out.Contracts = make([]structs.NFLContract, 0, 0) + } else { + out.Contracts = []structs.NFLContract{} + } + } else { + out.Contracts = (out.Contracts)[:0] + } + for !in.IsDelim(']') { + var v149 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v149) + out.Contracts = append(out.Contracts, v149) + in.WantComma() + } + in.Delim(']') + } + case "DraftPicks": + if in.IsNull() { + in.Skip() + out.DraftPicks = nil + } else { + in.Delim('[') + if out.DraftPicks == nil { + if !in.IsDelim(']') { + out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) + } else { + out.DraftPicks = []structs.NFLDraftPick{} + } + } else { + out.DraftPicks = (out.DraftPicks)[:0] + } + for !in.IsDelim(']') { + var v150 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v150) + out.DraftPicks = append(out.DraftPicks, v150) + in.WantComma() + } + in.Delim(']') + } + case "TeamStats": + if in.IsNull() { + in.Skip() + out.TeamStats = nil + } else { + in.Delim('[') + if out.TeamStats == nil { + if !in.IsDelim(']') { + out.TeamStats = make([]structs.NFLTeamStats, 0, 0) + } else { + out.TeamStats = []structs.NFLTeamStats{} + } + } else { + out.TeamStats = (out.TeamStats)[:0] + } + for !in.IsDelim(']') { + var v151 structs.NFLTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v151) + out.TeamStats = append(out.TeamStats, v151) + in.WantComma() + } + in.Delim(']') + } + case "TeamSeasonStats": + if in.IsNull() { + in.Skip() + out.TeamSeasonStats = nil + } else { + in.Delim('[') + if out.TeamSeasonStats == nil { + if !in.IsDelim(']') { + out.TeamSeasonStats = make([]structs.NFLTeamSeasonStats, 0, 0) + } else { + out.TeamSeasonStats = []structs.NFLTeamSeasonStats{} + } + } else { + out.TeamSeasonStats = (out.TeamSeasonStats)[:0] + } + for !in.IsDelim(']') { + var v152 structs.NFLTeamSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v152) + out.TeamSeasonStats = append(out.TeamSeasonStats, v152) + in.WantComma() + } + in.Delim(']') + } + case "TeamDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &out.TeamDepthChart) + case "TeamGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &out.TeamGameplan) + case "Standings": + if in.IsNull() { + in.Skip() + out.Standings = nil + } else { + in.Delim('[') + if out.Standings == nil { + if !in.IsDelim(']') { + out.Standings = make([]structs.NFLStandings, 0, 0) + } else { + out.Standings = []structs.NFLStandings{} + } + } else { + out.Standings = (out.Standings)[:0] + } + for !in.IsDelim(']') { + var v153 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v153) + out.Standings = append(out.Standings, v153) + in.WantComma() + } + in.Delim(']') + } + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Coach": + out.Coach = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Country": + out.Country = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "StadiumCapacity": + out.StadiumCapacity = int(in.Int()) + case "RecordAttendance": + out.RecordAttendance = int(in.Int()) + case "Enrollment": + out.Enrollment = int(in.Int()) + case "FirstPlayed": + out.FirstPlayed = int(in.Int()) + case "ColorOne": + out.ColorOne = string(in.String()) + case "ColorTwo": + out.ColorTwo = string(in.String()) + case "ColorThree": + out.ColorThree = string(in.String()) + case "DiscordID": + out.DiscordID = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "OffenseGrade": + out.OffenseGrade = string(in.String()) + case "DefenseGrade": + out.DefenseGrade = string(in.String()) + case "SpecialTeamsGrade": + out.SpecialTeamsGrade = string(in.String()) + case "PenaltyMarks": + out.PenaltyMarks = uint8(in.Uint8()) + case "JerseyType": + out.JerseyType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer, in structs.NFLTeam) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"Conference\":" + out.RawString(prefix) + out.String(string(in.Conference)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionID)) + } + { + const prefix string = ",\"Division\":" + out.RawString(prefix) + out.String(string(in.Division)) + } + { + const prefix string = ",\"NFLOwnerID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLOwnerID)) + } + { + const prefix string = ",\"NFLOwnerName\":" + out.RawString(prefix) + out.String(string(in.NFLOwnerName)) + } + { + const prefix string = ",\"NFLCoachID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLCoachID)) + } + { + const prefix string = ",\"NFLCoachName\":" + out.RawString(prefix) + out.String(string(in.NFLCoachName)) + } + { + const prefix string = ",\"NFLGMID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLGMID)) + } + { + const prefix string = ",\"NFLGMName\":" + out.RawString(prefix) + out.String(string(in.NFLGMName)) + } + { + const prefix string = ",\"NFLAssistantID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLAssistantID)) + } + { + const prefix string = ",\"NFLAssistantName\":" + out.RawString(prefix) + out.String(string(in.NFLAssistantName)) + } + { + const prefix string = ",\"WaiverOrder\":" + out.RawString(prefix) + out.Uint(uint(in.WaiverOrder)) + } + { + const prefix string = ",\"UsedTagThisSeason\":" + out.RawString(prefix) + out.Bool(bool(in.UsedTagThisSeason)) + } + { + const prefix string = ",\"Capsheet\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, in.Capsheet) + } + { + const prefix string = ",\"Contracts\":" + out.RawString(prefix) + if in.Contracts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v154, v155 := range in.Contracts { + if v154 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v155) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"DraftPicks\":" + out.RawString(prefix) + if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v156, v157 := range in.DraftPicks { + if v156 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v157) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamStats\":" + out.RawString(prefix) + if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v158, v159 := range in.TeamStats { + if v158 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v159) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamSeasonStats\":" + out.RawString(prefix) + if in.TeamSeasonStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v160, v161 := range in.TeamSeasonStats { + if v160 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v161) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, in.TeamDepthChart) + } + { + const prefix string = ",\"TeamGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, in.TeamGameplan) + } + { + const prefix string = ",\"Standings\":" + out.RawString(prefix) + if in.Standings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v162, v163 := range in.Standings { + if v162 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v163) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Country\":" + out.RawString(prefix) + out.String(string(in.Country)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"StadiumCapacity\":" + out.RawString(prefix) + out.Int(int(in.StadiumCapacity)) + } + { + const prefix string = ",\"RecordAttendance\":" + out.RawString(prefix) + out.Int(int(in.RecordAttendance)) + } + { + const prefix string = ",\"Enrollment\":" + out.RawString(prefix) + out.Int(int(in.Enrollment)) + } + { + const prefix string = ",\"FirstPlayed\":" + out.RawString(prefix) + out.Int(int(in.FirstPlayed)) + } + { + const prefix string = ",\"ColorOne\":" + out.RawString(prefix) + out.String(string(in.ColorOne)) + } + { + const prefix string = ",\"ColorTwo\":" + out.RawString(prefix) + out.String(string(in.ColorTwo)) + } + { + const prefix string = ",\"ColorThree\":" + out.RawString(prefix) + out.String(string(in.ColorThree)) + } + { + const prefix string = ",\"DiscordID\":" + out.RawString(prefix) + out.String(string(in.DiscordID)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"OffenseGrade\":" + out.RawString(prefix) + out.String(string(in.OffenseGrade)) + } + { + const prefix string = ",\"DefenseGrade\":" + out.RawString(prefix) + out.String(string(in.DefenseGrade)) + } + { + const prefix string = ",\"SpecialTeamsGrade\":" + out.RawString(prefix) + out.String(string(in.SpecialTeamsGrade)) + } + { + const prefix string = ",\"PenaltyMarks\":" + out.RawString(prefix) + out.Uint8(uint8(in.PenaltyMarks)) + } + { + const prefix string = ",\"JerseyType\":" + out.RawString(prefix) + out.Uint8(uint8(in.JerseyType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, out *structs.NFLTeamSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = int(in.Int()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "TotalOffensiveYards": + out.TotalOffensiveYards = int(in.Int()) + case "TotalYardsAllowed": + out.TotalYardsAllowed = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "Turnovers": + out.Turnovers = int(in.Int()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer, in structs.NFLTeamSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"TotalOffensiveYards\":" + out.RawString(prefix) + out.Int(int(in.TotalOffensiveYards)) + } + { + const prefix string = ",\"TotalYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.TotalYardsAllowed)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"Turnovers\":" + out.RawString(prefix) + out.Int(int(in.Turnovers)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.NFLTeamStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "GameID": + out.GameID = uint(in.Uint()) + case "WeekID": + out.WeekID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBRating": + out.QBRating = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer, in structs.NFLTeamStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Uint(uint(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Uint(uint(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Int(int(in.QBRating)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, out *structs.NFLDraftPick) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "DrafteeID": + out.DrafteeID = uint(in.Uint()) + case "DraftRound": + out.DraftRound = uint(in.Uint()) + case "DraftNumber": + out.DraftNumber = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "OriginalTeamID": + out.OriginalTeamID = uint(in.Uint()) + case "OriginalTeam": + out.OriginalTeam = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "DraftValue": + out.DraftValue = float64(in.Float64()) + case "Notes": + out.Notes = string(in.String()) + case "SelectedPlayerID": + out.SelectedPlayerID = uint(in.Uint()) + case "SelectedPlayerName": + out.SelectedPlayerName = string(in.String()) + case "SelectedPlayerPosition": + out.SelectedPlayerPosition = string(in.String()) + case "IsCompensation": + out.IsCompensation = bool(in.Bool()) + case "IsVoid": + out.IsVoid = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer, in structs.NFLDraftPick) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Uint(uint(in.Season)) + } + { + const prefix string = ",\"DrafteeID\":" + out.RawString(prefix) + out.Uint(uint(in.DrafteeID)) + } + { + const prefix string = ",\"DraftRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftRound)) + } + { + const prefix string = ",\"DraftNumber\":" + out.RawString(prefix) + out.Uint(uint(in.DraftNumber)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"OriginalTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.OriginalTeamID)) + } + { + const prefix string = ",\"OriginalTeam\":" + out.RawString(prefix) + out.String(string(in.OriginalTeam)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"DraftValue\":" + out.RawString(prefix) + out.Float64(float64(in.DraftValue)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"SelectedPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.SelectedPlayerID)) + } + { + const prefix string = ",\"SelectedPlayerName\":" + out.RawString(prefix) + out.String(string(in.SelectedPlayerName)) + } + { + const prefix string = ",\"SelectedPlayerPosition\":" + out.RawString(prefix) + out.String(string(in.SelectedPlayerPosition)) + } + { + const prefix string = ",\"IsCompensation\":" + out.RawString(prefix) + out.Bool(bool(in.IsCompensation)) + } + { + const prefix string = ",\"IsVoid\":" + out.RawString(prefix) + out.Bool(bool(in.IsVoid)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in *jlexer.Lexer, out *structs.CollegeGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "OffRunToPassRatio": + out.OffRunToPassRatio = int(in.Int()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "BlitzSafeties": + out.BlitzSafeties = bool(in.Bool()) + case "BlitzCorners": + out.BlitzCorners = bool(in.Bool()) + case "LinebackerCoverage": + out.LinebackerCoverage = string(in.String()) + case "CornersCoverage": + out.CornersCoverage = string(in.String()) + case "SafetiesCoverage": + out.SafetiesCoverage = string(in.String()) + case "DiveFocus": + out.DiveFocus = int(in.Int()) + case "PitchFocus": + out.PitchFocus = int(in.Int()) + case "PrimaryHB": + out.PrimaryHB = int(in.Int()) + case "MaximumFGDistance": + out.MaximumFGDistance = int(in.Int()) + case "GoFor4AndShort": + out.GoFor4AndShort = int(in.Int()) + case "GoFor4AndLong": + out.GoFor4AndLong = int(in.Int()) + case "HasSchemePenalty": + out.HasSchemePenalty = bool(in.Bool()) + case "OffenseSchemePenalty": + out.OffenseSchemePenalty = uint(in.Uint()) + case "DefenseSchemePenalty": + out.DefenseSchemePenalty = uint(in.Uint()) + case "DefaultOffense": + out.DefaultOffense = bool(in.Bool()) + case "DefaultDefense": + out.DefaultDefense = bool(in.Bool()) + case "PreviousWeekBye": + out.PreviousWeekBye = bool(in.Bool()) + case "FocusPlays": + out.FocusPlays = string(in.String()) + case "DoubleTeam": + out.DoubleTeam = int(in.Int()) + case "DefFormation1": + out.DefFormation1 = string(in.String()) + case "DefFormation1RunToPass": + out.DefFormation1RunToPass = int(in.Int()) + case "DefFormation1BlitzWeight": + out.DefFormation1BlitzWeight = int(in.Int()) + case "DefFormation1BlitzAggression": + out.DefFormation1BlitzAggression = string(in.String()) + case "DefFormation2": + out.DefFormation2 = string(in.String()) + case "DefFormation2RunToPass": + out.DefFormation2RunToPass = int(in.Int()) + case "DefFormation2BlitzWeight": + out.DefFormation2BlitzWeight = int(in.Int()) + case "DefFormation2BlitzAggression": + out.DefFormation2BlitzAggression = string(in.String()) + case "DefFormation3": + out.DefFormation3 = string(in.String()) + case "DefFormation3RunToPass": + out.DefFormation3RunToPass = int(in.Int()) + case "DefFormation3BlitzWeight": + out.DefFormation3BlitzWeight = int(in.Int()) + case "DefFormation3BlitzAggression": + out.DefFormation3BlitzAggression = string(in.String()) + case "DefFormation4": + out.DefFormation4 = string(in.String()) + case "DefFormation4RunToPass": + out.DefFormation4RunToPass = int(in.Int()) + case "DefFormation4BlitzWeight": + out.DefFormation4BlitzWeight = int(in.Int()) + case "DefFormation4BlitzAggression": + out.DefFormation4BlitzAggression = string(in.String()) + case "DefFormation5": + out.DefFormation5 = string(in.String()) + case "DefFormation5RunToPass": + out.DefFormation5RunToPass = int(in.Int()) + case "DefFormation5BlitzWeight": + out.DefFormation5BlitzWeight = int(in.Int()) + case "DefFormation5BlitzAggression": + out.DefFormation5BlitzAggression = string(in.String()) + case "OffFormation1Name": + out.OffFormation1Name = string(in.String()) + case "OffForm1Weight": + out.OffForm1Weight = int(in.Int()) + case "OffForm1TraditionalRun": + out.OffForm1TraditionalRun = int(in.Int()) + case "OffForm1OptionRun": + out.OffForm1OptionRun = int(in.Int()) + case "OffForm1Pass": + out.OffForm1Pass = int(in.Int()) + case "OffForm1RPO": + out.OffForm1RPO = int(in.Int()) + case "OffFormation2Name": + out.OffFormation2Name = string(in.String()) + case "OffForm2Weight": + out.OffForm2Weight = int(in.Int()) + case "OffForm2TraditionalRun": + out.OffForm2TraditionalRun = int(in.Int()) + case "OffForm2OptionRun": + out.OffForm2OptionRun = int(in.Int()) + case "OffForm2Pass": + out.OffForm2Pass = int(in.Int()) + case "OffForm2RPO": + out.OffForm2RPO = int(in.Int()) + case "OffFormation3Name": + out.OffFormation3Name = string(in.String()) + case "OffForm3Weight": + out.OffForm3Weight = int(in.Int()) + case "OffForm3TraditionalRun": + out.OffForm3TraditionalRun = int(in.Int()) + case "OffForm3OptionRun": + out.OffForm3OptionRun = int(in.Int()) + case "OffForm3Pass": + out.OffForm3Pass = int(in.Int()) + case "OffForm3RPO": + out.OffForm3RPO = int(in.Int()) + case "OffFormation4Name": + out.OffFormation4Name = string(in.String()) + case "OffForm4Weight": + out.OffForm4Weight = int(in.Int()) + case "OffForm4TraditionalRun": + out.OffForm4TraditionalRun = int(in.Int()) + case "OffForm4OptionRun": + out.OffForm4OptionRun = int(in.Int()) + case "OffForm4Pass": + out.OffForm4Pass = int(in.Int()) + case "OffForm4RPO": + out.OffForm4RPO = int(in.Int()) + case "OffFormation5Name": + out.OffFormation5Name = string(in.String()) + case "OffForm5Weight": + out.OffForm5Weight = int(in.Int()) + case "OffForm5TraditionalRun": + out.OffForm5TraditionalRun = int(in.Int()) + case "OffForm5OptionRun": + out.OffForm5OptionRun = int(in.Int()) + case "OffForm5Pass": + out.OffForm5Pass = int(in.Int()) + case "OffForm5RPO": + out.OffForm5RPO = int(in.Int()) + case "RunnerDistributionQB": + out.RunnerDistributionQB = int(in.Int()) + case "RunnerDistributionRB1": + out.RunnerDistributionRB1 = int(in.Int()) + case "RunnerDistributionRB2": + out.RunnerDistributionRB2 = int(in.Int()) + case "RunnerDistributionRB3": + out.RunnerDistributionRB3 = int(in.Int()) + case "RunnerDistributionFB1": + out.RunnerDistributionFB1 = int(in.Int()) + case "RunnerDistributionFB2": + out.RunnerDistributionFB2 = int(in.Int()) + case "RunnerDistributionWR": + out.RunnerDistributionWR = int(in.Int()) + case "RunnerDistributionWRPosition": + out.RunnerDistributionWRPosition = string(in.String()) + case "RunnerDistributionWRID": + out.RunnerDistributionWRID = uint(in.Uint()) + case "RunOutsideLeft": + out.RunOutsideLeft = int(in.Int()) + case "RunOutsideRight": + out.RunOutsideRight = int(in.Int()) + case "RunInsideLeft": + out.RunInsideLeft = int(in.Int()) + case "RunInsideRight": + out.RunInsideRight = int(in.Int()) + case "RunPowerLeft": + out.RunPowerLeft = int(in.Int()) + case "RunPowerRight": + out.RunPowerRight = int(in.Int()) + case "RunDrawLeft": + out.RunDrawLeft = int(in.Int()) + case "RunDrawRight": + out.RunDrawRight = int(in.Int()) + case "ReadOptionLeft": + out.ReadOptionLeft = int(in.Int()) + case "ReadOptionRight": + out.ReadOptionRight = int(in.Int()) + case "SpeedOptionLeft": + out.SpeedOptionLeft = int(in.Int()) + case "SpeedOptionRight": + out.SpeedOptionRight = int(in.Int()) + case "InvertedOptionLeft": + out.InvertedOptionLeft = int(in.Int()) + case "InvertedOptionRight": + out.InvertedOptionRight = int(in.Int()) + case "TripleOptionLeft": + out.TripleOptionLeft = int(in.Int()) + case "TripleOptionRight": + out.TripleOptionRight = int(in.Int()) + case "PassQuick": + out.PassQuick = int(in.Int()) + case "PassShort": + out.PassShort = int(in.Int()) + case "PassLong": + out.PassLong = int(in.Int()) + case "PassDeep": + out.PassDeep = int(in.Int()) + case "PassScreen": + out.PassScreen = int(in.Int()) + case "PassPAShort": + out.PassPAShort = int(in.Int()) + case "PassPALong": + out.PassPALong = int(in.Int()) + case "PassPADeep": + out.PassPADeep = int(in.Int()) + case "LeftVsRight": + out.LeftVsRight = int(in.Int()) + case "ChoiceOutside": + out.ChoiceOutside = int(in.Int()) + case "ChoiceInside": + out.ChoiceInside = int(in.Int()) + case "ChoicePower": + out.ChoicePower = int(in.Int()) + case "PeekOutside": + out.PeekOutside = int(in.Int()) + case "PeekInside": + out.PeekInside = int(in.Int()) + case "PeekPower": + out.PeekPower = int(in.Int()) + case "TargetingWR1": + out.TargetingWR1 = int(in.Int()) + case "TargetDepthWR1": + out.TargetDepthWR1 = string(in.String()) + case "TargetingWR2": + out.TargetingWR2 = int(in.Int()) + case "TargetDepthWR2": + out.TargetDepthWR2 = string(in.String()) + case "TargetingWR3": + out.TargetingWR3 = int(in.Int()) + case "TargetDepthWR3": + out.TargetDepthWR3 = string(in.String()) + case "TargetingWR4": + out.TargetingWR4 = int(in.Int()) + case "TargetDepthWR4": + out.TargetDepthWR4 = string(in.String()) + case "TargetingWR5": + out.TargetingWR5 = int(in.Int()) + case "TargetDepthWR5": + out.TargetDepthWR5 = string(in.String()) + case "TargetingTE1": + out.TargetingTE1 = int(in.Int()) + case "TargetDepthTE1": + out.TargetDepthTE1 = string(in.String()) + case "TargetingTE2": + out.TargetingTE2 = int(in.Int()) + case "TargetDepthTE2": + out.TargetDepthTE2 = string(in.String()) + case "TargetingTE3": + out.TargetingTE3 = int(in.Int()) + case "TargetDepthTE3": + out.TargetDepthTE3 = string(in.String()) + case "TargetingRB1": + out.TargetingRB1 = int(in.Int()) + case "TargetDepthRB1": + out.TargetDepthRB1 = string(in.String()) + case "TargetingRB2": + out.TargetingRB2 = int(in.Int()) + case "TargetDepthRB2": + out.TargetDepthRB2 = string(in.String()) + case "TargetingFB1": + out.TargetingFB1 = int(in.Int()) + case "TargetDepthFB1": + out.TargetDepthFB1 = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out *jwriter.Writer, in structs.CollegeGameplan) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"OffRunToPassRatio\":" + out.RawString(prefix) + out.Int(int(in.OffRunToPassRatio)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"BlitzSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzSafeties)) + } + { + const prefix string = ",\"BlitzCorners\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzCorners)) + } + { + const prefix string = ",\"LinebackerCoverage\":" + out.RawString(prefix) + out.String(string(in.LinebackerCoverage)) + } + { + const prefix string = ",\"CornersCoverage\":" + out.RawString(prefix) + out.String(string(in.CornersCoverage)) + } + { + const prefix string = ",\"SafetiesCoverage\":" + out.RawString(prefix) + out.String(string(in.SafetiesCoverage)) + } + { + const prefix string = ",\"DiveFocus\":" + out.RawString(prefix) + out.Int(int(in.DiveFocus)) + } + { + const prefix string = ",\"PitchFocus\":" + out.RawString(prefix) + out.Int(int(in.PitchFocus)) + } + { + const prefix string = ",\"PrimaryHB\":" + out.RawString(prefix) + out.Int(int(in.PrimaryHB)) + } + { + const prefix string = ",\"MaximumFGDistance\":" + out.RawString(prefix) + out.Int(int(in.MaximumFGDistance)) + } + { + const prefix string = ",\"GoFor4AndShort\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndShort)) + } + { + const prefix string = ",\"GoFor4AndLong\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndLong)) + } + { + const prefix string = ",\"HasSchemePenalty\":" + out.RawString(prefix) + out.Bool(bool(in.HasSchemePenalty)) + } + { + const prefix string = ",\"OffenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.OffenseSchemePenalty)) + } + { + const prefix string = ",\"DefenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.DefenseSchemePenalty)) + } + { + const prefix string = ",\"DefaultOffense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultOffense)) + } + { + const prefix string = ",\"DefaultDefense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultDefense)) + } + { + const prefix string = ",\"PreviousWeekBye\":" + out.RawString(prefix) + out.Bool(bool(in.PreviousWeekBye)) + } + { + const prefix string = ",\"FocusPlays\":" + out.RawString(prefix) + out.String(string(in.FocusPlays)) + } + { + const prefix string = ",\"DoubleTeam\":" + out.RawString(prefix) + out.Int(int(in.DoubleTeam)) + } + { + const prefix string = ",\"DefFormation1\":" + out.RawString(prefix) + out.String(string(in.DefFormation1)) + } + { + const prefix string = ",\"DefFormation1RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1RunToPass)) + } + { + const prefix string = ",\"DefFormation1BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1BlitzWeight)) + } + { + const prefix string = ",\"DefFormation1BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation1BlitzAggression)) + } + { + const prefix string = ",\"DefFormation2\":" + out.RawString(prefix) + out.String(string(in.DefFormation2)) + } + { + const prefix string = ",\"DefFormation2RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2RunToPass)) + } + { + const prefix string = ",\"DefFormation2BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2BlitzWeight)) + } + { + const prefix string = ",\"DefFormation2BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation2BlitzAggression)) + } + { + const prefix string = ",\"DefFormation3\":" + out.RawString(prefix) + out.String(string(in.DefFormation3)) + } + { + const prefix string = ",\"DefFormation3RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3RunToPass)) + } + { + const prefix string = ",\"DefFormation3BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3BlitzWeight)) + } + { + const prefix string = ",\"DefFormation3BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation3BlitzAggression)) + } + { + const prefix string = ",\"DefFormation4\":" + out.RawString(prefix) + out.String(string(in.DefFormation4)) + } + { + const prefix string = ",\"DefFormation4RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4RunToPass)) + } + { + const prefix string = ",\"DefFormation4BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4BlitzWeight)) + } + { + const prefix string = ",\"DefFormation4BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation4BlitzAggression)) + } + { + const prefix string = ",\"DefFormation5\":" + out.RawString(prefix) + out.String(string(in.DefFormation5)) + } + { + const prefix string = ",\"DefFormation5RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5RunToPass)) + } + { + const prefix string = ",\"DefFormation5BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5BlitzWeight)) + } + { + const prefix string = ",\"DefFormation5BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation5BlitzAggression)) + } + { + const prefix string = ",\"OffFormation1Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation1Name)) + } + { + const prefix string = ",\"OffForm1Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Weight)) + } + { + const prefix string = ",\"OffForm1TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1TraditionalRun)) + } + { + const prefix string = ",\"OffForm1OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1OptionRun)) + } + { + const prefix string = ",\"OffForm1Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Pass)) + } + { + const prefix string = ",\"OffForm1RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm1RPO)) + } + { + const prefix string = ",\"OffFormation2Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation2Name)) + } + { + const prefix string = ",\"OffForm2Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Weight)) + } + { + const prefix string = ",\"OffForm2TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2TraditionalRun)) + } + { + const prefix string = ",\"OffForm2OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2OptionRun)) + } + { + const prefix string = ",\"OffForm2Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Pass)) + } + { + const prefix string = ",\"OffForm2RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm2RPO)) + } + { + const prefix string = ",\"OffFormation3Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation3Name)) + } + { + const prefix string = ",\"OffForm3Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Weight)) + } + { + const prefix string = ",\"OffForm3TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3TraditionalRun)) + } + { + const prefix string = ",\"OffForm3OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3OptionRun)) + } + { + const prefix string = ",\"OffForm3Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Pass)) + } + { + const prefix string = ",\"OffForm3RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm3RPO)) + } + { + const prefix string = ",\"OffFormation4Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation4Name)) + } + { + const prefix string = ",\"OffForm4Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Weight)) + } + { + const prefix string = ",\"OffForm4TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4TraditionalRun)) + } + { + const prefix string = ",\"OffForm4OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4OptionRun)) + } + { + const prefix string = ",\"OffForm4Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Pass)) + } + { + const prefix string = ",\"OffForm4RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm4RPO)) + } + { + const prefix string = ",\"OffFormation5Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation5Name)) + } + { + const prefix string = ",\"OffForm5Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Weight)) + } + { + const prefix string = ",\"OffForm5TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5TraditionalRun)) + } + { + const prefix string = ",\"OffForm5OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5OptionRun)) + } + { + const prefix string = ",\"OffForm5Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Pass)) + } + { + const prefix string = ",\"OffForm5RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm5RPO)) + } + { + const prefix string = ",\"RunnerDistributionQB\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionQB)) + } + { + const prefix string = ",\"RunnerDistributionRB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB1)) + } + { + const prefix string = ",\"RunnerDistributionRB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB2)) + } + { + const prefix string = ",\"RunnerDistributionRB3\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB3)) + } + { + const prefix string = ",\"RunnerDistributionFB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB1)) + } + { + const prefix string = ",\"RunnerDistributionFB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB2)) + } + { + const prefix string = ",\"RunnerDistributionWR\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionWR)) + } + { + const prefix string = ",\"RunnerDistributionWRPosition\":" + out.RawString(prefix) + out.String(string(in.RunnerDistributionWRPosition)) + } + { + const prefix string = ",\"RunnerDistributionWRID\":" + out.RawString(prefix) + out.Uint(uint(in.RunnerDistributionWRID)) + } + { + const prefix string = ",\"RunOutsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideLeft)) + } + { + const prefix string = ",\"RunOutsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideRight)) + } + { + const prefix string = ",\"RunInsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunInsideLeft)) + } + { + const prefix string = ",\"RunInsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunInsideRight)) + } + { + const prefix string = ",\"RunPowerLeft\":" + out.RawString(prefix) + out.Int(int(in.RunPowerLeft)) + } + { + const prefix string = ",\"RunPowerRight\":" + out.RawString(prefix) + out.Int(int(in.RunPowerRight)) + } + { + const prefix string = ",\"RunDrawLeft\":" + out.RawString(prefix) + out.Int(int(in.RunDrawLeft)) + } + { + const prefix string = ",\"RunDrawRight\":" + out.RawString(prefix) + out.Int(int(in.RunDrawRight)) + } + { + const prefix string = ",\"ReadOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionLeft)) + } + { + const prefix string = ",\"ReadOptionRight\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionRight)) + } + { + const prefix string = ",\"SpeedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionLeft)) + } + { + const prefix string = ",\"SpeedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionRight)) + } + { + const prefix string = ",\"InvertedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionLeft)) + } + { + const prefix string = ",\"InvertedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionRight)) + } + { + const prefix string = ",\"TripleOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionLeft)) + } + { + const prefix string = ",\"TripleOptionRight\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionRight)) + } + { + const prefix string = ",\"PassQuick\":" + out.RawString(prefix) + out.Int(int(in.PassQuick)) + } + { + const prefix string = ",\"PassShort\":" + out.RawString(prefix) + out.Int(int(in.PassShort)) + } + { + const prefix string = ",\"PassLong\":" + out.RawString(prefix) + out.Int(int(in.PassLong)) + } + { + const prefix string = ",\"PassDeep\":" + out.RawString(prefix) + out.Int(int(in.PassDeep)) + } + { + const prefix string = ",\"PassScreen\":" + out.RawString(prefix) + out.Int(int(in.PassScreen)) + } + { + const prefix string = ",\"PassPAShort\":" + out.RawString(prefix) + out.Int(int(in.PassPAShort)) + } + { + const prefix string = ",\"PassPALong\":" + out.RawString(prefix) + out.Int(int(in.PassPALong)) + } + { + const prefix string = ",\"PassPADeep\":" + out.RawString(prefix) + out.Int(int(in.PassPADeep)) + } + { + const prefix string = ",\"LeftVsRight\":" + out.RawString(prefix) + out.Int(int(in.LeftVsRight)) + } + { + const prefix string = ",\"ChoiceOutside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceOutside)) + } + { + const prefix string = ",\"ChoiceInside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceInside)) + } + { + const prefix string = ",\"ChoicePower\":" + out.RawString(prefix) + out.Int(int(in.ChoicePower)) + } + { + const prefix string = ",\"PeekOutside\":" + out.RawString(prefix) + out.Int(int(in.PeekOutside)) + } + { + const prefix string = ",\"PeekInside\":" + out.RawString(prefix) + out.Int(int(in.PeekInside)) + } + { + const prefix string = ",\"PeekPower\":" + out.RawString(prefix) + out.Int(int(in.PeekPower)) + } + { + const prefix string = ",\"TargetingWR1\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR1)) + } + { + const prefix string = ",\"TargetDepthWR1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR1)) + } + { + const prefix string = ",\"TargetingWR2\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR2)) + } + { + const prefix string = ",\"TargetDepthWR2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR2)) + } + { + const prefix string = ",\"TargetingWR3\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR3)) + } + { + const prefix string = ",\"TargetDepthWR3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR3)) + } + { + const prefix string = ",\"TargetingWR4\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR4)) + } + { + const prefix string = ",\"TargetDepthWR4\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR4)) + } + { + const prefix string = ",\"TargetingWR5\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR5)) + } + { + const prefix string = ",\"TargetDepthWR5\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR5)) + } + { + const prefix string = ",\"TargetingTE1\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE1)) + } + { + const prefix string = ",\"TargetDepthTE1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE1)) + } + { + const prefix string = ",\"TargetingTE2\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE2)) + } + { + const prefix string = ",\"TargetDepthTE2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE2)) + } + { + const prefix string = ",\"TargetingTE3\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE3)) + } + { + const prefix string = ",\"TargetDepthTE3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE3)) + } + { + const prefix string = ",\"TargetingRB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB1)) + } + { + const prefix string = ",\"TargetDepthRB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB1)) + } + { + const prefix string = ",\"TargetingRB2\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB2)) + } + { + const prefix string = ",\"TargetDepthRB2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB2)) + } + { + const prefix string = ",\"TargetingFB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingFB1)) + } + { + const prefix string = ",\"TargetDepthFB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthFB1)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in *jlexer.Lexer, out *structs.Notification) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "League": + out.League = string(in.String()) + case "NotificationType": + out.NotificationType = string(in.String()) + case "Message": + out.Message = string(in.String()) + case "Subject": + out.Subject = string(in.String()) + case "IsRead": + out.IsRead = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out *jwriter.Writer, in structs.Notification) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"League\":" + out.RawString(prefix) + out.String(string(in.League)) + } + { + const prefix string = ",\"NotificationType\":" + out.RawString(prefix) + out.String(string(in.NotificationType)) + } + { + const prefix string = ",\"Message\":" + out.RawString(prefix) + out.String(string(in.Message)) + } + { + const prefix string = ",\"Subject\":" + out.RawString(prefix) + out.String(string(in.Subject)) + } + { + const prefix string = ",\"IsRead\":" + out.RawString(prefix) + out.Bool(bool(in.IsRead)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in *jlexer.Lexer, out *structs.CollegeTeam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ConferenceID": + out.ConferenceID = int(in.Int()) + case "Conference": + out.Conference = string(in.String()) + case "DivisionID": + out.DivisionID = int(in.Int()) + case "Division": + out.Division = string(in.String()) + case "ProgramPrestige": + out.ProgramPrestige = int(in.Int()) + case "AcademicPrestige": + out.AcademicPrestige = int(in.Int()) + case "Facilities": + out.Facilities = int(in.Int()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "PlayersProgressed": + out.PlayersProgressed = bool(in.Bool()) + case "RecruitsAdded": + out.RecruitsAdded = bool(in.Bool()) + case "CollegeCoach": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &out.CollegeCoach) + case "RecruitingProfile": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.RecruitingProfile) + case "TeamStats": + if in.IsNull() { + in.Skip() + out.TeamStats = nil + } else { + in.Delim('[') + if out.TeamStats == nil { + if !in.IsDelim(']') { + out.TeamStats = make([]structs.CollegeTeamStats, 0, 0) + } else { + out.TeamStats = []structs.CollegeTeamStats{} + } + } else { + out.TeamStats = (out.TeamStats)[:0] + } + for !in.IsDelim(']') { + var v164 structs.CollegeTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v164) + out.TeamStats = append(out.TeamStats, v164) + in.WantComma() + } + in.Delim(']') + } + case "TeamSeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &out.TeamSeasonStats) + case "TeamRecord": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &out.TeamRecord) + case "TeamGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &out.TeamGameplan) + case "TeamDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &out.TeamDepthChart) + case "TeamStandings": + if in.IsNull() { + in.Skip() + out.TeamStandings = nil + } else { + in.Delim('[') + if out.TeamStandings == nil { + if !in.IsDelim(']') { + out.TeamStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.TeamStandings = []structs.CollegeStandings{} + } + } else { + out.TeamStandings = (out.TeamStandings)[:0] + } + for !in.IsDelim(']') { + var v165 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v165) + out.TeamStandings = append(out.TeamStandings, v165) + in.WantComma() + } + in.Delim(']') + } + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Coach": + out.Coach = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Country": + out.Country = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "StadiumCapacity": + out.StadiumCapacity = int(in.Int()) + case "RecordAttendance": + out.RecordAttendance = int(in.Int()) + case "Enrollment": + out.Enrollment = int(in.Int()) + case "FirstPlayed": + out.FirstPlayed = int(in.Int()) + case "ColorOne": + out.ColorOne = string(in.String()) + case "ColorTwo": + out.ColorTwo = string(in.String()) + case "ColorThree": + out.ColorThree = string(in.String()) + case "DiscordID": + out.DiscordID = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "OffenseGrade": + out.OffenseGrade = string(in.String()) + case "DefenseGrade": + out.DefenseGrade = string(in.String()) + case "SpecialTeamsGrade": + out.SpecialTeamsGrade = string(in.String()) + case "PenaltyMarks": + out.PenaltyMarks = uint8(in.Uint8()) + case "JerseyType": + out.JerseyType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out *jwriter.Writer, in structs.CollegeTeam) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix[1:]) + out.Int(int(in.ConferenceID)) + } + { + const prefix string = ",\"Conference\":" + out.RawString(prefix) + out.String(string(in.Conference)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Int(int(in.DivisionID)) + } + { + const prefix string = ",\"Division\":" + out.RawString(prefix) + out.String(string(in.Division)) + } + { + const prefix string = ",\"ProgramPrestige\":" + out.RawString(prefix) + out.Int(int(in.ProgramPrestige)) + } + { + const prefix string = ",\"AcademicPrestige\":" + out.RawString(prefix) + out.Int(int(in.AcademicPrestige)) + } + { + const prefix string = ",\"Facilities\":" + out.RawString(prefix) + out.Int(int(in.Facilities)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"PlayersProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.PlayersProgressed)) + } + { + const prefix string = ",\"RecruitsAdded\":" + out.RawString(prefix) + out.Bool(bool(in.RecruitsAdded)) + } + { + const prefix string = ",\"CollegeCoach\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, in.CollegeCoach) + } + { + const prefix string = ",\"RecruitingProfile\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, in.RecruitingProfile) + } + { + const prefix string = ",\"TeamStats\":" + out.RawString(prefix) + if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v166, v167 := range in.TeamStats { + if v166 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v167) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamSeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, in.TeamSeasonStats) + } + { + const prefix string = ",\"TeamRecord\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, in.TeamRecord) + } + { + const prefix string = ",\"TeamGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, in.TeamGameplan) + } + { + const prefix string = ",\"TeamDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, in.TeamDepthChart) + } + { + const prefix string = ",\"TeamStandings\":" + out.RawString(prefix) + if in.TeamStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v168, v169 := range in.TeamStandings { + if v168 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v169) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Country\":" + out.RawString(prefix) + out.String(string(in.Country)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"StadiumCapacity\":" + out.RawString(prefix) + out.Int(int(in.StadiumCapacity)) + } + { + const prefix string = ",\"RecordAttendance\":" + out.RawString(prefix) + out.Int(int(in.RecordAttendance)) + } + { + const prefix string = ",\"Enrollment\":" + out.RawString(prefix) + out.Int(int(in.Enrollment)) + } + { + const prefix string = ",\"FirstPlayed\":" + out.RawString(prefix) + out.Int(int(in.FirstPlayed)) + } + { + const prefix string = ",\"ColorOne\":" + out.RawString(prefix) + out.String(string(in.ColorOne)) + } + { + const prefix string = ",\"ColorTwo\":" + out.RawString(prefix) + out.String(string(in.ColorTwo)) + } + { + const prefix string = ",\"ColorThree\":" + out.RawString(prefix) + out.String(string(in.ColorThree)) + } + { + const prefix string = ",\"DiscordID\":" + out.RawString(prefix) + out.String(string(in.DiscordID)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"OffenseGrade\":" + out.RawString(prefix) + out.String(string(in.OffenseGrade)) + } + { + const prefix string = ",\"DefenseGrade\":" + out.RawString(prefix) + out.String(string(in.DefenseGrade)) + } + { + const prefix string = ",\"SpecialTeamsGrade\":" + out.RawString(prefix) + out.String(string(in.SpecialTeamsGrade)) + } + { + const prefix string = ",\"PenaltyMarks\":" + out.RawString(prefix) + out.Uint8(uint8(in.PenaltyMarks)) + } + { + const prefix string = ",\"JerseyType\":" + out.RawString(prefix) + out.Uint8(uint8(in.JerseyType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, out *structs.CollegeTeamRecords) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "PassingTDCareerHolderID": + out.PassingTDCareerHolderID = int(in.Int()) + case "PassingTDCareerHolder": + out.PassingTDCareerHolder = string(in.String()) + case "PassingTDCareerRecord": + out.PassingTDCareerRecord = int(in.Int()) + case "PassingTDGameHolderID": + out.PassingTDGameHolderID = int(in.Int()) + case "PassingTDGameHolder": + out.PassingTDGameHolder = string(in.String()) + case "PassingTDGameRecord": + out.PassingTDGameRecord = int(in.Int()) + case "PassingTDSeasonHolderID": + out.PassingTDSeasonHolderID = int(in.Int()) + case "PassingTDSeasonHolder": + out.PassingTDSeasonHolder = string(in.String()) + case "PassingTDSeasonRecord": + out.PassingTDSeasonRecord = int(in.Int()) + case "PassingYardsCareerHolderID": + out.PassingYardsCareerHolderID = int(in.Int()) + case "PassingYardsCareerHolder": + out.PassingYardsCareerHolder = string(in.String()) + case "PassingYardsCareerRecord": + out.PassingYardsCareerRecord = int(in.Int()) + case "PassingYardsGameHolderID": + out.PassingYardsGameHolderID = int(in.Int()) + case "PassingYardsGameHolder": + out.PassingYardsGameHolder = string(in.String()) + case "PassingYardsGameRecord": + out.PassingYardsGameRecord = int(in.Int()) + case "PassingYardsSeasonHolderID": + out.PassingYardsSeasonHolderID = int(in.Int()) + case "PassingYardsSeasonHolder": + out.PassingYardsSeasonHolder = string(in.String()) + case "PassingYardsSeasonRecord": + out.PassingYardsSeasonRecord = int(in.Int()) + case "RushingTDCareerHolderID": + out.RushingTDCareerHolderID = int(in.Int()) + case "RushingTDCareerHolder": + out.RushingTDCareerHolder = string(in.String()) + case "RushingTDCareerRecord": + out.RushingTDCareerRecord = int(in.Int()) + case "RushingTDGameHolderID": + out.RushingTDGameHolderID = int(in.Int()) + case "RushingTDGameHolder": + out.RushingTDGameHolder = string(in.String()) + case "RushingTDGameRecord": + out.RushingTDGameRecord = int(in.Int()) + case "RushingTDSeasonHolderID": + out.RushingTDSeasonHolderID = int(in.Int()) + case "RushingTDSeasonHolder": + out.RushingTDSeasonHolder = string(in.String()) + case "RushingTDSeasonRecord": + out.RushingTDSeasonRecord = int(in.Int()) + case "RushingYardsCareerHolderID": + out.RushingYardsCareerHolderID = int(in.Int()) + case "RushingYardsCareerHolder": + out.RushingYardsCareerHolder = string(in.String()) + case "RushingYardsCareerRecord": + out.RushingYardsCareerRecord = int(in.Int()) + case "RushingYardsGameHolderID": + out.RushingYardsGameHolderID = int(in.Int()) + case "RushingYardsGameHolder": + out.RushingYardsGameHolder = string(in.String()) + case "RushingYardsGameRecord": + out.RushingYardsGameRecord = int(in.Int()) + case "RushingYardsSeasonHolderID": + out.RushingYardsSeasonHolderID = int(in.Int()) + case "RushingYardsSeasonHolder": + out.RushingYardsSeasonHolder = string(in.String()) + case "RushingYardsSeasonRecord": + out.RushingYardsSeasonRecord = int(in.Int()) + case "ReceivingTDCareerHolderID": + out.ReceivingTDCareerHolderID = int(in.Int()) + case "ReceivingTDCareerHolder": + out.ReceivingTDCareerHolder = string(in.String()) + case "ReceivingTDCareerRecord": + out.ReceivingTDCareerRecord = int(in.Int()) + case "ReceivingTDGameHolderID": + out.ReceivingTDGameHolderID = int(in.Int()) + case "ReceivingTDGameHolder": + out.ReceivingTDGameHolder = string(in.String()) + case "ReceivingTDGameRecord": + out.ReceivingTDGameRecord = int(in.Int()) + case "ReceivingTDSeasonHolderID": + out.ReceivingTDSeasonHolderID = int(in.Int()) + case "ReceivingTDSeasonHolder": + out.ReceivingTDSeasonHolder = string(in.String()) + case "ReceivingTDSeasonRecord": + out.ReceivingTDSeasonRecord = int(in.Int()) + case "ReceivingYardsCareerHolderID": + out.ReceivingYardsCareerHolderID = int(in.Int()) + case "ReceivingYardsCareerHolder": + out.ReceivingYardsCareerHolder = string(in.String()) + case "ReceivingYardsCareerRecord": + out.ReceivingYardsCareerRecord = int(in.Int()) + case "ReceivingYardsGameHolderID": + out.ReceivingYardsGameHolderID = int(in.Int()) + case "ReceivingYardsGameHolder": + out.ReceivingYardsGameHolder = string(in.String()) + case "ReceivingYardsGameRecord": + out.ReceivingYardsGameRecord = int(in.Int()) + case "ReceivingYardsSeasonHolderID": + out.ReceivingYardsSeasonHolderID = int(in.Int()) + case "ReceivingYardsSeasonHolder": + out.ReceivingYardsSeasonHolder = string(in.String()) + case "ReceivingYardsSeasonRecord": + out.ReceivingYardsSeasonRecord = int(in.Int()) + case "ReceptionsCareerHolderID": + out.ReceptionsCareerHolderID = int(in.Int()) + case "ReceptionsCareerHolder": + out.ReceptionsCareerHolder = string(in.String()) + case "ReceptionsCareerRecord": + out.ReceptionsCareerRecord = int(in.Int()) + case "ReceptionsGameHolderID": + out.ReceptionsGameHolderID = int(in.Int()) + case "ReceptionsGameHolder": + out.ReceptionsGameHolder = string(in.String()) + case "ReceptionsGameRecord": + out.ReceptionsGameRecord = int(in.Int()) + case "ReceptionsSeasonHolderID": + out.ReceptionsSeasonHolderID = int(in.Int()) + case "ReceptionsSeasonHolder": + out.ReceptionsSeasonHolder = string(in.String()) + case "ReceptionsSeasonRecord": + out.ReceptionsSeasonRecord = int(in.Int()) + case "InterceptionsCareerHolderID": + out.InterceptionsCareerHolderID = int(in.Int()) + case "InterceptionsCareerHolder": + out.InterceptionsCareerHolder = string(in.String()) + case "InterceptionsCareerRecord": + out.InterceptionsCareerRecord = int(in.Int()) + case "InterceptionsGameHolderID": + out.InterceptionsGameHolderID = int(in.Int()) + case "InterceptionsGameHolder": + out.InterceptionsGameHolder = string(in.String()) + case "InterceptionsGameRecord": + out.InterceptionsGameRecord = int(in.Int()) + case "InterceptionsSeasonHolderID": + out.InterceptionsSeasonHolderID = int(in.Int()) + case "InterceptionsSeasonHolder": + out.InterceptionsSeasonHolder = string(in.String()) + case "InterceptionsSeasonRecord": + out.InterceptionsSeasonRecord = int(in.Int()) + case "SacksCareerHolderID": + out.SacksCareerHolderID = int(in.Int()) + case "SacksCareerHolder": + out.SacksCareerHolder = string(in.String()) + case "SacksCareerRecord": + out.SacksCareerRecord = int(in.Int()) + case "SacksGameHolderID": + out.SacksGameHolderID = int(in.Int()) + case "SacksGameHolder": + out.SacksGameHolder = string(in.String()) + case "SacksGameRecord": + out.SacksGameRecord = int(in.Int()) + case "SacksSeasonHolderID": + out.SacksSeasonHolderID = int(in.Int()) + case "SacksSeasonHolder": + out.SacksSeasonHolder = string(in.String()) + case "SacksSeasonRecord": + out.SacksSeasonRecord = int(in.Int()) + case "TacklesCareerHolderID": + out.TacklesCareerHolderID = int(in.Int()) + case "TacklesCareerHolder": + out.TacklesCareerHolder = string(in.String()) + case "TacklesCareerRecord": + out.TacklesCareerRecord = int(in.Int()) + case "TacklesGameHolderID": + out.TacklesGameHolderID = int(in.Int()) + case "TacklesGameHolder": + out.TacklesGameHolder = string(in.String()) + case "TacklesGameRecord": + out.TacklesGameRecord = int(in.Int()) + case "TacklesSeasonHolderID": + out.TacklesSeasonHolderID = int(in.Int()) + case "TacklesSeasonHolder": + out.TacklesSeasonHolder = string(in.String()) + case "TacklesSeasonRecord": + out.TacklesSeasonRecord = int(in.Int()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out *jwriter.Writer, in structs.CollegeTeamRecords) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"PassingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDCareerHolderID)) + } + { + const prefix string = ",\"PassingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDCareerHolder)) + } + { + const prefix string = ",\"PassingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDCareerRecord)) + } + { + const prefix string = ",\"PassingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDGameHolderID)) + } + { + const prefix string = ",\"PassingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDGameHolder)) + } + { + const prefix string = ",\"PassingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDGameRecord)) + } + { + const prefix string = ",\"PassingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDSeasonHolderID)) + } + { + const prefix string = ",\"PassingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDSeasonHolder)) + } + { + const prefix string = ",\"PassingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDSeasonRecord)) + } + { + const prefix string = ",\"PassingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsCareerHolderID)) + } + { + const prefix string = ",\"PassingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsCareerHolder)) + } + { + const prefix string = ",\"PassingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsCareerRecord)) + } + { + const prefix string = ",\"PassingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsGameHolderID)) + } + { + const prefix string = ",\"PassingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsGameHolder)) + } + { + const prefix string = ",\"PassingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsGameRecord)) + } + { + const prefix string = ",\"PassingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsSeasonHolderID)) + } + { + const prefix string = ",\"PassingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsSeasonHolder)) + } + { + const prefix string = ",\"PassingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsSeasonRecord)) + } + { + const prefix string = ",\"RushingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDCareerHolderID)) + } + { + const prefix string = ",\"RushingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDCareerHolder)) + } + { + const prefix string = ",\"RushingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDCareerRecord)) + } + { + const prefix string = ",\"RushingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDGameHolderID)) + } + { + const prefix string = ",\"RushingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDGameHolder)) + } + { + const prefix string = ",\"RushingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDGameRecord)) + } + { + const prefix string = ",\"RushingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDSeasonHolderID)) + } + { + const prefix string = ",\"RushingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDSeasonHolder)) + } + { + const prefix string = ",\"RushingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDSeasonRecord)) + } + { + const prefix string = ",\"RushingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsCareerHolderID)) + } + { + const prefix string = ",\"RushingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsCareerHolder)) + } + { + const prefix string = ",\"RushingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsCareerRecord)) + } + { + const prefix string = ",\"RushingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsGameHolderID)) + } + { + const prefix string = ",\"RushingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsGameHolder)) + } + { + const prefix string = ",\"RushingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsGameRecord)) + } + { + const prefix string = ",\"RushingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsSeasonHolderID)) + } + { + const prefix string = ",\"RushingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsSeasonHolder)) + } + { + const prefix string = ",\"RushingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsSeasonRecord)) + } + { + const prefix string = ",\"ReceivingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDCareerHolderID)) + } + { + const prefix string = ",\"ReceivingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDCareerHolder)) + } + { + const prefix string = ",\"ReceivingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDCareerRecord)) + } + { + const prefix string = ",\"ReceivingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDGameHolderID)) + } + { + const prefix string = ",\"ReceivingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDGameHolder)) + } + { + const prefix string = ",\"ReceivingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDGameRecord)) + } + { + const prefix string = ",\"ReceivingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDSeasonHolderID)) + } + { + const prefix string = ",\"ReceivingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDSeasonHolder)) + } + { + const prefix string = ",\"ReceivingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDSeasonRecord)) + } + { + const prefix string = ",\"ReceivingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsCareerHolderID)) + } + { + const prefix string = ",\"ReceivingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsCareerHolder)) + } + { + const prefix string = ",\"ReceivingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsCareerRecord)) + } + { + const prefix string = ",\"ReceivingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsGameHolderID)) + } + { + const prefix string = ",\"ReceivingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsGameHolder)) + } + { + const prefix string = ",\"ReceivingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsGameRecord)) + } + { + const prefix string = ",\"ReceivingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsSeasonHolderID)) + } + { + const prefix string = ",\"ReceivingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsSeasonHolder)) + } + { + const prefix string = ",\"ReceivingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsSeasonRecord)) + } + { + const prefix string = ",\"ReceptionsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsCareerHolderID)) + } + { + const prefix string = ",\"ReceptionsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsCareerHolder)) + } + { + const prefix string = ",\"ReceptionsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsCareerRecord)) + } + { + const prefix string = ",\"ReceptionsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsGameHolderID)) + } + { + const prefix string = ",\"ReceptionsGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsGameHolder)) + } + { + const prefix string = ",\"ReceptionsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsGameRecord)) + } + { + const prefix string = ",\"ReceptionsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsSeasonHolderID)) + } + { + const prefix string = ",\"ReceptionsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsSeasonHolder)) + } + { + const prefix string = ",\"ReceptionsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsSeasonRecord)) + } + { + const prefix string = ",\"InterceptionsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCareerHolderID)) + } + { + const prefix string = ",\"InterceptionsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsCareerHolder)) + } + { + const prefix string = ",\"InterceptionsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCareerRecord)) + } + { + const prefix string = ",\"InterceptionsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsGameHolderID)) + } + { + const prefix string = ",\"InterceptionsGameHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsGameHolder)) + } + { + const prefix string = ",\"InterceptionsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsGameRecord)) + } + { + const prefix string = ",\"InterceptionsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsSeasonHolderID)) + } + { + const prefix string = ",\"InterceptionsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsSeasonHolder)) + } + { + const prefix string = ",\"InterceptionsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsSeasonRecord)) + } + { + const prefix string = ",\"SacksCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksCareerHolderID)) + } + { + const prefix string = ",\"SacksCareerHolder\":" + out.RawString(prefix) + out.String(string(in.SacksCareerHolder)) + } + { + const prefix string = ",\"SacksCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksCareerRecord)) + } + { + const prefix string = ",\"SacksGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksGameHolderID)) + } + { + const prefix string = ",\"SacksGameHolder\":" + out.RawString(prefix) + out.String(string(in.SacksGameHolder)) + } + { + const prefix string = ",\"SacksGameRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksGameRecord)) + } + { + const prefix string = ",\"SacksSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksSeasonHolderID)) + } + { + const prefix string = ",\"SacksSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.SacksSeasonHolder)) + } + { + const prefix string = ",\"SacksSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksSeasonRecord)) + } + { + const prefix string = ",\"TacklesCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesCareerHolderID)) + } + { + const prefix string = ",\"TacklesCareerHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesCareerHolder)) + } + { + const prefix string = ",\"TacklesCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesCareerRecord)) + } + { + const prefix string = ",\"TacklesGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesGameHolderID)) + } + { + const prefix string = ",\"TacklesGameHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesGameHolder)) + } + { + const prefix string = ",\"TacklesGameRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesGameRecord)) + } + { + const prefix string = ",\"TacklesSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesSeasonHolderID)) + } + { + const prefix string = ",\"TacklesSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesSeasonHolder)) + } + { + const prefix string = ",\"TacklesSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesSeasonRecord)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, out *structs.CollegeTeamSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = int(in.Int()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "TotalOffensiveYards": + out.TotalOffensiveYards = int(in.Int()) + case "TotalYardsAllowed": + out.TotalYardsAllowed = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "Turnovers": + out.Turnovers = int(in.Int()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer, in structs.CollegeTeamSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"TotalOffensiveYards\":" + out.RawString(prefix) + out.Int(int(in.TotalOffensiveYards)) + } + { + const prefix string = ",\"TotalYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.TotalYardsAllowed)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"Turnovers\":" + out.RawString(prefix) + out.Int(int(in.Turnovers)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.CollegeTeamStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBRating": + out.QBRating = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer, in structs.CollegeTeamStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Int(int(in.QBRating)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, out *structs.CollegeCoach) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CoachName": + out.CoachName = string(in.String()) + case "Age": + out.Age = int(in.Int()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "AlmaMaterID": + out.AlmaMaterID = uint(in.Uint()) + case "AlmaMater": + out.AlmaMater = string(in.String()) + case "FormerPlayerID": + out.FormerPlayerID = uint(in.Uint()) + case "Prestige": + out.Prestige = int(in.Int()) + case "PointMin": + out.PointMin = int(in.Int()) + case "PointMax": + out.PointMax = int(in.Int()) + case "StarMin": + out.StarMin = int(in.Int()) + case "StarMax": + out.StarMax = int(in.Int()) + case "Odds1": + out.Odds1 = int(in.Int()) + case "Odds2": + out.Odds2 = int(in.Int()) + case "Odds3": + out.Odds3 = int(in.Int()) + case "Odds4": + out.Odds4 = int(in.Int()) + case "Odds5": + out.Odds5 = int(in.Int()) + case "PositionOne": + out.PositionOne = string(in.String()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "PositionThree": + out.PositionThree = string(in.String()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "TeambuildingPreference": + out.TeambuildingPreference = string(in.String()) + case "CareerPreference": + out.CareerPreference = string(in.String()) + case "PromiseTendency": + out.PromiseTendency = string(in.String()) + case "PortalReputation": + out.PortalReputation = int(in.Int()) + case "SchoolTenure": + out.SchoolTenure = int(in.Int()) + case "CareerTenure": + out.CareerTenure = int(in.Int()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "YearsRemaining": + out.YearsRemaining = int(in.Int()) + case "OverallWins": + out.OverallWins = int(in.Int()) + case "OverallLosses": + out.OverallLosses = int(in.Int()) + case "OverallConferenceChampionships": + out.OverallConferenceChampionships = int(in.Int()) + case "BowlWins": + out.BowlWins = int(in.Int()) + case "BowlLosses": + out.BowlLosses = int(in.Int()) + case "PlayoffWins": + out.PlayoffWins = int(in.Int()) + case "PlayoffLosses": + out.PlayoffLosses = int(in.Int()) + case "NationalChampionships": + out.NationalChampionships = int(in.Int()) + case "IsUser": + out.IsUser = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRetired": + out.IsRetired = bool(in.Bool()) + case "IsFormerPlayer": + out.IsFormerPlayer = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer, in structs.CollegeCoach) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CoachName\":" + out.RawString(prefix[1:]) + out.String(string(in.CoachName)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"AlmaMaterID\":" + out.RawString(prefix) + out.Uint(uint(in.AlmaMaterID)) + } + { + const prefix string = ",\"AlmaMater\":" + out.RawString(prefix) + out.String(string(in.AlmaMater)) + } + { + const prefix string = ",\"FormerPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.FormerPlayerID)) + } + { + const prefix string = ",\"Prestige\":" + out.RawString(prefix) + out.Int(int(in.Prestige)) + } + { + const prefix string = ",\"PointMin\":" + out.RawString(prefix) + out.Int(int(in.PointMin)) + } + { + const prefix string = ",\"PointMax\":" + out.RawString(prefix) + out.Int(int(in.PointMax)) + } + { + const prefix string = ",\"StarMin\":" + out.RawString(prefix) + out.Int(int(in.StarMin)) + } + { + const prefix string = ",\"StarMax\":" + out.RawString(prefix) + out.Int(int(in.StarMax)) + } + { + const prefix string = ",\"Odds1\":" + out.RawString(prefix) + out.Int(int(in.Odds1)) + } + { + const prefix string = ",\"Odds2\":" + out.RawString(prefix) + out.Int(int(in.Odds2)) + } + { + const prefix string = ",\"Odds3\":" + out.RawString(prefix) + out.Int(int(in.Odds3)) + } + { + const prefix string = ",\"Odds4\":" + out.RawString(prefix) + out.Int(int(in.Odds4)) + } + { + const prefix string = ",\"Odds5\":" + out.RawString(prefix) + out.Int(int(in.Odds5)) + } + { + const prefix string = ",\"PositionOne\":" + out.RawString(prefix) + out.String(string(in.PositionOne)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"PositionThree\":" + out.RawString(prefix) + out.String(string(in.PositionThree)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"TeambuildingPreference\":" + out.RawString(prefix) + out.String(string(in.TeambuildingPreference)) + } + { + const prefix string = ",\"CareerPreference\":" + out.RawString(prefix) + out.String(string(in.CareerPreference)) + } + { + const prefix string = ",\"PromiseTendency\":" + out.RawString(prefix) + out.String(string(in.PromiseTendency)) + } + { + const prefix string = ",\"PortalReputation\":" + out.RawString(prefix) + out.Int(int(in.PortalReputation)) + } + { + const prefix string = ",\"SchoolTenure\":" + out.RawString(prefix) + out.Int(int(in.SchoolTenure)) + } + { + const prefix string = ",\"CareerTenure\":" + out.RawString(prefix) + out.Int(int(in.CareerTenure)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"YearsRemaining\":" + out.RawString(prefix) + out.Int(int(in.YearsRemaining)) + } + { + const prefix string = ",\"OverallWins\":" + out.RawString(prefix) + out.Int(int(in.OverallWins)) + } + { + const prefix string = ",\"OverallLosses\":" + out.RawString(prefix) + out.Int(int(in.OverallLosses)) + } + { + const prefix string = ",\"OverallConferenceChampionships\":" + out.RawString(prefix) + out.Int(int(in.OverallConferenceChampionships)) + } + { + const prefix string = ",\"BowlWins\":" + out.RawString(prefix) + out.Int(int(in.BowlWins)) + } + { + const prefix string = ",\"BowlLosses\":" + out.RawString(prefix) + out.Int(int(in.BowlLosses)) + } + { + const prefix string = ",\"PlayoffWins\":" + out.RawString(prefix) + out.Int(int(in.PlayoffWins)) + } + { + const prefix string = ",\"PlayoffLosses\":" + out.RawString(prefix) + out.Int(int(in.PlayoffLosses)) + } + { + const prefix string = ",\"NationalChampionships\":" + out.RawString(prefix) + out.Int(int(in.NationalChampionships)) + } + { + const prefix string = ",\"IsUser\":" + out.RawString(prefix) + out.Bool(bool(in.IsUser)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsRetired\":" + out.RawString(prefix) + out.Bool(bool(in.IsRetired)) + } + { + const prefix string = ",\"IsFormerPlayer\":" + out.RawString(prefix) + out.Bool(bool(in.IsFormerPlayer)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} From ab313bd1ee01210857bede375e31f95345e25a08 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sat, 28 Jun 2025 13:08:48 -0700 Subject: [PATCH 13/20] minimum value order for free agents --- managers/FreeAgencyManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managers/FreeAgencyManager.go b/managers/FreeAgencyManager.go index 6adf334..514980d 100644 --- a/managers/FreeAgencyManager.go +++ b/managers/FreeAgencyManager.go @@ -23,7 +23,7 @@ func GetAllFreeAgents() []structs.NFLPlayer { fas := []structs.NFLPlayer{} - db.Where("is_free_agent = ?", true).Find(&fas) + db.Order("minimum_value desc").Where("is_free_agent = ?", true).Find(&fas) return fas } From 53f7b599b8055a54879a33fe5da7b7562aba0cac Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 05:41:05 -0700 Subject: [PATCH 14/20] need to retrigger a deployment to test & see what's happening --- managers/BootstrapManager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index a6e9033..7ff3e34 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -315,6 +315,7 @@ func GetSecondBootstrapData(collegeID, proID string) BootstrapDataTwo { func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { var wg sync.WaitGroup var mu sync.Mutex + // College Data var ( recruits []structs.Croot From 88e02ccf0d07f683bd09a39c0a499e8fc574ae03 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 05:53:40 -0700 Subject: [PATCH 15/20] Fixing bootstrap issue due --- go.mod | 2 +- managers/BootstrapManager_easyjson.go | 482 +++++++++++++++----------- 2 files changed, 281 insertions(+), 203 deletions(-) diff --git a/go.mod b/go.mod index f3b6fdb..bf5de0a 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/gorilla/mux v1.8.1 github.com/jinzhu/gorm v1.9.16 github.com/joho/godotenv v1.5.1 + github.com/mailru/easyjson v0.9.0 github.com/nelkinda/health-go v0.0.1 github.com/robfig/cron/v3 v3.0.1 golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 @@ -17,7 +18,6 @@ require ( require ( github.com/josharian/intern v1.0.0 // indirect - github.com/mailru/easyjson v0.9.0 // indirect github.com/tkrajina/go-reflector v0.5.5 // indirect ) diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go index f843ae5..7215538 100644 --- a/managers/BootstrapManager_easyjson.go +++ b/managers/BootstrapManager_easyjson.go @@ -9348,6 +9348,52 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o } in.Delim(']') } + case "FreeAgents": + if in.IsNull() { + in.Skip() + out.FreeAgents = nil + } else { + in.Delim('[') + if out.FreeAgents == nil { + if !in.IsDelim(']') { + out.FreeAgents = make([]structs.NFLPlayer, 0, 0) + } else { + out.FreeAgents = []structs.NFLPlayer{} + } + } else { + out.FreeAgents = (out.FreeAgents)[:0] + } + for !in.IsDelim(']') { + var v86 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v86) + out.FreeAgents = append(out.FreeAgents, v86) + in.WantComma() + } + in.Delim(']') + } + case "WaiverPlayers": + if in.IsNull() { + in.Skip() + out.WaiverPlayers = nil + } else { + in.Delim('[') + if out.WaiverPlayers == nil { + if !in.IsDelim(']') { + out.WaiverPlayers = make([]structs.NFLPlayer, 0, 0) + } else { + out.WaiverPlayers = []structs.NFLPlayer{} + } + } else { + out.WaiverPlayers = (out.WaiverPlayers)[:0] + } + for !in.IsDelim(']') { + var v87 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v87) + out.WaiverPlayers = append(out.WaiverPlayers, v87) + in.WantComma() + } + in.Delim(']') + } case "ProNews": if in.IsNull() { in.Skip() @@ -9364,9 +9410,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o out.ProNews = (out.ProNews)[:0] } for !in.IsDelim(']') { - var v86 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v86) - out.ProNews = append(out.ProNews, v86) + var v88 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v88) + out.ProNews = append(out.ProNews, v88) in.WantComma() } in.Delim(']') @@ -9380,9 +9426,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v87 structs.NFLDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v87) - (out.NFLDepthChartMap)[key] = v87 + var v89 structs.NFLDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v89) + (out.NFLDepthChartMap)[key] = v89 in.WantComma() } in.Delim('}') @@ -9396,9 +9442,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v88 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v88) - (out.ContractMap)[key] = v88 + var v90 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v90) + (out.ContractMap)[key] = v90 in.WantComma() } in.Delim('}') @@ -9412,9 +9458,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v89 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v89) - (out.ExtensionMap)[key] = v89 + var v91 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v91) + (out.ExtensionMap)[key] = v91 in.WantComma() } in.Delim('}') @@ -9428,9 +9474,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v90 structs.FaceDataResponse - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v90) - (out.FaceData)[key] = v90 + var v92 structs.FaceDataResponse + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v92) + (out.FaceData)[key] = v92 in.WantComma() } in.Delim('}') @@ -9456,11 +9502,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v91, v92 := range in.Recruits { - if v91 > 0 { + for v93, v94 := range in.Recruits { + if v93 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, v92) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, v94) } out.RawByte(']') } @@ -9472,11 +9518,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v93, v94 := range in.RecruitProfiles { - if v93 > 0 { + for v95, v96 := range in.RecruitProfiles { + if v95 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v94) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v96) } out.RawByte(']') } @@ -9488,16 +9534,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v95First := true - for v95Name, v95Value := range in.CollegeDepthChartMap { - if v95First { - v95First = false + v97First := true + for v97Name, v97Value := range in.CollegeDepthChartMap { + if v97First { + v97First = false } else { out.RawByte(',') } - out.UintStr(uint(v95Name)) + out.UintStr(uint(v97Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, v95Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, v97Value) } out.RawByte('}') } @@ -9509,11 +9555,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v96, v97 := range in.FreeAgentOffers { - if v96 > 0 { + for v98, v99 := range in.FreeAgentOffers { + if v98 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v97) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v99) } out.RawByte(']') } @@ -9525,11 +9571,43 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v98, v99 := range in.WaiverWireOffers { - if v98 > 0 { + for v100, v101 := range in.WaiverWireOffers { + if v100 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v101) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FreeAgents\":" + out.RawString(prefix) + if in.FreeAgents == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v102, v103 := range in.FreeAgents { + if v102 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v103) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverPlayers\":" + out.RawString(prefix) + if in.WaiverPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v104, v105 := range in.WaiverPlayers { + if v104 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v99) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v105) } out.RawByte(']') } @@ -9541,11 +9619,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v100, v101 := range in.ProNews { - if v100 > 0 { + for v106, v107 := range in.ProNews { + if v106 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v101) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v107) } out.RawByte(']') } @@ -9557,16 +9635,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v102First := true - for v102Name, v102Value := range in.NFLDepthChartMap { - if v102First { - v102First = false + v108First := true + for v108Name, v108Value := range in.NFLDepthChartMap { + if v108First { + v108First = false } else { out.RawByte(',') } - out.UintStr(uint(v102Name)) + out.UintStr(uint(v108Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v102Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v108Value) } out.RawByte('}') } @@ -9578,16 +9656,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v103First := true - for v103Name, v103Value := range in.ContractMap { - if v103First { - v103First = false + v109First := true + for v109Name, v109Value := range in.ContractMap { + if v109First { + v109First = false } else { out.RawByte(',') } - out.UintStr(uint(v103Name)) + out.UintStr(uint(v109Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v103Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v109Value) } out.RawByte('}') } @@ -9599,16 +9677,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v104First := true - for v104Name, v104Value := range in.ExtensionMap { - if v104First { - v104First = false + v110First := true + for v110Name, v110Value := range in.ExtensionMap { + if v110First { + v110First = false } else { out.RawByte(',') } - out.UintStr(uint(v104Name)) + out.UintStr(uint(v110Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v104Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v110Value) } out.RawByte('}') } @@ -9620,16 +9698,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v105First := true - for v105Name, v105Value := range in.FaceData { - if v105First { - v105First = false + v111First := true + for v111Name, v111Value := range in.FaceData { + if v111First { + v111First = false } else { out.RawByte(',') } - out.UintStr(uint(v105Name)) + out.UintStr(uint(v111Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v105Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v111Value) } out.RawByte('}') } @@ -9942,9 +10020,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in *jlexer.Lexer, o out.DepthChartPlayers = (out.DepthChartPlayers)[:0] } for !in.IsDelim(']') { - var v106 structs.NFLDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in, &v106) - out.DepthChartPlayers = append(out.DepthChartPlayers, v106) + var v112 structs.NFLDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in, &v112) + out.DepthChartPlayers = append(out.DepthChartPlayers, v112) in.WantComma() } in.Delim(']') @@ -9997,11 +10075,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v107, v108 := range in.DepthChartPlayers { - if v107 > 0 { + for v113, v114 := range in.DepthChartPlayers { + if v113 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out, v108) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out, v114) } out.RawByte(']') } @@ -10206,9 +10284,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, o out.DepthChartPlayers = (out.DepthChartPlayers)[:0] } for !in.IsDelim(']') { - var v109 structs.CollegeDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v109) - out.DepthChartPlayers = append(out.DepthChartPlayers, v109) + var v115 structs.CollegeDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v115) + out.DepthChartPlayers = append(out.DepthChartPlayers, v115) in.WantComma() } in.Delim(']') @@ -10261,11 +10339,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v110, v111 := range in.DepthChartPlayers { - if v110 > 0 { + for v116, v117 := range in.DepthChartPlayers { + if v116 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v111) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v117) } out.RawByte(']') } @@ -10524,9 +10602,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in *jlexer.Lexer, o out.LeadingTeams = (out.LeadingTeams)[:0] } for !in.IsDelim(']') { - var v112 structs.LeadingTeams - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v112) - out.LeadingTeams = append(out.LeadingTeams, v112) + var v118 structs.LeadingTeams + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v118) + out.LeadingTeams = append(out.LeadingTeams, v118) in.WantComma() } in.Delim(']') @@ -10692,11 +10770,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v113, v114 := range in.LeadingTeams { - if v113 > 0 { + for v119, v120 := range in.LeadingTeams { + if v119 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v114) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v120) } out.RawByte(']') } @@ -10810,9 +10888,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.AllCollegeTeams = (out.AllCollegeTeams)[:0] } for !in.IsDelim(']') { - var v115 structs.CollegeTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v115) - out.AllCollegeTeams = append(out.AllCollegeTeams, v115) + var v121 structs.CollegeTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v121) + out.AllCollegeTeams = append(out.AllCollegeTeams, v121) in.WantComma() } in.Delim(']') @@ -10826,30 +10904,30 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v116 []structs.CollegePlayer + var v122 []structs.CollegePlayer if in.IsNull() { in.Skip() - v116 = nil + v122 = nil } else { in.Delim('[') - if v116 == nil { + if v122 == nil { if !in.IsDelim(']') { - v116 = make([]structs.CollegePlayer, 0, 0) + v122 = make([]structs.CollegePlayer, 0, 0) } else { - v116 = []structs.CollegePlayer{} + v122 = []structs.CollegePlayer{} } } else { - v116 = (v116)[:0] + v122 = (v122)[:0] } for !in.IsDelim(']') { - var v117 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v117) - v116 = append(v116, v117) + var v123 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v123) + v122 = append(v122, v123) in.WantComma() } in.Delim(']') } - (out.CollegeRosterMap)[key] = v116 + (out.CollegeRosterMap)[key] = v122 in.WantComma() } in.Delim('}') @@ -10870,9 +10948,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.TopCFBPassers = (out.TopCFBPassers)[:0] } for !in.IsDelim(']') { - var v118 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v118) - out.TopCFBPassers = append(out.TopCFBPassers, v118) + var v124 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v124) + out.TopCFBPassers = append(out.TopCFBPassers, v124) in.WantComma() } in.Delim(']') @@ -10893,9 +10971,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.TopCFBRushers = (out.TopCFBRushers)[:0] } for !in.IsDelim(']') { - var v119 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v119) - out.TopCFBRushers = append(out.TopCFBRushers, v119) + var v125 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v125) + out.TopCFBRushers = append(out.TopCFBRushers, v125) in.WantComma() } in.Delim(']') @@ -10916,9 +10994,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.TopCFBReceivers = (out.TopCFBReceivers)[:0] } for !in.IsDelim(']') { - var v120 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v120) - out.TopCFBReceivers = append(out.TopCFBReceivers, v120) + var v126 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v126) + out.TopCFBReceivers = append(out.TopCFBReceivers, v126) in.WantComma() } in.Delim(']') @@ -10939,9 +11017,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.PortalPlayers = (out.PortalPlayers)[:0] } for !in.IsDelim(']') { - var v121 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v121) - out.PortalPlayers = append(out.PortalPlayers, v121) + var v127 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v127) + out.PortalPlayers = append(out.PortalPlayers, v127) in.WantComma() } in.Delim(']') @@ -10962,9 +11040,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] } for !in.IsDelim(']') { - var v122 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v122) - out.CollegeInjuryReport = append(out.CollegeInjuryReport, v122) + var v128 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v128) + out.CollegeInjuryReport = append(out.CollegeInjuryReport, v128) in.WantComma() } in.Delim(']') @@ -10985,9 +11063,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.CollegeNotifications = (out.CollegeNotifications)[:0] } for !in.IsDelim(']') { - var v123 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v123) - out.CollegeNotifications = append(out.CollegeNotifications, v123) + var v129 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v129) + out.CollegeNotifications = append(out.CollegeNotifications, v129) in.WantComma() } in.Delim(']') @@ -11014,9 +11092,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.AllProTeams = (out.AllProTeams)[:0] } for !in.IsDelim(']') { - var v124 structs.NFLTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &v124) - out.AllProTeams = append(out.AllProTeams, v124) + var v130 structs.NFLTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &v130) + out.AllProTeams = append(out.AllProTeams, v130) in.WantComma() } in.Delim(']') @@ -11037,9 +11115,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.ProNotifications = (out.ProNotifications)[:0] } for !in.IsDelim(']') { - var v125 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v125) - out.ProNotifications = append(out.ProNotifications, v125) + var v131 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v131) + out.ProNotifications = append(out.ProNotifications, v131) in.WantComma() } in.Delim(']') @@ -11057,9 +11135,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v126 structs.FaceDataResponse - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v126) - (out.FaceData)[key] = v126 + var v132 structs.FaceDataResponse + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v132) + (out.FaceData)[key] = v132 in.WantComma() } in.Delim('}') @@ -11090,11 +11168,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v127, v128 := range in.AllCollegeTeams { - if v127 > 0 { + for v133, v134 := range in.AllCollegeTeams { + if v133 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v128) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v134) } out.RawByte(']') } @@ -11106,24 +11184,24 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v129First := true - for v129Name, v129Value := range in.CollegeRosterMap { - if v129First { - v129First = false + v135First := true + for v135Name, v135Value := range in.CollegeRosterMap { + if v135First { + v135First = false } else { out.RawByte(',') } - out.UintStr(uint(v129Name)) + out.UintStr(uint(v135Name)) out.RawByte(':') - if v129Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v135Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v130, v131 := range v129Value { - if v130 > 0 { + for v136, v137 := range v135Value { + if v136 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v131) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v137) } out.RawByte(']') } @@ -11138,11 +11216,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v132, v133 := range in.TopCFBPassers { - if v132 > 0 { + for v138, v139 := range in.TopCFBPassers { + if v138 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v133) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v139) } out.RawByte(']') } @@ -11154,11 +11232,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v134, v135 := range in.TopCFBRushers { - if v134 > 0 { + for v140, v141 := range in.TopCFBRushers { + if v140 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v135) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v141) } out.RawByte(']') } @@ -11170,11 +11248,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v136, v137 := range in.TopCFBReceivers { - if v136 > 0 { + for v142, v143 := range in.TopCFBReceivers { + if v142 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v137) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v143) } out.RawByte(']') } @@ -11186,11 +11264,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v138, v139 := range in.PortalPlayers { - if v138 > 0 { + for v144, v145 := range in.PortalPlayers { + if v144 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v139) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v145) } out.RawByte(']') } @@ -11202,11 +11280,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v140, v141 := range in.CollegeInjuryReport { - if v140 > 0 { + for v146, v147 := range in.CollegeInjuryReport { + if v146 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v141) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v147) } out.RawByte(']') } @@ -11218,11 +11296,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v142, v143 := range in.CollegeNotifications { - if v142 > 0 { + for v148, v149 := range in.CollegeNotifications { + if v148 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v143) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v149) } out.RawByte(']') } @@ -11249,11 +11327,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v144, v145 := range in.AllProTeams { - if v144 > 0 { + for v150, v151 := range in.AllProTeams { + if v150 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, v145) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, v151) } out.RawByte(']') } @@ -11265,11 +11343,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v146, v147 := range in.ProNotifications { - if v146 > 0 { + for v152, v153 := range in.ProNotifications { + if v152 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v147) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v153) } out.RawByte(']') } @@ -11291,16 +11369,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v148First := true - for v148Name, v148Value := range in.FaceData { - if v148First { - v148First = false + v154First := true + for v154Name, v154Value := range in.FaceData { + if v154First { + v154First = false } else { out.RawByte(',') } - out.UintStr(uint(v148Name)) + out.UintStr(uint(v154Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v148Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v154Value) } out.RawByte('}') } @@ -12422,9 +12500,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.Contracts = (out.Contracts)[:0] } for !in.IsDelim(']') { - var v149 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v149) - out.Contracts = append(out.Contracts, v149) + var v155 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v155) + out.Contracts = append(out.Contracts, v155) in.WantComma() } in.Delim(']') @@ -12445,9 +12523,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.DraftPicks = (out.DraftPicks)[:0] } for !in.IsDelim(']') { - var v150 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v150) - out.DraftPicks = append(out.DraftPicks, v150) + var v156 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v156) + out.DraftPicks = append(out.DraftPicks, v156) in.WantComma() } in.Delim(']') @@ -12468,9 +12546,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.TeamStats = (out.TeamStats)[:0] } for !in.IsDelim(']') { - var v151 structs.NFLTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v151) - out.TeamStats = append(out.TeamStats, v151) + var v157 structs.NFLTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v157) + out.TeamStats = append(out.TeamStats, v157) in.WantComma() } in.Delim(']') @@ -12491,9 +12569,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.TeamSeasonStats = (out.TeamSeasonStats)[:0] } for !in.IsDelim(']') { - var v152 structs.NFLTeamSeasonStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v152) - out.TeamSeasonStats = append(out.TeamSeasonStats, v152) + var v158 structs.NFLTeamSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v158) + out.TeamSeasonStats = append(out.TeamSeasonStats, v158) in.WantComma() } in.Delim(']') @@ -12518,9 +12596,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.Standings = (out.Standings)[:0] } for !in.IsDelim(']') { - var v153 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v153) - out.Standings = append(out.Standings, v153) + var v159 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v159) + out.Standings = append(out.Standings, v159) in.WantComma() } in.Delim(']') @@ -12689,11 +12767,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v154, v155 := range in.Contracts { - if v154 > 0 { + for v160, v161 := range in.Contracts { + if v160 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v155) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v161) } out.RawByte(']') } @@ -12705,11 +12783,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v156, v157 := range in.DraftPicks { - if v156 > 0 { + for v162, v163 := range in.DraftPicks { + if v162 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v157) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v163) } out.RawByte(']') } @@ -12721,11 +12799,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v158, v159 := range in.TeamStats { - if v158 > 0 { + for v164, v165 := range in.TeamStats { + if v164 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v159) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v165) } out.RawByte(']') } @@ -12737,11 +12815,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v160, v161 := range in.TeamSeasonStats { - if v160 > 0 { + for v166, v167 := range in.TeamSeasonStats { + if v166 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v161) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v167) } out.RawByte(']') } @@ -12763,11 +12841,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v162, v163 := range in.Standings { - if v162 > 0 { + for v168, v169 := range in.Standings { + if v168 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v163) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v169) } out.RawByte(']') } @@ -15663,9 +15741,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in *jlexer.Lexer, o out.TeamStats = (out.TeamStats)[:0] } for !in.IsDelim(']') { - var v164 structs.CollegeTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v164) - out.TeamStats = append(out.TeamStats, v164) + var v170 structs.CollegeTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v170) + out.TeamStats = append(out.TeamStats, v170) in.WantComma() } in.Delim(']') @@ -15694,9 +15772,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in *jlexer.Lexer, o out.TeamStandings = (out.TeamStandings)[:0] } for !in.IsDelim(']') { - var v165 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v165) - out.TeamStandings = append(out.TeamStandings, v165) + var v171 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v171) + out.TeamStandings = append(out.TeamStandings, v171) in.WantComma() } in.Delim(']') @@ -15855,11 +15933,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v166, v167 := range in.TeamStats { - if v166 > 0 { + for v172, v173 := range in.TeamStats { + if v172 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v167) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v173) } out.RawByte(']') } @@ -15891,11 +15969,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v168, v169 := range in.TeamStandings { - if v168 > 0 { + for v174, v175 := range in.TeamStandings { + if v174 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v169) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v175) } out.RawByte(']') } From de7d61a2fa635977d7f7d404906766fd09b44171 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 20:02:58 -0700 Subject: [PATCH 16/20] Free Agency update for saving --- main.go | 2 +- managers/FreeAgencyManager.go | 19 +++++++++++++++++-- structs/FreeAgencyOffer.go | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9b27b0e..46e27c4 100644 --- a/main.go +++ b/main.go @@ -184,7 +184,7 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/admin/import/missing/draftees", controller.ImportMissingDraftees).Methods("GET") // apiRouter.HandleFunc("/admin/import/missing/cfb/stats", controller.ImportMissingStats).Methods("GET") // apiRouter.HandleFunc("/admin/import/preferences", controller.ImportTradePreferences).Methods("GET") - // apiRouter.HandleFunc("/import/custom/croots", controller.ImportCustomCroots).Methods("GET") + apiRouter.HandleFunc("/import/custom/croots", controller.ImportCustomCroots).Methods("GET") // apiRouter.HandleFunc("/import/simnfl/updated/values", controller.ImportSimNFLMinimumValues).Methods("GET") // apiRouter.HandleFunc("/import/simfba/draft/picks", controller.ImportNFLDraftPicks).Methods("GET") // apiRouter.HandleFunc("/import/simfba/updated/picks", controller.UpdateDraftPicksForDraft).Methods("GET") diff --git a/managers/FreeAgencyManager.go b/managers/FreeAgencyManager.go index 514980d..8e077e5 100644 --- a/managers/FreeAgencyManager.go +++ b/managers/FreeAgencyManager.go @@ -367,11 +367,26 @@ func GetFreeAgentOfferByOfferID(OfferID string) structs.FreeAgencyOffer { return offer } +func GetFreeAgentOfferByTeamIDAndPlayerID(playerID, teamID string) structs.FreeAgencyOffer { + db := dbprovider.GetInstance().GetDB() + + offer := structs.FreeAgencyOffer{} + + err := db.Where("nfl_player_id = ? AND team_id = ?", playerID, teamID).Find(&offer).Error + if err != nil { + return offer + } + + return offer +} + func CreateFAOffer(offer structs.FreeAgencyOfferDTO) structs.FreeAgencyOffer { db := dbprovider.GetInstance().GetDB() ts := GetTimestamp() - freeAgentOffer := GetFreeAgentOfferByOfferID(strconv.Itoa(int(offer.ID))) - player := GetNFLPlayerRecord(strconv.Itoa(int(offer.NFLPlayerID))) + playerID := strconv.Itoa(int(offer.NFLPlayerID)) + teamID := strconv.Itoa(int(offer.TeamID)) + freeAgentOffer := GetFreeAgentOfferByTeamIDAndPlayerID(playerID, teamID) + player := GetNFLPlayerRecord(playerID) if freeAgentOffer.ID == 0 { id := GetLatestFreeAgentOfferInDB(db) diff --git a/structs/FreeAgencyOffer.go b/structs/FreeAgencyOffer.go index 9aa1e14..3afd245 100644 --- a/structs/FreeAgencyOffer.go +++ b/structs/FreeAgencyOffer.go @@ -61,6 +61,7 @@ func (f *FreeAgencyOffer) CalculateOffer(offer FreeAgencyOfferDTO) { f.Y5BaseSalary = offer.Y5BaseSalary f.Y5Bonus = offer.Y5Bonus f.IsActive = true + f.AAV = offer.AAV // Calculate Value y1SalaryVal := f.Y1BaseSalary * 0.8 From 9ff64cea121952156a523541c36456f09b7fd49e Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 20:03:34 -0700 Subject: [PATCH 17/20] stat records update --- repository/StatsRepository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/StatsRepository.go b/repository/StatsRepository.go index afc9586..e75ed97 100644 --- a/repository/StatsRepository.go +++ b/repository/StatsRepository.go @@ -20,7 +20,7 @@ func FindProPlayerSeasonStatsRecords(SeasonID, gameType string) []structs.NFLPla var playerStats []structs.NFLPlayerSeasonStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) return playerStats } From d99a7a0ec1d52116a240e3ffb42941dab1844f6d Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 20:03:49 -0700 Subject: [PATCH 18/20] stats fetch change --- repository/StatsRepository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/StatsRepository.go b/repository/StatsRepository.go index e75ed97..9e1eb9c 100644 --- a/repository/StatsRepository.go +++ b/repository/StatsRepository.go @@ -10,7 +10,7 @@ func FindCollegePlayerSeasonStatsRecords(SeasonID, gameType string) []structs.Co var playerStats []structs.CollegePlayerSeasonStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) return playerStats } From 202c2b552a371d2f922ee201e7c1fd190fe99ad4 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sun, 29 Jun 2025 20:04:46 -0700 Subject: [PATCH 19/20] Adjusting stats fetch --- repository/StatsRepository.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/repository/StatsRepository.go b/repository/StatsRepository.go index 9e1eb9c..a155ae5 100644 --- a/repository/StatsRepository.go +++ b/repository/StatsRepository.go @@ -43,7 +43,7 @@ func FindCollegePlayerGameStatsRecords(SeasonID, GameType, GameID string) []stru query = query.Where("game_id = ?", GameID) } - query.Order("points desc").Find(&playerStats) + query.Find(&playerStats) return playerStats } @@ -65,7 +65,7 @@ func FindProPlayerGameStatsRecords(SeasonID, GameType, GameID string) []structs. query = query.Where("game_id = ?", GameID) } - query.Order("points desc").Find(&playerStats) + query.Find(&playerStats) return playerStats } @@ -75,7 +75,7 @@ func FindCollegeTeamSeasonStatsRecords(SeasonID, gameType string) []structs.Coll var teamStats []structs.CollegeTeamSeasonStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) return teamStats } @@ -85,7 +85,7 @@ func FindProTeamSeasonStatsRecords(SeasonID, gameType string) []structs.NFLTeamS var teamStats []structs.NFLTeamSeasonStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) return teamStats } @@ -95,7 +95,7 @@ func FindCollegeTeamGameStatsRecords(SeasonID, gameType string) []structs.Colleg var teamStats []structs.CollegeTeamStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) return teamStats } @@ -105,7 +105,7 @@ func FindProTeamGameStatsRecords(SeasonID, gameType string) []structs.NFLTeamSta var teamStats []structs.NFLTeamStats - db.Order("points desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) return teamStats } @@ -115,7 +115,7 @@ func FindCollegeTeamStatsRecordByGame(gameID, teamID string) structs.CollegeTeam var teamStats structs.CollegeTeamStats - db.Order("points desc").Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) + db.Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) return teamStats } @@ -125,7 +125,7 @@ func FindProTeamStatsRecordByGame(gameID, teamID string) structs.NFLTeamStats { var teamStats structs.NFLTeamStats - db.Order("points desc").Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) + db.Where("game_id = ? AND team_id = ?", gameID, teamID).Find(&teamStats) return teamStats } @@ -135,7 +135,7 @@ func FindCollegePlayerStatsRecordByGame(gameID string) []structs.CollegePlayerSt var playerStats []structs.CollegePlayerStats - db.Order("points desc").Where("game_id = ?", gameID).Find(&playerStats) + db.Where("game_id = ?", gameID).Find(&playerStats) return playerStats } @@ -145,7 +145,7 @@ func FindProPlayerStatsRecordByGame(gameID string) []structs.NFLPlayerStats { var playerStats []structs.NFLPlayerStats - db.Order("points desc").Where("game_id = ?", gameID).Find(&playerStats) + db.Where("game_id = ?", gameID).Find(&playerStats) return playerStats } From 86d1328d4700e069f904435ec641a3fd521cbb7b Mon Sep 17 00:00:00 2001 From: CalebRose Date: Mon, 7 Jul 2025 20:40:50 -0700 Subject: [PATCH 20/20] Adjust rejection value during progressions --- structs/NFLPlayer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/structs/NFLPlayer.go b/structs/NFLPlayer.go index 60c9b6f..60c0de7 100644 --- a/structs/NFLPlayer.go +++ b/structs/NFLPlayer.go @@ -90,6 +90,7 @@ func (np *NFLPlayer) ToggleIsFreeAgent() { np.IsPracticeSquad = false np.Rejections = 0 np.IsWaived = false + np.Rejections = 0 } func (np *NFLPlayer) SignPlayer(TeamID int, Abbr string) { @@ -100,6 +101,7 @@ func (np *NFLPlayer) SignPlayer(TeamID int, Abbr string) { np.IsAcceptingOffers = false np.IsNegotiating = false np.IsPracticeSquad = false + np.Rejections = 0 } func (np *NFLPlayer) ToggleIsPracticeSquad() { @@ -211,6 +213,7 @@ func (np *NFLPlayer) Progress(attr CollegePlayerProgressions) { if len(attr.PotentialGrade) > 0 { np.PotentialGrade = attr.PotentialGrade } + np.Rejections = 0 } func (f *NFLPlayer) MapSeasonStats(seasonStats NFLPlayerSeasonStats) {