/* * This work is licensed under the Creative Commons Attribution 2.5 License. * To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ * or send a letter to Creative Commons, 543 Howard Street, 5th Floor, * San Francisco, California, 94105, USA. * * Original developer: David Betz * */ using System; using System.Collections.Generic; using System.Text; namespace FeedBuilder { public class SimpleFeed { private String title; private String text; private DateTime date; private String link; private AbstractReader reader; public String Title { get { if (title.Length == 0 && reader != null) { // return reader. } return title; } set { title = value; } } public String Text { get { return text; } set { text = value; } } public DateTime Date { get { return date; } set { date = value; } } public String Link { get { return link; } set { link = value; } } public AbstractReader Reader { get { return reader; } set { reader = value; } } public SimpleFeed() { } public SimpleFeed(String title) { this.Title = title; } public SimpleFeed(String title, String text) { this.Title = title; this.Text = text; } public SimpleFeed(String title, String text, DateTime date) { this.Title = title; this.Text = text; this.Date = date; } public SimpleFeed(String title, String text, DateTime date, String link) { this.Title = title; this.Text = text; this.Date = date; this.Link = link; } public SimpleFeed(AbstractReader reader) { this.Reader = reader; } } }