mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
21 lines
561 B
Java
21 lines
561 B
Java
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
|
|
|
|
|
|
import java.util.GregorianCalendar;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.BatteryState;
|
|
|
|
public class GBDeviceEventBatteryInfo extends GBDeviceEvent {
|
|
public GregorianCalendar lastChargeTime = null;
|
|
public BatteryState state = BatteryState.UNKNOWN;
|
|
public short level = 50;
|
|
public int numCharges = -1;
|
|
|
|
public boolean extendedInfoAvailable() {
|
|
if (numCharges != -1 && lastChargeTime != null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|