/// <summary> /// /// </summary> /// <param name="apiBaseUrl"></param> /// <param name="primarySubscriptionKey"></param> /// <param name="secondarySubscriptionKey"></param> public FantasyNBAClient(string primarySubscriptionKey, string secondarySubscriptionKey) { Uri statApiBaseUrl = NBAConfig.StateApiBaseUrl; Uri scoreApiBaseUrl = NBAConfig.ScoreApiBaseUrl; Uri PbpApiBaseUrl = NBAConfig.PbpApiBaseUrl; Uri ProjectionApiBaseUrl = NBAConfig.ProjectionApiBaseUrl; CommonServices = new CommonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); SeasonServices = new SeasonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); GameServices = new GameServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); NewsServices = new NewsServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); StadiumsServices = new StadiumsServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); StandingsServices = new StandingsServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); OpponentSeasonServices = new OpponentSeasonServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); TeamServices = new TeamServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); BoxScoreServices = new BoxScoreServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); //DfsSlateServices = new DfsSlateServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); PlayerServices = new PlayerServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); PlayerGameServices = new PlayerGameServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); TeamSeasonServices = new TeamSeasonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); BoxScorePbpServices = new BoxScorePbpServices(PbpApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); PlayerSeasonServices = new PlayerSeasonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); DfsSlateServices = new DfsSlateServices(ProjectionApiBaseUrl.AbsoluteUri, NBAConfig.ProjectionPrimarySubscriptionKey, NBAConfig.ProjectionSecondarySubscriptionKey); ProjectionServices = new ProjectionServices(ProjectionApiBaseUrl.AbsoluteUri, NBAConfig.ProjectionPrimarySubscriptionKey, NBAConfig.ProjectionSecondarySubscriptionKey); }
/// <summary> /// /// </summary> /// <param name="apiBaseUrl"></param> /// <param name="primarySubscriptionKey"></param> /// <param name="secondarySubscriptionKey"></param> public FantasyNHLClient(string primarySubscriptionKey, string secondarySubscriptionKey) { Uri statApiBaseUrl = NHLConfig.StateApiBaseUrl; Uri scoreApiBaseUrl = NHLConfig.ScoreApiBaseUrl; Uri ProjectionApiBaseUrl = NHLConfig.ProjectionApiBaseUrl; TeamServices = new TeamServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); StadiumServices = new StadiumServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); GameServices = new GameServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); PlayerServices = new PlayerServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); ProjectionServices = new ProjectionServices(ProjectionApiBaseUrl.AbsoluteUri, NHLConfig.ProjectionPrimarySubscriptionKey, NHLConfig.ProjectionSecondarySubscriptionKey); BoxScoreServices = new BoxScoreServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); SeasonService = new SeasonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); DFSSlatesService = new DFSSlatesServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); StandingService = new StandingServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); PlayerGameService = new PlayerGameServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); TeamSeasonService = new TeamSeasonServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); NewsService = new NewsServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey, secondarySubscriptionKey); }