Class VehicleEngineOil

  • All Implemented Interfaces:
    java.io.Serializable

    public class VehicleEngineOil
    extends ApiData
    POJO for Smartcar /engine/oil endpoint
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getLifeRemaining()
      Returns the oil life remaining
      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

      • VehicleEngineOil

        public VehicleEngineOil()
    • Method Detail

      • getLifeRemaining

        public double getLifeRemaining()
        Returns the oil life remaining
        Returns:
        oil life 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 VehicleFuel