mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 23:26:26 +01:00
36 lines
982 B
C#
36 lines
982 B
C#
|
using System.ComponentModel;
|
||
|
|
||
|
namespace TINK.Model.Bikes.BikeInfoNS.DriveNS.BatteryNS
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Manages the state of a chargeable battery.
|
||
|
/// </summary>
|
||
|
public interface IBatteryMutable : INotifyPropertyChanged
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Gets the current charging level of the battery in percent, double.NaN if unknown.
|
||
|
/// </summary>
|
||
|
double CurrentChargePercent { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets the current charging level of the battery in bars. Must not be larger than MaxChargeBars, null if unknown.
|
||
|
/// </summary>
|
||
|
int? CurrentChargeBars { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets the maximum charging level of the battery in bars, null if unknown.
|
||
|
/// </summary>
|
||
|
int? MaxChargeBars { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets whether backend is aware of battery charging level.
|
||
|
/// </summary>
|
||
|
bool? IsBackendAccessible { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets whether to display battery level or not.
|
||
|
/// </summary>
|
||
|
bool? IsHidden { get; }
|
||
|
}
|
||
|
}
|