Files
win8phoneApp/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseModel.cs
2013-10-01 13:25:27 +02:00

61 lines
1.9 KiB
C#

// <copyright file="CourseModel.cs" company="BTU/IIT">
// Company copyright tag.List
// </copyright>
// <author>stubbfel</author>
// <sience>25.07.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using System;
/// <summary>Course model.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
public class CourseModel : IEquatable<CourseModel>
{
#region Constructor
/// <summary>Initializes a new instance of the CourseModel class.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
/// <param name="courseNumber">The course number.</param>
/// <param name="courseText"> The course text.</param>
public CourseModel(string courseNumber, string courseText)
{
this.CourseNumber = courseNumber;
this.CourseText = courseText;
}
#endregion
#region Property
/// <summary>Gets or sets the course number.</summary>
/// <value>The course number.</value>
public string CourseNumber { get; set; }
/// <summary>Gets or sets the course text.</summary>
/// <value>The course text.</value>
public string CourseText { get; set; }
#endregion
#region Method
/// <summary>Tests if this CourseModel is considered equal to another.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
/// <param name="other">The course model to compare to this object.</param>
/// <returns>true if the objects are considered equal, false if they are not.</returns>
public bool Equals(CourseModel other)
{
if (this.CourseNumber.Equals(other.CourseNumber))
{
return true;
}
return false;
}
#endregion
}
}