public class BatteryReading extends SensorReading
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<BatteryReading> |
CREATOR |
errorCode, isCollect, isShare, timestamp, type, uuid, volatility| Constructor and Description |
|---|
BatteryReading(boolean isCollect) |
BatteryReading(long timestamp,
float batteryPercent,
boolean isCharging,
boolean isUsbCharge,
boolean isAcCharge,
float temp,
int volt,
byte health,
java.lang.String tech) |
BatteryReading(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
byte |
getCharging_type() |
byte |
getHealth() |
java.lang.String |
getHealthString() |
float |
getPercent() |
java.lang.String |
getTechnology() |
float |
getTemp() |
int |
getVolt() |
boolean |
isCharging() |
void |
readFromParcel(android.os.Parcel in) |
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<BatteryReading> CREATOR
public BatteryReading(long timestamp,
float batteryPercent,
boolean isCharging,
boolean isUsbCharge,
boolean isAcCharge,
float temp,
int volt,
byte health,
java.lang.String tech)
public BatteryReading(boolean isCollect)
public BatteryReading(android.os.Parcel in)
in - public void readFromParcel(android.os.Parcel in)
readFromParcel in class SensorReadingpublic int describeContents()
public void writeToParcel(android.os.Parcel out,
int flags)
public boolean isCharging()
public float getPercent()
public byte getCharging_type()
public float getTemp()
public int getVolt()
public byte getHealth()
public java.lang.String getTechnology()
public java.lang.String getHealthString()