Пример #1
0
        public List <Article> GetAllResourcesFromFeed(Rssfeeds foundFeed)
        {
            List <Article> articleList = new List <Article>();

            if (!string.IsNullOrEmpty(foundFeed.FeedLink))
            {
                var articleLogic = new ArticleLogic(Cache);

                var feedArticles = articleLogic.CheckNewsEntityForArticles(foundFeed);

                articleList.AddRange(feedArticles);
            }

            if (!string.IsNullOrEmpty(foundFeed.VideoLink))
            {
                var newYouTubeLogic = new YouTubeLogic(Configuration, Cache);

                var vidList = newYouTubeLogic.CheckNewsEntityForVideos(foundFeed);

                articleList.AddRange(vidList);
            }

            return(articleList);
        }