2022-08-30 15:42:25 +02:00
|
|
|
|
|
|
|
|
|
namespace TINK.Model.Bikes.BikeInfoNS.DriveNS.BatteryNS
|
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public interface IBattery
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the current charging level of the battery in percent, double.NaN if unknown.
|
|
|
|
|
/// </summary>
|
|
|
|
|
double CurrentChargePercent { get; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the current chargeing level of the battery in bars. Must not be arger than MaxChargeBars, null if unkonwn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
int? CurrentChargeBars { get; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the maximum chargeing level of the battery in bars, null if unkonwn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
int? MaxChargeBars { get; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds whether backend is aware of battery charging level.
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool? IsBackendAccessible { get; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds whether to display battery level or not.
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool? IsHidden { get; }
|
|
|
|
|
}
|
2022-08-30 15:42:25 +02:00
|
|
|
|
}
|