Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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)));
 }
Exemplo n.º 4
0
 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")));
 }