Files
win8phoneApp/CampusAppWP8/CampusAppWP8/Model/Exams/ExamModel.cs
2013-09-02 16:44:33 +02:00

68 lines
2.2 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="ExamModel.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>02.09.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Exams
{
using CampusAppWP8.Utility;
using System.Xml.Serialization;
/// <summary>Exam model.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public class ExamModel
{
/// <summary>Gets or sets the course number.</summary>
/// <value>The course number.</value>
[XmlAttribute("stg")]
public string CourseNumber { get; set; }
/// <summary>Gets or sets the course text.</summary>
/// <value>The course text.</value>
[XmlAttribute("stgtext")]
public string CourseText { get; set; }
/// <summary>Gets or sets the degree number.</summary>
/// <value>The degree number.</value>
[XmlAttribute("abschl")]
public string DegreeNumber { get; set; }
/// <summary>Gets or sets the version.</summary>
/// <value>The version.</value>
[XmlAttribute("pversion")]
public string Version { get; set; }
/// <summary>Gets or sets the type.</summary>
/// <value>The type.</value>
[XmlAttribute("typ")]
public string Type { get; set; }
/// <summary>Gets or sets the title.</summary>
/// <value>The title.</value>
[XmlAttribute("dtxt")]
public string Title { get; set; }
/// <summary>Gets or sets the date.</summary>
/// <value>The date.</value>
[XmlAttribute("datum")]
public string Date { get; set; }
/// <summary>Gets or sets the link.</summary>
/// <value>The link.</value>
[XmlAttribute("link")]
public string Link { get; set; }
/// <summary>Gets the caption.</summary>
/// <value>The caption.</value>
public string Caption
{
get
{
return StringManager.StripHTML(this.CourseText + " (" + this.Type + "/" + this.Version + ")");
}
}
}
}