RSSViewModel.cs CampusAppWPortalLib8::Model::RSS::RSSViewModel CampusAppWPortalLib8::Model::RSS //----------------------------------------------------------------------- //<copyrightfile="RSSViewModel.cs"company="BTU/IIT"> //TheMITLicense(MIT).Copyright(c)2013BTU/IIT. //</copyright> //<author>fiedlchr</author> //<date>15.10.2013</date> //<summary>ImplementstheRSSviewmodelclass</summary> //----------------------------------------------------------------------- namespaceCampusAppWPortalLib8.Model.RSS { usingSystem; usingSystem.Collections.ObjectModel; usingSystem.Xml.Serialization; [XmlRoot("root")] publicclassRSSViewModel { #regionMember privateDateTimecreateTime; privateObservableCollection<RSSChannelModel>channel; #endregion #regionConstructor publicRSSViewModel() { this.channel=newObservableCollection<RSSChannelModel>(); this.createTime=DateTime.Now; } #endregion #regionProperty [XmlArray("rss")] [XmlArrayItem("channel")] publicObservableCollection<RSSChannelModel>Channel { get { returnthis.channel; } set { if(value!=this.channel) { this.channel=value; } } } publicDateTimeCreateTime { get { returnthis.createTime; } } #endregion } }