public enum ZendriveVehicleTaggingOperationResult extends Enum<ZendriveVehicleTaggingOperationResult>
Enum Constant and Description |
---|
ASSOCIATED_VEHICLE_CONFLICT
The
associateVehicle operation failed because the
vehicleId or the bluetoothAddress of the ZendriveVehicleInfo
provided conflicts with the information of a currently associated vehicle. |
ASSOCIATED_VEHICLES_LIMIT_EXCEEDED
The
associateVehicle operation failed
because it tried to associate more than two vehicles. |
INVALID_VEHICLE_ID
The
vehicleId provided to
dissociateVehicle call is either invalid or
longer than 64 characters. |
INVALID_ZENDRIVE_VEHICLE_INFO
The
ZendriveVehicleInfo provided to
associateVehicle call is invalid. |
SDK_NOT_SETUP
The operation failed because the SDK is not setup.
|
SUCCESS
The operation was successful.
|
VEHICLE_NOT_ASSOCIATED
The
dissociateVehicle operation failed
because it tried to dissociate a vehicle which is not associated. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Get the message for the vehicle tagging operation.
|
static ZendriveVehicleTaggingOperationResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveVehicleTaggingOperationResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveVehicleTaggingOperationResult SUCCESS
public static final ZendriveVehicleTaggingOperationResult SDK_NOT_SETUP
public static final ZendriveVehicleTaggingOperationResult INVALID_ZENDRIVE_VEHICLE_INFO
ZendriveVehicleInfo
provided to
associateVehicle
call is invalid.
ZendriveVehicleInfo
is invalid if:
Zendrive.isValidInputParameter(java.lang.String)
)
or longer than 64 characters.BluetoothAdapter.checkBluetoothAddress(String)
).public static final ZendriveVehicleTaggingOperationResult ASSOCIATED_VEHICLE_CONFLICT
associateVehicle
operation failed because the
vehicleId
or the bluetoothAddress
of the ZendriveVehicleInfo
provided conflicts with the information of a currently associated vehicle.public static final ZendriveVehicleTaggingOperationResult ASSOCIATED_VEHICLES_LIMIT_EXCEEDED
associateVehicle
operation failed
because it tried to associate more than two vehicles.public static final ZendriveVehicleTaggingOperationResult INVALID_VEHICLE_ID
vehicleId
provided to
dissociateVehicle
call is either invalid or
longer than 64 characters.public static final ZendriveVehicleTaggingOperationResult VEHICLE_NOT_ASSOCIATED
dissociateVehicle
operation failed
because it tried to dissociate a vehicle which is not associated.public static ZendriveVehicleTaggingOperationResult[] values()
for (ZendriveVehicleTaggingOperationResult c : ZendriveVehicleTaggingOperationResult.values()) System.out.println(c);
public static ZendriveVehicleTaggingOperationResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMessage()