Package com.smartcar.sdk.data
Class VehicleCharge
- java.lang.Object
-
- com.smartcar.sdk.data.ApiData
-
- com.smartcar.sdk.data.VehicleCharge
-
- All Implemented Interfaces:
java.io.Serializable
public class VehicleCharge extends ApiData
POJO for Smartcar /charge endpoint- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VehicleCharge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getIsPluggedIn()
Returns whether charging cable is plugged injava.lang.String
getState()
Returns the charge statevoid
setState(java.lang.String state)
Stores the charge statejava.lang.String
toString()
Returns the stored data string.
-
-
-
Method Detail
-
getState
public java.lang.String getState()
Returns the charge state- Returns:
- charge state
-
getIsPluggedIn
public boolean getIsPluggedIn()
Returns whether charging cable is plugged in- Returns:
- whether charging cable is plugged in
-
setState
public void setState(java.lang.String state)
Stores the charge state- Parameters:
state
- stores the charge state
-
-