Пример #1
0
        public static List <SingleMatch> GetMatchDetails(string region, MatchHist matchHist)
        {
            List <SingleMatch> allMatchDetails = new List <SingleMatch>();

            for (int i = 0; i < 20; ++i)
            {
                string matchUrl = RiotUrl.GetMatchUrl(region, matchHist.Matches[i].GameId.ToString());

                allMatchDetails.Add(JsonSettings.GetStats <SingleMatch>(matchUrl));
            }
            return(allMatchDetails);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void DataGen(object sender, EventArgs e)
        {
            var username = HeroNameBox.Text;
            var usernum  = HeroTag.Text;


            var obj  = BlizzardUrl.ConnectToBlizzard(username, usernum);
            var obj2 = BlizzardUrl.ConnectToBlizzard2(username, usernum);

            var currentHero  = JsonSettings.GetStats <RootObject>(obj);
            var currentHero2 = JsonSettings.GetStats <Root>(obj2);


            UpdatePageData(currentHero, currentHero2);
        }