public void SaveSumSpellData() { SumSpellDataCollection sums = JsonConvert.DeserializeObject<SumSpellDataCollection>(Properties.Resources.SumSpellData); DataPush push = new DataPush(); push.PushSumSpellData(sums); }
public void SaveItemData() { ItemDataCollection items = JsonConvert.DeserializeObject<ItemDataCollection>(Properties.Resources.ItemData); DataPush push = new DataPush(); push.PushItemData(items); }
public void SaveChampData() { ChampDataCollection champs = JsonConvert.DeserializeObject<ChampDataCollection>(Properties.Resources.ChampData); DataPush push = new DataPush(); push.PushChampData(champs); }
public void SaveMatchData(string file) { using (StreamReader reader = new StreamReader(file)) { string json = reader.ReadToEnd(); MatchData match = JsonConvert.DeserializeObject<MatchData>(json); reader.Close(); DataPush push = new DataPush(match); push.PushAll(); } }