- rssfeeder_src.zip
- RSSFeeder
- RSSBlogAPI
- RSSCommon
- RSSFeeder.sln
- RSSFeeder
- RSSFeederResources
- RSSFeederSetup
- Messages.ico
- RSSFeederSetup.vdproj
- Test
- RSSStarter
- RSSTests
- Thirdparty
- AxInterop.DHTMLEDLib.dll
- AxInterop.SHDocVw.dll
- Eyefinder.dll
- GotDotNet.Exslt.dll
- HttpDownloader.dll
- Interop.DHTMLEDLib.dll
- Interop.SHDocVw.dll
- Interop.WindowsInstaller.dll
- Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll
- Microsoft.ApplicationBlocks.Updater.dll
- Microsoft.ApplicationBlocks.Updater.Downloaders.dll
- Microsoft.Practices.EnterpriseLibrary.Caching.dll
- Microsoft.Practices.EnterpriseLibrary.Common.dll
- Microsoft.Practices.EnterpriseLibrary.Configuration.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cache.CachingStore.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
- Microsoft.Practices.EnterpriseLibrary.Security.dll
- NotifyIconBalloon.dll
- SandBar.dll
- SandDock.dll
- SgmlReaderDll.dll
|
// Copyright � 2005 by Omar Al Zabir. All rights are reserved.
//
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
//
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
//
// website http://www.oazabir.com, email OmarAlZabir@gmail.com, msn oazabir@hotmail.com
using System;
using System.Xml.Serialization;
using System.Drawing;
using System.ComponentModel;
using System.Drawing.Design;
namespace RSSBlogAPI
{
/// <summary>
/// Represents one post
/// </summary>
[Serializable][XmlRoot("post")]
public class Post
{
private int _Id = 0;
private string _Title = string.Empty;
private DateTime _Date = DateTime.Now;
private string _Text = string.Empty;
private Category [] _Categories;
private bool _IsSend = false;
private bool _IsSent = false;
private string _ErrorInPost = string.Empty;
public Post()
{
}
[Category("Misc"), DefaultValue(0), Browsable(true),
Description(@"Internal ID")]
[XmlElement("id")]
public int Id
{
get { return _Id; }
set { _Id = value; }
}
[Category("Error"), DefaultValue(""), Browsable(true),
Description(@"Contains the error message returned from server after post")]
[XmlElement("errorInPost")]
public string ErrorInPost
{
get { return _ErrorInPost; }
set { _ErrorInPost = value; }
}
[Category("Blog"), DefaultValue(""), Browsable(true),
Description(@"Title of the post")]
[XmlElement("title")]
public string Title
{
get { return _Title; }
set { _Title = value; }
}
[Category("Blog"), Browsable(true),
Description(@"Date and time of post")]
[XmlElement("date")]
public DateTime Date
{
get { return _Date; }
set { _Date = value; }
}
[Category("Blog"), DefaultValue(""), Browsable(true),
Description(@"Content of the post")]
[XmlElement("text")]
public string Text
{
get { return _Text; }
set { _Text = value; }
}
[Category("Categories"), DefaultValue(""), Browsable(true),
Description(@"Categories of the post")]
[XmlArray("categories"), XmlArrayItem("category", typeof(Category)) ]
public Category [] Categories
{
get { return _Categories; }
set { _Categories = value; }
}
[Category("Post"), DefaultValue(false), Browsable(true),
Description(@"Whether to send this or not")]
[XmlElement("isSend")]
public bool IsSend
{
get { return this._IsSend; }
set { this._IsSend = value; }
}
[Category("Post"), DefaultValue(false), Browsable(true),
Description(@"Whether it has been sent successfully or not")]
[XmlElement("isSent")]
public bool IsSent
{
get { return this._IsSent; }
set { this._IsSent = value; }
}
public override string ToString()
{
return this.Title;
}
}
}
|
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.