58 lines
1.9 KiB
C#
58 lines
1.9 KiB
C#
//-----------------------------------------------------------------------------
|
|
// <copyright file="PlaceService.cs" company="BTU/IIT">
|
|
// Company copyright tag.
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>19.08.2013</sience>
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace CampusAppWPortalLib8.Model.GeoDb
|
|
{
|
|
using System;
|
|
using System.Xml.Serialization;
|
|
|
|
/// <summary>Place service.</summary>
|
|
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
|
public class PlaceService : IEquatable<PlaceService>
|
|
{
|
|
/// <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; }
|
|
|
|
/// <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;
|
|
}
|
|
}
|
|
}
|