Class 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 in
      java.lang.String getState()
      Returns the charge state
      void setState​(java.lang.String state)
      Stores the charge state
      java.lang.String toString()
      Returns the stored data string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VehicleCharge

        public VehicleCharge()
    • 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
      • toString

        public java.lang.String toString()
        Description copied from class: ApiData
        Returns the stored data string.
        Overrides:
        toString in class ApiData
        Returns:
        a stringified representation of VehicleCharge