Created
May 6, 2014 07:40
-
-
Save kRapaille/ec8fe47af09f7bbb56ec to your computer and use it in GitHub Desktop.
How to pull a person’s normal game wins using PortableLeagueAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var summoner = await leagueAPI.Summoner.GetSummonerByNameAsync("TuC Kiwii"); | |
var summonerStats = await leagueAPI.Stats.GetPlayerStatsSummariesBySummonerIdAsync(summoner.SummonerId); | |
var summonerStats2 = await summoner.GetPlayerStatsSummariesAsync(); | |
var normalStats = summonerStats2.FirstOrDefault(x => x.PlayerStatSummaryType == PlayerStatSummaryTypeEnum.Unranked); | |
if (normalStats != null) | |
{ | |
var unrankedWins = normalStats.Wins; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment