meraki-analytics / orianna

A Java framework for the Riot Games League of Legends API (http://developer.riotgames.com/).
MIT License
182 stars 56 forks source link

AggregatedStats #37

Closed JeffreyCA closed 9 years ago

JeffreyCA commented 9 years ago

Is there a way to get AggregatedStats for a summoner s?

robrua commented 9 years ago

s.getRankedStats() gives Map<Champion, ChampionStats>. In this, null maps to combined stats for all champions. championStats.getStats() gives AggregatedStats

JeffreyCA commented 9 years ago

Yes that's for Ranked Stats, but what about for player stat summaries in general (not only ranked)? I'm talking about this. You can specify the queue type and it returns a summary of information for that type.

Because I want to get the total number of wins for a summoner, to do that I must add up all the wins from each game type.

robrua commented 9 years ago

getStats() rather than getRankedStats() corresponds to that endpoint. On Aug 21, 2015 10:09 PM, "Jeffrey" notifications@github.com wrote:

Yes that's for Ranked Stats, but what about for player stat summaries in general (not only ranked)? I'm talking about this https://developer.riotgames.com/api/methods#!/1018/3453. You can specify the queue type and it returns a summary of information for that type.

— Reply to this email directly or view it on GitHub https://github.com/robrua/Orianna/issues/37#issuecomment-133626276.