public static SummonerSpellDto ReadSummonerSpellFromStaticFile(string name) { if (StaticFileExists(StaticData.SummonerSpells)) { SummonerSpellListDto spells = ReadFromStaticFile <SummonerSpellListDto>(StaticData.SummonerSpells); foreach (SummonerSpellDto spell in spells.data.Values) { if (spell.name == name) { return(spell); } } } return(new SummonerSpellDto()); }
protected override void ReadInfo() { SummonerSpellList = BaronReplays.RiotAPI.Services.Request.ReadFromFile(DirectoryPath + InfoFile, typeof(SummonerSpellListDto)); DecodeData(); }
public override bool UpdateInfo() { SummonerSpellList = BaronReplays.RiotAPI.Services.Request.GetStaticData("na/v1.2/summoner-spell?spellData=image&locale=" + Request.ApiLanguage, typeof(SummonerSpellListDto), DirectoryPath + InfoFile); return(SummonerSpellList != null); }