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

62 lines
2.0 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="OpeninghoursLocationModel.cs" company="BTU/IIT">
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
// </copyright>
// <author>Fiedler</author>
// <date>13.11.2013</date>
// <summary>Implements the openinghours location model class</summary>
//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Openinghours
{
using System.Collections.ObjectModel;
using System.Xml.Serialization;
/// <summary> Model for menu. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
public class OpeninghoursLocationModel
{
/// <summary> The institutions. </summary>
private ObservableCollection<OpeninghoursInstitutionModel> institutions = null;
/// <summary> Identifier for the location. </summary>
private int locationID = -1;
/// <summary> Initializes a new instance of the OpeninghoursLocationModel class. </summary>
/// <remarks> Fiedler, 13.11.2013. </remarks>
public OpeninghoursLocationModel()
{
this.institutions = new ObservableCollection<OpeninghoursInstitutionModel>();
}
/// <summary> Gets or sets the identifier of the location. </summary>
/// <value> The identifier of the location. </value>
[XmlAttribute("id")]
public int LocationID
{
get
{
return this.locationID;
}
set
{
this.locationID = value;
}
}
/// <summary> Gets or sets the institutions. </summary>
/// <value> The institutions. </value>
[XmlElement("Object")]
public ObservableCollection<OpeninghoursInstitutionModel> Institutions
{
get
{
return this.institutions;
}
set
{
this.institutions = value;
}
}
}
}