2021-05-13 20:03:07 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-08-30 15:42:25 +02:00
|
|
|
|
namespace TINK.Model.Bikes.BikeInfoNS
|
2021-05-13 20:03:07 +02:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds tariff info for a single bike.
|
|
|
|
|
/// </summary>
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#if USCSHARP9
|
2021-05-13 20:03:07 +02:00
|
|
|
|
public record TariffDescription
|
2021-06-26 20:57:55 +02:00
|
|
|
|
{
|
2021-05-13 20:03:07 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the tariff.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Number of the tariff.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? Number { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs per hour in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double FeeEuroPerHour { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs of the abo per month.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double AboEuroPerMonth { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs per hour in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan FreeTimePerSession { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Max. costs per day in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double MaxFeeEuroPerDay { get; init; }
|
|
|
|
|
}
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#else
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class TariffDescription
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the tariff.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Number of the tariff.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? Number { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs per hour in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double FeeEuroPerHour { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs of the abo per month.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double AboEuroPerMonth { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Costs per hour in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan FreeTimePerSession { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Max. costs per day in euro.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double MaxFeeEuroPerDay { get; set; }
|
2021-11-07 21:28:13 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary> Info about operator agb as HTML (i.g. text and hyperlink). </summary>
|
|
|
|
|
public string OperatorAgb { get; set; }
|
2021-11-07 21:28:13 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary> Text which informs users about GPS tracking if tracking is on. </summary>
|
|
|
|
|
public string TrackingInfo { get; set; }
|
2021-11-07 21:28:13 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#endif
|
2021-05-13 20:03:07 +02:00
|
|
|
|
}
|