/// <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); }
public SportDataLOLClient(string primarySubscriptionKey, string ProjectionPrimarySubscriptionKey) { Uri scoreApiBaseUrl = LOLConfig.ScoreApiBaseUrl; Uri statApiBaseUrl = LOLConfig.StateApiBaseUrl; Uri ProjectionApiBaseUrl = LOLConfig.ProjectionApiBaseUrl; AreasServices = new AreaServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); CompetitionServices = new CompetitionServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); GameServices = new GameServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); MembershipServices = new MembershipServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); PlayerServices = new PlayerServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); SeasonServices = new SeasonServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); TeamServices = new TeamServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); VenueServices = new VenueServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); StandingsServices = new StandingsServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); ScheduleServices = new ScheduleServices(scoreApiBaseUrl.AbsoluteUri, primarySubscriptionKey); ItemServices = new ItemServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey); SpellServices = new SpellServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey); ChampionServices = new ChampionServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey); BoxScoreServices = new BoxScoreServices(statApiBaseUrl.AbsoluteUri, primarySubscriptionKey); ProjectionServices = new ProjectionServices(ProjectionApiBaseUrl.AbsoluteUri, ProjectionPrimarySubscriptionKey); }