Files
win8phoneApp/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkListModel.cs
2013-10-15 13:10:29 +02:00

59 lines
1.7 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="LinkListModel.cs" company="BTU/IIT">
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
// </copyright>
// <author>Stubbfel</author>
// <date>15.10.2013</date>
// <summary>Implements the link list model class</summary>
//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Link
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
/// <summary> Model for a list of links. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
[XmlRoot("root")]
public class LinkListModel
{
#region Member
/// <summary> Time when the model was created. </summary>
private readonly DateTime createTime;
#endregion
#region Constructor
/// <summary> Initializes a new instance of the <see cref="LinkListModel" /> class. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
public LinkListModel()
{
this.createTime = DateTime.Now;
}
#endregion
#region Property
/// <summary> Gets or sets feed information item list. </summary>
/// <value> The links. </value>
[XmlArray("data")]
[XmlArrayItem("link")]
public ObservableCollection<LinkModel> Links { get; set; }
/// <summary> Gets the creation time of the model. </summary>
/// <value> The create time. </value>
public DateTime CreateTime
{
get
{
return this.createTime;
}
}
#endregion
}
}