mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 07:36:31 +01:00
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace TINK.Model.Repository.Response
|
|
{
|
|
/// <summary>
|
|
/// Holds the information about all stations and is used for deserialization of copri answer.
|
|
/// </summary>
|
|
[DataContract]
|
|
public class StationsAllResponse : ResponseBase
|
|
{
|
|
/// <summary>
|
|
/// Holds info about a single station.
|
|
/// </summary>
|
|
[DataContract]
|
|
public class StationInfo
|
|
{
|
|
/// <summary>
|
|
/// Unique id of the station.
|
|
/// </summary>
|
|
[DataMember]
|
|
public int station { get; private set; }
|
|
|
|
[DataMember]
|
|
public string station_group { get; private set; }
|
|
|
|
[DataMember]
|
|
public string description { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Position of the station.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string gps { get; private set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Dictionary of bikes.
|
|
/// </summary>
|
|
[DataMember]
|
|
public Dictionary<int, StationInfo> stations { get; private set; }
|
|
}
|
|
}
|