Esempio n. 1
0
        public void SaveSumSpellData()
        {
            SumSpellDataCollection sums = JsonConvert.DeserializeObject<SumSpellDataCollection>(Properties.Resources.SumSpellData);

            DataPush push = new DataPush();
            push.PushSumSpellData(sums);
        }
Esempio n. 2
0
        public void SaveItemData()
        {
            ItemDataCollection items = JsonConvert.DeserializeObject<ItemDataCollection>(Properties.Resources.ItemData);

            DataPush push = new DataPush();
            push.PushItemData(items);
        }
Esempio n. 3
0
        public void SaveChampData()
        {
            ChampDataCollection champs = JsonConvert.DeserializeObject<ChampDataCollection>(Properties.Resources.ChampData);

            DataPush push = new DataPush();
            push.PushChampData(champs);
        }
Esempio n. 4
0
        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();
            }
        }