This commit is contained in:
Oliver Hauff 2022-01-22 18:16:10 +01:00
parent e0c75d5b37
commit f38b516d25
57 changed files with 12835 additions and 9925 deletions

View file

@ -9,7 +9,7 @@ namespace TINK.Repository.Response
/// Position of the bike.
/// </summary>
[DataMember]
public GpsInfo gps { get; private set; }
public Position gps { get; private set; }
[DataMember]
/// <summary> Full advertisement name.</summary>

View file

@ -1,23 +0,0 @@
using System.Runtime.Serialization;
namespace TINK.Repository.Response
{
/// <summary>
/// Holds info about a single bike.
/// </summary>
[DataContract]
public class GpsInfo
{
/// <summary>
/// Latitude position of the bike.
/// </summary>
[DataMember]
public string latitude { get; private set; }
/// <summary>
/// Longitude position of the bike.
/// </summary>
[DataMember]
public string longitude { get; private set; }
}
}

View file

@ -0,0 +1,17 @@
using System.Runtime.Serialization;
namespace TINK.Repository.Response
{
/// <summary> Holds information about map area to display.</summary>
[DataContract]
public class MapSpan
{
/// <summary> Center position of the map. </summary>
[DataMember]
public Position center { get; private set; }
/// <summary> Radius to the map area. </summary>
[DataMember]
public string radius { get; private set; }
}
}

View file

@ -0,0 +1,17 @@
using System.Runtime.Serialization;
namespace TINK.Repository.Response
{
/// <summary> Holds position info. </summary>
[DataContract]
public class Position
{
/// <summary> Latitude position (bike, station, map center...). </summary>
[DataMember]
public string latitude { get; private set; }
/// <summary> Longitude position (bike, station, map center...). </summary>
[DataMember]
public string longitude { get; private set; }
}
}

View file

@ -1,5 +1,7 @@

using System.Runtime.Serialization;
namespace TINK.Repository.Response
{
/// <summary>

View file

@ -21,6 +21,10 @@ namespace TINK.Repository.Response
[DataMember]
public string merchant_message { get; private set; }
/// <summary> Initial map display area.</summary>
[DataMember]
public MapSpan init_map { get; private set; }
/// <summary> Textual description of response. </summary>
public new string ToString()
{

View file

@ -54,7 +54,7 @@ namespace TINK.Repository.Response
/// Position of the station.
/// </summary>
[DataMember]
public GpsInfo gps { get; private set; }
public Position gps { get; private set; }
[DataMember]
public OperatorData operator_data { get; private set; }