private SyndicationLibrary.RSS.RssItem CreateRssItem(Eucalypto.News.Item item) { string link = item.URL; string rssTitle = string.Format("[{0}] {1}", item.Category.DisplayName, item.Title); SyndicationLibrary.RSS.RssItem rssItem = new SyndicationLibrary.RSS.RssItem(rssTitle, item.Description, link); rssItem.PublicationDate = item.UpdateDate; rssItem.Guid = new SyndicationLibrary.RSS.RssGuid(link, true); return rssItem; }
private SyndicationLibrary.RSS.RssItem CreateRssItem(BusiBlocks.DocoBlock.Article article) { //Calculate the link of the article //The link is encoded automatically by the Rss library string link = Navigation.Doco_ViewArticle(article.Name, article.Version).GetAbsoluteClientUrl(false); string rssTitle = string.Format("[{0}] {1}", article.Category.DisplayName, article.Title); SyndicationLibrary.RSS.RssItem item = new SyndicationLibrary.RSS.RssItem(rssTitle, article.Description, link); item.PublicationDate = article.UpdateDate; item.Guid = new SyndicationLibrary.RSS.RssGuid(link, true); return(item); }
private SyndicationLibrary.RSS.RssItem CreateRssItem(BusiBlocks.CommsBlock.Forums.Message msg) { //Calculate the link of the forum //The link is encoded automatically by the Rss library string link = "";// Navigation.Forum_ViewTopic(msg.Topic.Id, msg.Id).GetAbsoluteClientUrl(false); string rssTitle = string.Format("[{0}] {1}", msg.Topic.Category.DisplayName, msg.Title); var item = new SyndicationLibrary.RSS.RssItem(rssTitle, msg.Body, link); item.PublicationDate = msg.UpdateDate; item.Guid = new SyndicationLibrary.RSS.RssGuid(link, true); return(item); }
private SyndicationLibrary.RSS.RssItem CreateRssItem(Eucalypto.Forum.Message msg) { //Calculate the link of the forum //The link is encoded automatically by the Rss library string link = Navigation.Forum_ViewTopic(msg.Topic.Id, msg.Id).GetAbsoluteClientUrl(false); string rssTitle = string.Format("[{0}] {1}", msg.Topic.Category.DisplayName, msg.Title); SyndicationLibrary.RSS.RssItem item = new SyndicationLibrary.RSS.RssItem(rssTitle, msg.Body, link); item.PublicationDate = msg.UpdateDate; item.Guid = new SyndicationLibrary.RSS.RssGuid(link, true); return item; }
private SyndicationLibrary.RSS.RssItem CreateRssItem(Eucalypto.Wiki.Article article) { //Calculate the link of the article //The link is encoded automatically by the Rss library string link = Navigation.Wiki_ViewArticle(article.Name, article.Version).GetAbsoluteClientUrl(false); string rssTitle = string.Format("[{0}] {1}", article.Category.DisplayName, article.Title); SyndicationLibrary.RSS.RssItem item = new SyndicationLibrary.RSS.RssItem(rssTitle, article.Description, link); item.PublicationDate = article.UpdateDate; item.Guid = new SyndicationLibrary.RSS.RssGuid(link, true); return item; }