/// <summary> /// Gets all RSS items for the specified category. /// </summary> /// <param name="category">The category for which RSS items should be retrieved.</param> /// <returns>Returns a list of all RSS items of the specified category.</returns> public List<RssItem> GetRssItems(Category category) { var doc = DownloadFeedData(category); var items = ParseRssItems(doc); return items; }
/// <summary> /// Downloads RSS feed data for the specified category. /// </summary> /// <param name="category">Category of the feed.</param> /// <returns>Returns the feed data.</returns> private XDocument DownloadFeedData(Category category) { return DownloadFeedData(string.Format("http://channel9.msdn.com{0}/RSS", category.RelativePath)); }
/// <summary> /// Initializes a new instance of the <see cref="Series"/> class. /// Copy constructor for <see cref="Category"/>. /// </summary> /// <param name="category">The recurring category whose values should be copied.</param> public Series(Category category) { Description = category.Description; RelativePath = category.RelativePath; Title = category.Title; }