/// <summary> /// Retrieves leagues entry data for summoner, including league entries for all of summoner's teams /// </summary> private static async Task<IEnumerable<ILeague>> RetrieveLeaguesEntryDataAsync( IApiModel leagueModel, long summonerId, RegionEnum? region = null) { if (leagueModel == null) throw new ArgumentNullException("leagueModel"); var leagueService = new LeagueService(leagueModel.ApiConfiguration); return await leagueService.RetrievesLeaguesEntryDataForSummonerAsync(summonerId, region); }
private void Init() { Champion = new ChampionService(LeagueApiConfiguration); Game = new GameService(LeagueApiConfiguration); League = new LeagueService(LeagueApiConfiguration); Stats = new StatsService(LeagueApiConfiguration); Summoner = new SummonerService(LeagueApiConfiguration); Team = new TeamService(LeagueApiConfiguration); Static = new StaticService(LeagueApiConfiguration); }