Files
win8phoneApp/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursModel.cs
Christian Fiedler fa5d2e17e5 #269 done
2013-11-13 13:46:53 +01:00

75 lines
2.2 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="OpeninghoursModel.cs" company="BTU/IIT">
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
// </copyright>
// <author>fiedlchr</author>
// <date>15.10.2013</date>
// <summary>Implements the openinghours model class</summary>
//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Openinghours
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
/// <summary> Model for opening hours. </summary>
/// <remarks> fiedlchr, 15.10.2013. </remarks>
/// <typeparam name="T"> Generic type parameter. </typeparam>
[XmlRoot("root")]
public class OpeninghoursModel
{
#region Member
/// <summary> Time when the model was created. </summary>
private readonly DateTime createTime;
/// <summary> Gets or sets feed information item list. </summary>
private ObservableCollection<OpeninghoursLocationModel> locations;
#endregion
#region Constructor
/// <summary> Initializes a new instance of the OpeninghoursModel class. </summary>
/// <remarks> fiedlchr, 15.10.2013. </remarks>
public OpeninghoursModel()
{
this.locations = new ObservableCollection<OpeninghoursLocationModel>();
this.createTime = DateTime.Now;
}
#endregion
#region Property
/// <summary> Gets the creation time of the model. </summary>
/// <value> The create time. </value>
public DateTime CreateTime
{
get
{
return this.createTime;
}
}
/// <summary> Gets or sets the Institutions. </summary>
/// <value> The institutions. </value>
[XmlArray("data")]
[XmlArrayItem("Location")]
public ObservableCollection<OpeninghoursLocationModel> Locations
{
get
{
return this.locations;
}
set
{
this.locations = value;
}
}
#endregion
}
}