87 lines
2.2 KiB
C#
87 lines
2.2 KiB
C#
//-----------------------------------------------------------------------------
|
|
// <copyright file="StudentCouncilModel.cs" company="BTU/IIT">
|
|
// Company copyright tag.
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>02.07.2013</sience>
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace CampusAppWPortalLib8.Model.StudentCouncil
|
|
{
|
|
using CampusAppWPortalLib8.Resources;
|
|
using System.Xml.Serialization;
|
|
|
|
/// <summary>
|
|
/// Model for menu
|
|
/// </summary>
|
|
public class StudentCouncilModel
|
|
{
|
|
#region Member
|
|
|
|
/// <summary>
|
|
/// name of the faculty.
|
|
/// </summary>
|
|
private string faculty;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="StudentCouncilModel" /> class.
|
|
/// </summary>
|
|
public StudentCouncilModel()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Property
|
|
|
|
/// <summary>
|
|
/// Gets or sets the faculty of the StudentCouncil.
|
|
/// </summary>
|
|
[XmlAttribute("faculty")]
|
|
public string Faculty
|
|
{
|
|
get
|
|
{
|
|
return this.faculty;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (value != this.faculty)
|
|
{
|
|
this.faculty = value;
|
|
int num;
|
|
if (int.TryParse(this.faculty, out num))
|
|
{
|
|
this.faculty = AppResources.Faculty + " " + num;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the StudentCouncil.
|
|
/// </summary>
|
|
[XmlAttribute("name")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the webpage-url of the StudentCouncil.
|
|
/// </summary>
|
|
[XmlAttribute("url")]
|
|
public string Url { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the email-address of the StudentCouncil.
|
|
/// </summary>
|
|
[XmlAttribute("email")]
|
|
public string Email { get; set; }
|
|
|
|
#endregion
|
|
}
|
|
}
|