Example #1
0
        private async Task UpdateCommets()
        {
            CommentsProgressRing = true;

            var htmlPage = await HttpRequest.GetRequestOnlinerAsync(NewsUrl);
            FullPageParser = new ParsingFullNewsPage(htmlPage, NewsUrl);

            Comments = await FullPageParser.CommentsMainInfo();

            CommentsProgressRing = false;
            await Task.CompletedTask;
        }
Example #2
0
        /// <summary>
        /// Load all news data
        /// </summary>
        /// <param name="urlPage"></param>
        /// <returns></returns>
        private async Task LoadNewsData(string urlPage)
        {
            NewsUrl = urlPage;

            var htmlPage = await HttpRequest.GetRequestOnlinerAsync(NewsUrl);

            FullPageParser = new ParsingFullNewsPage(htmlPage, NewsUrl);
            //news data
            NewsItemContent = await FullPageParser.NewsMainInfo();
            //comments data
            Comments = await FullPageParser.CommentsMainInfo();

            CommentsProgressRing = false;
            await HttpRequest.ViewNewsSet(FullPageParser.NewsID);
        }