sharee.bike-App/TINKLib/Repository/Response/BikeType.cs
2023-04-19 12:14:14 +02:00

86 lines
1.9 KiB
C#

using System.Runtime.Serialization;
namespace TINK.Repository.Response
{
/// <summary>
/// Holds info about a single bike.
/// </summary>
[DataContract]
public class BikeType
{
/// <summary>
/// Holds the engine.
/// </summary>
[DataContract]
public class Engine
{
/// <summary>
/// Manufacturer: ...
/// </summary>
[DataMember]
public string manufacturer { get; private set; }
}
/// <summary>
/// Holds the engine.
/// </summary>
[DataContract]
public class Battery
{
/// <summary>
/// Holds the current charging level in bars.
/// </summary>
[DataMember]
public string charge_current_bars { get; private set; }
/// <summary>
/// Holds the current charging level of the battery in percent.
/// </summary>
[DataMember]
public string charge_current_percent { get; private set; }
/// <summary>
/// Holds the maximum charging level of the battery in bars.
/// </summary>
[DataMember]
public string charge_max_bars { get; private set; }
/// <summary>
/// Holds whether backend is aware of battery charging level.
/// </summary>
[DataMember]
public string backend_accessible { get; private set; }
/// <summary>
/// Holds whether to display battery level or not.
/// </summary>
[DataMember]
public string hidden { get; private set; }
}
/// <summary>
/// Category of the bike. Possible entries: "city", "cargo", ...
/// </summary>
[DataMember]
public string category { get; private set; }
/// <summary>
/// Count of wheels. There are trikes (3 wheels) and two wheeled bikes.
/// </summary>
[DataMember]
public string wheels { get; private set; }
/// <summary>
/// Holds engine information. .
/// </summary>
[DataMember]
public Engine engine { get; private set; }
/// <summary>
/// Holds battery information .
/// </summary>
[DataMember]
public Battery battery { get; private set; }
}
}