using System;
namespace TINK.Model.Bikes.BikeInfoNS
{
///
/// Holds tariff info for a single bike.
///
#if USCSHARP9
public record TariffDescription
{
///
/// Name of the tariff.
///
public string Name { get; init; }
///
/// Number of the tariff.
///
public int? Number { get; init; }
///
/// Costs per hour in euro.
///
public double FeeEuroPerHour { get; init; }
///
/// Costs of the abo per month.
///
public double AboEuroPerMonth { get; init; }
///
/// Costs per hour in euro.
///
public TimeSpan FreeTimePerSession { get; init; }
///
/// Max. costs per day in euro.
///
public double MaxFeeEuroPerDay { get; init; }
}
#else
public class TariffDescription
{
///
/// Name of the tariff.
///
public string Name { get; set; }
///
/// Number of the tariff.
///
public int? Number { get; set; }
///
/// Costs per hour in euro.
///
public double FeeEuroPerHour { get; set; }
///
/// Costs of the abo per month.
///
public double AboEuroPerMonth { get; set; }
///
/// Costs per hour in euro.
///
public TimeSpan FreeTimePerSession { get; set; }
///
/// Max. costs per day in euro.
///
public double MaxFeeEuroPerDay { get; set; }
/// Info about operator agb as HTML (i.g. text and hyperlink).
public string OperatorAgb { get; set; }
/// Text which informs users about GPS tracking if tracking is on.
public string TrackingInfo { get; set; }
}
#endif
}