com.smartcar.sdk.data.VehicleBattery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for the Smartcar platform
package com.smartcar.sdk.data;
/** POJO for Smartcar /battery endpoint */
public class VehicleBattery extends ApiData {
private double range;
private double percentRemaining;
/**
* Returns the battery range
*
* @return battery range
*/
public double getRange() {
return this.range;
}
/**
* Returns the battery percent remaining
*
* @return battery percent remaining
*/
public double getPercentRemaining() {
return this.percentRemaining;
}
/** @return a stringified representation of VehicleBattery */
@Override
public String toString() {
return this.getClass().getName()
+ "{"
+ "range="
+ range
+ "percentRemaining="
+ percentRemaining
+ '}';
}
}