public static async Task <MatchupFootballScore> GetNflScore(string gameId) { var score = new MatchupFootballScore(); var boxscore = await GetMatchupFootballScore(gameId); return(HydrateNflScore(score, boxscore)); }
private static MatchupFootballScore HydrateNflScore(MatchupFootballScore score, NflBoxscore boxscore) { score.Quarter = boxscore.quarter; score.Clock = boxscore.clock; score.HomeTeamPoints = boxscore.summary.home.points; score.AwayTeamPoints = boxscore.summary.away.points; return(score); }