Package com.highmobility.autoapi
Class Command
- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final byteprotected Command.PropertyIteratorstatic final bytestatic final bytestatic final byteFields inherited from class com.highmobility.value.Bytes
bytesFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfindUniversalProperties(Integer identifier, Integer type, Property[] properties) protected voidfindUniversalProperties(Integer identifier, Integer type, Property[] properties, boolean createBytes) intcom.highmobility.autoapi.value.BrandgetBrand()intintcom.highmobility.value.BytesgetNonce()Property[]getProperty(byte identifier) com.highmobility.value.Bytescom.highmobility.value.BytesgetVin()Methods inherited from class com.highmobility.value.Bytes
concat, concat, equals, get, getBase64, getBase64UrlSafe, getByteArray, getHex, getLength, getRange, set, set, set, size, toStringMethods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
NONCE_IDENTIFIER
public static final byte NONCE_IDENTIFIER- See Also:
-
SIGNATURE_IDENTIFIER
public static final byte SIGNATURE_IDENTIFIER- See Also:
-
TIMESTAMP_IDENTIFIER
public static final byte TIMESTAMP_IDENTIFIER- See Also:
-
VIN_IDENTIFIER
public static final byte VIN_IDENTIFIER- See Also:
-
BRAND_IDENTIFIER
public static final byte BRAND_IDENTIFIER- See Also:
-
universalPropertyIds
-
propertyIterator
-
-
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
- Returns:
- Timestamp of when the data was transmitted from the car.
-
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
- Returns:
- All of the properties with raw values
-
getProperty
-
findUniversalProperties
-
findUniversalProperties
-