Click here to Skip to main content
15,884,298 members
Articles / Web Development / ASP.NET

A very standard, powerful and easy to use Sample and Library for working on RSS 2.0

Rate me:
Please Sign up or sign in to vote.
4.85/5 (23 votes)
18 Feb 2005MIT1 min read 46K   649   51  
With this library, you can easily create some RSS 2.0 files for your site and/or use some RSS 2.0 files from other sites into your site.
namespace IranianExperts.RSS
{
	public class RSSItem
	{
		private string _link = "";
		private string _title = "";
		private string _author = "";
		private string _pubDate = "";
		private string _comment = "";
		private string _description = "";

		/// <summary>
		/// [Optional] - The URL of the item.
		/// </summary>
		public string Link
		{
			get
			{
				return(_link);
			}
			set
			{
				_link = value;
			}
		}

		/// <summary>
		/// [Optional] - The title of the item.
		/// </summary>
		public string Title
		{
			get
			{
				return(_title);
			}
			set
			{
				_title = value;
			}
		}

		/// <summary>
		/// [Optional] - Email address of the author of the item.
		/// </summary>
		public string Author
		{
			get
			{
				return(_author);
			}
			set
			{
				_author = value;
			}
		}

		/// <summary>
		/// [Optional] - Indicates when the item was published. RFC 822 Formated date.
		/// </summary>
		public string PubDate
		{
			get
			{
				return(_pubDate);
			}
			set
			{
				_pubDate = value;
			}
		}

		/// <summary>
		/// [Optional] - URL of a page for comments relating to the item.
		/// </summary>
		public string Comment
		{
			get
			{
				return(_comment);
			}
			set
			{
				_comment = value;
			}
		}

		/// <summary>
		/// [Optional] - The item synopsis.
		/// </summary>
		public string Description
		{
			get
			{
				return(_description);
			}
			set
			{
				_description = value;
			}
		}

		/// <summary>
		/// Default Constructor
		/// </summary>
		public RSSItem()
		{
		}

		/// <summary>
		/// Constructor
		/// </summary>
		public RSSItem(string title)
		{
			_title = title;
		}

		/// <summary>
		/// Constructor
		/// </summary>
		public RSSItem(string title, string link)
		{
			_link = link;
			_title = title;
		}

		#region Support
		public static string Owner
		{
			get
			{
				return("Dariush Tasdighi - From Tehran, Iran");
			}
		}

		public static string Version
		{
			get
			{
				return("1.0.0");
			}
		}

		public static string Support
		{
			get
			{
				return("Dariush@IranianExperts.com;DariushT@GMail.com;DariushTasdighi@Yahoo.com");
			}
		}

		public static string Homepage
		{
			get
			{
				return("http://www.IranianExperts.com;http://groups.yahoo.com/group/IranianExperts");
			}
		}

		public static string UpdatedDate
		{
			get
			{
				return("14 Feb 2005");
			}
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Web Developer Sematec Ins.
Iran (Islamic Republic of) Iran (Islamic Republic of)
My experiences are:

HTML 5.0, CSS 3.0
JQuery, Angular JS, Bootstrap

MVC 5.0, WEB API, c#

My Site URLs:
http://www.IranianExperts.ir
http://www.IranianExperts.com

My Yahoo Group URL: http://groups.yahoo.com/group/iranianexperts

Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

Comments and Discussions