Beispiel #1
0
        public static async Task <MatchupFootballScore> GetNflScore(string gameId)
        {
            var score    = new MatchupFootballScore();
            var boxscore = await GetMatchupFootballScore(gameId);

            return(HydrateNflScore(score, boxscore));
        }
Beispiel #2
0
 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);
 }