public MapData() { Image = new DDImage(); MapName = ""; MapId = 0; IsChecked = false; }
public ChampionData() { Tags = new Collection <string>(); Image = new DDImage(); Name = ""; Title = ""; Key = 0; }
public ItemData() { Maps = new Dictionary <string, bool>(); Tags = new Collection <string>(); Image = new DDImage(); Gold = new Gold(); RequiredChampion = ""; Name = ""; Description = ""; Id = "0"; }
private async Task DownloadImage(DDImage image, bool update = false) { if (File.Exists(image.Path) && !update) { return; } #if DEBUG Log.Info("Download image: " + image.Link + " to: " + image.Path); #endif try { await webClient.DownloadFileTaskAsync(image.Link, image.Path); } catch (Exception e) { #if DEBUG Log.Error("Failed to download image: " + image.Link + ". \r\n" + e.Message); #endif } }