/// <summary> /// Get ranked stats. Includes statistics for Twisted Treeline and Summoner's Rift. /// </summary> public async Task<IRankedStats> GetRankedStatsSummariesBySummonerIdAsync( long summonerId, SeasonEnum? season = null, RegionEnum? region = null) { var url = string.Format("by-summoner/{0}/ranked", summonerId); if (season.HasValue) url += string.Concat("?season=", season.ToString().ToUpper()); return await GetResponseAsync<RankedStatsDto, IRankedStats>(region, url); }
/// <summary> /// Get player stats summaries. One summary is returned per queue type. /// </summary> public async Task<IEnumerable<IPlayerStatsSummary>> GetPlayerStatsSummariesBySummonerIdAsync( long summonerId, SeasonEnum? season = null, RegionEnum? region = null) { var url = string.Format("by-summoner/{0}/summary", summonerId); if (season.HasValue) url += string.Concat("?season=", season.ToString().ToUpper()); return await GetResponseAsync<PlayerStatsSummaryListDto, IEnumerable<IPlayerStatsSummary>>(region, url); }