mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-14 11:01:06 +01:00
26 lines
657 B
Java
26 lines
657 B
Java
|
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
|
||
|
|
||
|
|
||
|
import java.util.GregorianCalendar;
|
||
|
|
||
|
public class GBDeviceEventBatteryInfo extends GBDeviceEvent {
|
||
|
public GregorianCalendar lastChargeTime;
|
||
|
public BatteryState state = BatteryState.UNKNOWN;
|
||
|
//TODO: I think the string should be deprecated in favor of the Enum above
|
||
|
public String status;
|
||
|
public short level = 50;
|
||
|
public int numCharges = -1;
|
||
|
|
||
|
public GBDeviceEventBatteryInfo() {
|
||
|
eventClass = EventClass.BATTERY_INFO;
|
||
|
}
|
||
|
|
||
|
public enum BatteryState {
|
||
|
UNKNOWN,
|
||
|
CHARGE_FULL,
|
||
|
CHARGE_MEDIUM,
|
||
|
CHARGE_LOW,
|
||
|
CHARGING,
|
||
|
}
|
||
|
}
|