//-----------------------------------------------------------------------
//
// Company copyright tag.
//
// stubbfel
// 04.05.2013
//----------------------------------------------------------------------
namespace CampusAppWP8ScheduledTaskAgent.Model.Mensa
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
///
/// Model for menu
///
public class MenuModel
{
#region Member
///
/// Name of the day
///
private string dayName;
///
/// DateTime of the day
///
private string date;
#endregion
#region Constructor
///
/// Initializes a new instance of the class.
///
public MenuModel()
{
}
#endregion
#region Property
///
/// Gets or sets the menus for the week
///
[XmlElement("Meal")]
public ObservableCollection Meals { get; set; }
///
/// Gets or sets the WeekDay
///
[XmlAttribute("day")]
public string Day
{
get
{
return this.dayName;
}
set
{
if (value != this.dayName)
{
this.dayName = value;
}
}
}
///
/// Gets or sets of Date
///
[XmlAttribute("date")]
public string Date
{
get
{
return this.date.ToString();
}
set
{
if (value != this.date)
{
this.date = value;
}
}
}
#endregion
}
}