コード例 #1
0
        /// <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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
        /// <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);
        }