mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 22:36:26 +01:00
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TINK.Model.Stations.StationNS.Operator;
|
|
|
|
namespace TINK.Model.Stations.StationNS
|
|
{
|
|
/// <summary> Holds station info. </summary>
|
|
public class Station : IStation
|
|
{
|
|
/// <summary> Constructs a station object.</summary>
|
|
/// <param name="id">Id of the station.</param>
|
|
/// <param name="group">Group (TINK, Konrad) to which station is related.</param>
|
|
/// <param name="position">GPS- position of the station.</param>
|
|
/// <param name="stationName">Name of the station.</param>
|
|
public Station(
|
|
string id,
|
|
IEnumerable<string> group,
|
|
IPosition position,
|
|
string stationName = "",
|
|
Data operatorData = null)
|
|
{
|
|
Id = id;
|
|
Group = group ?? throw new ArgumentException("Can not construct station object. Group of stations must not be null.");
|
|
Position = position;
|
|
StationName = stationName ?? string.Empty;
|
|
OperatorData = operatorData ?? new Data();
|
|
}
|
|
|
|
/// <summary> Holds the unique id of the station.c</summary>
|
|
public string Id { get; }
|
|
|
|
/// <summary> Holds the group to which the station belongs.</summary>
|
|
public IEnumerable<string> Group { get; }
|
|
|
|
/// <summary> Gets the name of the station.</summary>
|
|
public string StationName { get; }
|
|
|
|
/// <summary> Holds the gps- position of the station.</summary>
|
|
public IPosition Position { get; }
|
|
|
|
/// <summary> Holds operator related info.</summary>
|
|
public IData OperatorData { get; }
|
|
}
|
|
}
|