//----------------------------------------------------------------------- // // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // fiedlchr // 15.10.2013 // Implements the RSS view model class //----------------------------------------------------------------------- namespace CampusAppWPortalLib8.Model.RSS { using System; using System.Collections.ObjectModel; using System.Xml.Serialization; /// ViewModel of the RSS feed, containing the feed/channel object. /// fiedlchr, 15.10.2013. [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. /// fiedlchr, 15.10.2013. public RSSViewModel() { this.channel = new ObservableCollection(); this.createTime = DateTime.Now; } #endregion #region Property /// Gets or sets the channel list. /// The channel. [XmlArray("rss")] [XmlArrayItem("channel")] public ObservableCollection Channel { get { return this.channel; } set { if (value != this.channel) { this.channel = value; } } } /// Gets the creation time. /// The create time. public DateTime CreateTime { get { return this.createTime; } } #endregion } }