RSSViewModel.cs CampusAppWP8::Model::RSS::RSSViewModel CampusAppWP8::Model::RSS //----------------------------------------------------------------------------- //<copyrightfile="RSSViewModel.cs"company="BTU/IIT"> //Companycopyrighttag. //</copyright> //<author>fiedlchr</author> //<sience>24.06.2013</sience> //----------------------------------------------------------------------------- namespaceCampusAppWP8.Model.RSS { usingSystem; usingSystem.Collections.ObjectModel; usingSystem.Xml.Serialization; [XmlRoot("root")] publicclassRSSViewModel { privateDateTimecreateTime; privateObservableCollection<RSSChannelModel>channel; publicRSSViewModel() { this.channel=newObservableCollection<RSSChannelModel>(); this.createTime=DateTime.Now; } [XmlArray("rss")] [XmlArrayItem("channel")] publicObservableCollection<RSSChannelModel>Channel { get { returnthis.channel; } set { if(value!=this.channel) { this.channel=value; } } } publicDateTimeCreateTime { get { returnthis.createTime; } } } }