예제 #1
0
 public Feed GetRssFeed(string feedUrl)
 {
     var rssFeeder = new RssFeeder(feedUrl);
     var rssItems = rssFeeder.GetRssFeed();
     var result = MapFeed(rssItems);
     return result;
 }
예제 #2
0
 public Feed GetRssFeed(string feedUrl, string category)
 {
     var rssFeeder = new RssFeeder(feedUrl);
     var feed = rssFeeder.GetRssFeed();
     var mappedFeed = MapFeed(feed);
     mappedFeed.Items = mappedFeed.Items.Where(i => i.Category == category).ToList();
     return mappedFeed;
 }