Class VehicleBattery

  • All Implemented Interfaces:
    java.io.Serializable

    public class VehicleBattery
    extends ApiData
    POJO for Smartcar /battery endpoint
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      VehicleBattery()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getPercentRemaining()
      Returns the battery percent remaining
      double getRange()
      Returns the battery range
      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

      • VehicleBattery

        public VehicleBattery()
    • Method Detail

      • getRange

        public double getRange()
        Returns the battery range
        Returns:
        battery range
      • getPercentRemaining

        public double getPercentRemaining()
        Returns the battery percent remaining
        Returns:
        battery percent remaining
      • 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 VehicleBattery