public NcaafbGameInfo GetGameInfo(Guid gameId) { Uri ncaafbGameInfoUri = GetGameInfoUri(gameId); if (GameInfoXmlSerializer == null) { GameInfoXmlSerializer = new XmlSerializer(typeof(NcaafbGameInfo)); } NcaafbGameInfo ncaafbGameInfo = GetGameInfo <NcaafbGameInfo>(ncaafbGameInfoUri); return(ncaafbGameInfo); }
public NcaafbGameInfo GetGameSummary(Guid gameId) { // the SportRadar game boxscore and game summary use the same schema and base URL Uri gameSummaryUri = GetGameSummaryUri(gameId); string gameSummaryString = ReadResponseFromUri(gameSummaryUri); StringReader stringReader = new StringReader(gameSummaryString); if (GameInfoXmlSerializer == null) { GameInfoXmlSerializer = new XmlSerializer(typeof(NcaafbGameInfo)); } NcaafbGameInfo ncaafbGameSummary = (NcaafbGameInfo)GameInfoXmlSerializer.Deserialize(stringReader); return(ncaafbGameSummary); }