Example #1
0
		public virtual void CopyValues(FeedItem n)
		{
			this.Author = n.Author;
			if (n.Category != null) {
				this.Category = new Category();
				this.Category.Domain = n.Category.Domain;
				this.Category.Name = n.Category.Name;
			} else {
				this.Category = null;
			}
			this.Comments = n.Comments;
			this.Description = n.Description;
			if (n.Enclosure != null) {
				this.Enclosure = new Enclosure();
				this.Enclosure.Length = n.Enclosure.Length;
				this.Enclosure.Type = n.Enclosure.Type;
				this.Enclosure.Url = n.Enclosure.Url;
			} else {
				this.Enclosure = null;
			}
			this.GUID = n.GUID;
			this.InsertDate = n.InsertDate;
			this.Link = n.Link;
			this.PublishDate = n.PublishDate;
			this.Source = n.Source;
			this.Title = n.Title;
		}
Example #2
0
		public virtual void Clear()
		{
			this.Title = string.Empty;
			this.Link = null;
			this.Description = string.Empty;
			this.Author = string.Empty;
			this.InsertDate = new DateTime();;
			this.PublishDate = new DateTime();;
			this.Comments = null;
			this.GUID = null;
			this.Category = null;
			this.Enclosure = null;
			this.Source = null;
		}