Beispiel #1
0
        private void GetSingleGame(PlaystoreModel model)
        {
            SinglePlaystore sp = new SinglePlaystore(model.Link);

            model.Updated     = sp.detailModel.Update;
            model.Installs    = sp.detailModel.Install;
            model.Description = sp.detailModel.Description;
        }
Beispiel #2
0
        private void AddGameData(HtmlNode item)
        {
            PlaystoreModel model    = new PlaystoreModel();
            string         urlImage = string.Format("https:" + SetImageUrl(item));

            model.Image = urlImage;

            string urlGame = String.Format("https://play.google.com" + SetUrlLink(item) + "&hl=en");

            model.Link = urlGame;

            GetSingleGame(model);

            var detail = item.Descendants("div").Where(d => d.Attributes.Contains("class") && d.Attributes["class"].Value.Contains("details"));

            foreach (var test in detail)
            {
                model.Title    = SetTitle(test);
                model.SubTitle = SetDescription(test);
                model.Creator  = SetCreator(test);
            }
            PlaystoreData.Add(model);
        }