Files
win8phoneApp/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceService.cs
2013-10-15 11:28:01 +02:00

67 lines
2.1 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="PlaceService.cs" company="BTU/IIT">
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
// </copyright>
// <author>Stubbfel</author>
// <date>15.10.2013</date>
// <summary>Implements the place service class</summary>
//-----------------------------------------------------------------------
namespace CampusAppWP8.Model.GeoDb
{
using System;
using System.Xml.Serialization;
/// <summary> Place service. </summary>
/// <remarks> Stubbfel, 19.08.2013. </remarks>
/// <seealso cref="T:System.IEquatable{CampusAppWP8.Model.GeoDb.PlaceService}"/>
public class PlaceService : IEquatable<PlaceService>
{
#region Property
/// <summary> Gets or sets the name of the service. </summary>
/// <value> The name of the service. </value>
[XmlAttribute("placeServiceName")]
public string ServiceName { get; set; }
/// <summary> Gets or sets the SAP of an service. </summary>
/// <value> The sap. </value>
[XmlElement("sap")]
public string SAP { get; set; }
/// <summary> Gets or sets the request for a place. </summary>
/// <value> The request. </value>
[XmlElement("request")]
public string Request { get; set; }
#endregion
#region Method
/// <summary> Gets the URL string. </summary>
/// <value> The URL string. </value>
public string URLString
{
get
{
return this.SAP + this.Request;
}
}
/// <summary> Tests if this PlaceService is considered equal to another. </summary>
/// <remarks> Stubbfel, 09.09.2013. </remarks>
/// <param name="other"> The place service to compare to this object. </param>
/// <returns> true if the objects are considered equal, false if they are not. </returns>
public bool Equals(PlaceService other)
{
if (other.ServiceName.Equals(this.ServiceName))
{
return true;
}
return false;
}
#endregion
}
}