jimu-decompiled/sources/com/ubtrobot/jimu/robotapi/BatteryInfo.java
2025-05-13 19:24:51 +02:00

39 lines
806 B
Java

package com.ubtrobot.jimu.robotapi;
/* loaded from: classes2.dex */
public class BatteryInfo {
private float a;
private float b;
private boolean c;
private boolean d;
public BatteryInfo(float f, float f2, boolean z, boolean z2) {
this.c = false;
this.d = false;
this.a = f;
this.b = f2 <= 100.0f ? f2 : 100.0f;
this.d = z;
this.c = z2;
}
public float a() {
return this.b;
}
public float b() {
return this.a;
}
public boolean c() {
return this.c;
}
public boolean d() {
return this.d;
}
public String toString() {
return "Battery voltage:" + this.a + " percentage:" + this.b + "% isPluginCharger:" + this.d + " isChargingCompleted:" + this.c;
}
}