Class VehicleInformationContract.VehicleInformation

  • All Implemented Interfaces:
    android.os.Parcelable
    Enclosing class:
    VehicleInformationContract

    public static class VehicleInformationContract.VehicleInformation
    extends java.lang.Object
    implements android.os.Parcelable
    Object containing the vehicle information.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      java.lang.String getVehicleId()
      A string to identify the vehicle id.
      java.lang.String getVin()
      A string to identify the vehicle vin number.
      boolean isInGear()
      Is the vehicle currently in gear? True = vehicle is in gear False = vehicle is in park or neutral
      void setInGear​(boolean status)
      Indicate whether the vehicle is in gear.
      void setVehicleId​(java.lang.String id)
      A string to identify the vehicle id.
      void setVin​(java.lang.String vin)
      A string to identify the vehicle vin number.
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

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

      • VehicleInformation

        public VehicleInformation()
      • VehicleInformation

        protected VehicleInformation​(android.os.Parcel in)
    • Method Detail

      • setVin

        public void setVin​(java.lang.String vin)
        A string to identify the vehicle vin number.
        Parameters:
        vin - The vehicle information number (VIN) as a string, e.g. "1M2AX07Y79M006004"
      • getVin

        public java.lang.String getVin()
        A string to identify the vehicle vin number.
        Returns:
        vin The vehicle information number (VIN) as a string, e.g. "1M2AX07Y79M006004"
      • setVehicleId

        public void setVehicleId​(java.lang.String id)
        A string to identify the vehicle id.
        Parameters:
        id - The vehicle identifier.
      • getVehicleId

        public java.lang.String getVehicleId()
        A string to identify the vehicle id.
        Returns:
        vehicleId The vehicle id.
      • isInGear

        public boolean isInGear()
        Is the vehicle currently in gear? True = vehicle is in gear False = vehicle is in park or neutral
        Returns:
        Boolean indicating whether the vehicle is currently in gear.
      • setInGear

        public void setInGear​(boolean status)
        Indicate whether the vehicle is in gear. If false, the vehicle is not and does not intend on moving.
        Parameters:
        status - Boolean indicating if the vehicle is currently in gear.
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable