/// <summary> /// Get mastery pages /// </summary> private static async Task<Dictionary<long, IEnumerable<IMasteryPage>>> GetMasteryPagesAsync( IApiModel leagueModel, IEnumerable<long> summonerIds, RegionEnum? region = null) { if (leagueModel == null) throw new ArgumentNullException("leagueModel"); var summonerService = new SummonerService(leagueModel.ApiConfiguration); return await summonerService.GetMasteryPagesBySummonerIdAsync(summonerIds, 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); }
/// <summary> /// Get mastery pages /// </summary> private static async Task<IEnumerable<IRunePage>> GetRunePagesAsync( IApiModel leagueModel, long summonerId, RegionEnum? region = null) { if (leagueModel == null) throw new ArgumentNullException("leagueModel"); var summonerService = new SummonerService(leagueModel.ApiConfiguration); return await summonerService.GetRunePagesBySummonerIdAsync(summonerId, region); }