Exemplo n.º 1
0
        private static async Task <IEnumerable <IPlayerStatsSummary> > GetPlayerStatsSummariesAsync(
            IApiModel leagueModel,
            long summonerId,
            SeasonEnum?season = null,
            RegionEnum?region = null)
        {
            if (leagueModel == null)
            {
                throw new ArgumentNullException("leagueModel");
            }

            var statsService = new StatsService(leagueModel.ApiConfiguration);

            return(await statsService.GetPlayerStatsSummariesBySummonerIdAsync(summonerId, season, region));
        }