Make power status properties abstract

This commit is contained in:
Salman Ahmed 2021-04-11 09:11:28 +03:00 committed by Christine Chen
parent 3d85dc11c6
commit 07ee1b4d0b
1 changed files with 3 additions and 3 deletions

View File

@ -12,14 +12,14 @@ public abstract class PowerStatus
/// <summary>
/// The maximum battery level considered as low, from 0 to 1.
/// </summary>
public virtual double BatteryCutoff { get; } = 0;
public abstract double BatteryCutoff { get; }
/// <summary>
/// The charge level of the battery, from 0 to 1.
/// </summary>
public virtual double ChargeLevel { get; } = 0;
public abstract double ChargeLevel { get; }
public virtual bool IsCharging { get; } = false;
public abstract bool IsCharging { get; }
/// <summary>
/// Whether the battery is currently low in charge.