2021-05-13 20:03:07 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
2021-06-26 20:57:55 +02:00
|
|
|
|
namespace TINK.Repository.Response
|
2021-05-13 20:03:07 +02:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the information about all stations and is used for deserialization of copri answer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class StationsAvailableResponse : ResponseBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds info about a single station.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class StationInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds info about opertor data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class OperatorData
|
|
|
|
|
{
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string operator_name { get; private set; }
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string operator_phone { get; private set; }
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string operator_hours { get; private set; }
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string operator_email { get; private set; }
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string operator_color { get; private set; }
|
|
|
|
|
}
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unique id of the station.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string station { get; private set; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string[] station_group { get; private set; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public string description { get; private set; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Position of the station.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember]
|
|
|
|
|
public Position gps { get; private set; }
|
2021-07-20 23:06:09 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[DataMember]
|
|
|
|
|
public OperatorData operator_data { get; private set; }
|
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Dictionary of bikes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember]
|
|
|
|
|
public Dictionary<string, StationInfo> stations { get; private set; }
|
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
|
}
|