Class Command

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Byte>
com.highmobility.value.Bytes
com.highmobility.autoapi.Command
All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>
Direct Known Subclasses:
Adas.GetStateAvailability, Charging.GetStateAvailability, ChassisSettings.GetChassisSettingsAvailability, Climate.GetStateAvailability, Crash.GetStateAvailability, CruiseControl.GetStateAvailability, DashboardLights.GetDashboardLightsAvailability, Diagnostics.GetStateAvailability, Doors.GetStateAvailability, DriverFatigue.GetStateAvailability, Engine.GetStateAvailability, Fueling.GetGasFlapStateAvailability, GetCommand, HomeCharger.GetStateAvailability, HonkHornFlashLights.GetFlashersStateAvailability, Hood.GetStateAvailability, Ignition.GetStateAvailability, KeyfobPosition.GetKeyfobPositionAvailability, LightConditions.GetLightConditionsAvailability, Lights.GetStateAvailability, Maintenance.GetStateAvailability, Mobile.GetStateAvailability, NaviDestination.GetNaviDestinationAvailability, Offroad.GetStateAvailability, ParkingBrake.GetStateAvailability, ParkingTicket.GetParkingTicketAvailability, PowerTakeoff.GetStateAvailability, Race.GetStateAvailability, RemoteControl.GetControlStateAvailability, RooftopControl.GetRooftopStateAvailability, Seats.GetStateAvailability, SetCommand, Tachograph.GetStateAvailability, TheftAlarm.GetStateAvailability, Trunk.GetStateAvailability, Usage.GetUsageAvailability, ValetMode.GetValetModeAvailability, VehicleLocation.GetVehicleLocationAvailability, VehicleTime.GetVehicleTimeAvailability, WeatherConditions.GetWeatherConditionsAvailability, WiFi.GetStateAvailability, Windows.GetWindowsAvailability, Windscreen.GetStateAvailability

public class Command extends com.highmobility.value.Bytes
Used for commands with properties. Can have 0 properties.
  • Field Details

  • Constructor Details

    • Command

      protected Command()
  • Method Details

    • getAutoApiVersion

      public int getAutoApiVersion()
      Returns:
      The Auto API version of the command.
    • getIdentifier

      public int getIdentifier()
      Returns:
      The identifier of the command.
    • getCommandType

      public int getCommandType()
      Returns:
      The type of the command.
      See Also:
    • getNonce

      @Nullable public com.highmobility.value.Bytes getNonce()
      Returns:
      The nonce for the signature.
    • getSignature

      @Nullable public com.highmobility.value.Bytes getSignature()
      Returns:
      The signature for the signed bytes(the whole command except the signature property).
    • getTimestamp

      @Nullable public Calendar getTimestamp()
      Returns:
      Timestamp of when the data was transmitted from the car.
    • getVin

      @Nullable public String getVin()
      Returns:
      The unique Vehicle Identification Number
    • getBrand

      @Nullable public com.highmobility.autoapi.value.Brand getBrand()
      Returns:
      The vehicle brand
    • getSignedBytes

      public com.highmobility.value.Bytes getSignedBytes()
      Returns:
      The bytes that are signed with the signature
    • getProperties

      public Property[] getProperties()
      Returns:
      All of the properties with raw values
    • getProperty

      public Property getProperty(byte identifier)
    • findUniversalProperties

      protected void findUniversalProperties(Integer identifier, Integer type, Property[] properties)
    • findUniversalProperties

      protected void findUniversalProperties(Integer identifier, Integer type, Property[] properties, boolean createBytes)