public async static Task<EndPointDDragon> GetVersions() { if (instance == null) { string json = await new Requester(@"https://ddragon.leagueoflegends.com/realms/br.json").GetJson(); instance = JsonConvert.DeserializeObject<EndPointDDragon>(json); } return instance; }
public async static Task <EndPointDDragon> GetVersions() { if (instance == null) { string json = await new Requester(@"https://ddragon.leagueoflegends.com/realms/br.json").GetJson(); instance = JsonConvert.DeserializeObject <EndPointDDragon>(json); } return(instance); }
public async Task <BitmapImage> GetChampionSquare() { return(new BitmapImage(new Uri("http://ddragon.leagueoflegends.com/cdn/" + (await EndPointDDragon.GetVersions()).GeralVersion.Champion + "/img/champion/" + this.Image.Full))); }
public async Task <BitmapImage> GetProfileIcon() { return(new BitmapImage(new Uri(@"http://ddragon.leagueoflegends.com/cdn/" + (await EndPointDDragon.GetVersions()).GeralVersion.ProfileIcon + "/img/profileicon/" + this.ProfileIconId.ToString() + ".png"))); }