sharee.bike-App/TINKLib/Model/Bikes/BikeInfoNS/DriveNS/BatteryNS/IBattery.cs

32 lines
835 B
C#
Raw Normal View History

2023-04-19 12:14:14 +02:00
2022-08-30 15:42:25 +02:00
namespace TINK.Model.Bikes.BikeInfoNS.DriveNS.BatteryNS
{
2023-08-31 12:31:38 +02:00
public interface IBattery
2022-09-06 16:08:19 +02:00
{
/// <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>
2023-04-19 12:14:14 +02:00
/// Holds the current charging level of the battery in bars. Must not be larger than MaxChargeBars, null if unknown.
2022-09-06 16:08:19 +02:00
/// </summary>
int? CurrentChargeBars { get; }
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
/// <summary>
2023-04-19 12:14:14 +02:00
/// Holds the maximum charging level of the battery in bars, null if unknown.
2022-09-06 16:08:19 +02:00
/// </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
}