public enum ZendriveUserMode extends Enum<ZendriveUserMode> implements ZendriveValueEnum
Drive
, whether the user was a driver or a passengerEnum Constant and Description |
---|
DRIVER
Indicates that the user was in the driver seat.
|
PASSENGER
Indicates that the user was in the passenger seat.
|
UNAVAILABLE
Indicates that the Zendrive Sdk was unable to determine user mode.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Provides a value for each enum value that is stable across releases.
|
static ZendriveUserMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveUserMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveUserMode DRIVER
public static final ZendriveUserMode PASSENGER
public static final ZendriveUserMode UNAVAILABLE
public static ZendriveUserMode[] values()
for (ZendriveUserMode c : ZendriveUserMode.values()) System.out.println(c);
public static ZendriveUserMode 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 int getValue()
ZendriveValueEnum
The value is consistent with the enum values returned by the iOS SDK.
getValue
in interface ZendriveValueEnum