//----------------------------------------------------------------------------- // // Company copyright tag. // // fiedlchr // 24.06.2013 //----------------------------------------------------------------------------- namespace CampusAppWP8ScheduledTaskAgent.Model.RSS { using System; using System.Collections.ObjectModel; using System.Xml.Serialization; /// /// ViewModel of the RSS feed, containing the feed/channel object. /// [XmlRoot("root")] public class RSSViewModel { #region Member /// /// Object to store the time when the instance was created. /// private DateTime createTime; /// /// Channel list for the RSS feeds. /// private ObservableCollection channel; #endregion #region Constructor /// /// Initializes a new instance of the class. /// public RSSViewModel() { this.channel = new ObservableCollection(); this.createTime = DateTime.Now; } #endregion #region Property /// /// Gets or sets the channel list. /// [XmlArray("rss")] [XmlArrayItem("channel")] public ObservableCollection Channel { get { return this.channel; } set { if (value != this.channel) { this.channel = value; } } } /// /// Gets the creation time. /// public DateTime CreateTime { get { return this.createTime; } } #endregion } }