public enum ZendriveDriveType extends Enum<ZendriveDriveType>
Enum Constant and Description |
---|
DRIVE
This trip was taken in a car.
|
INVALID
Sometimes, the SDK detects that a drive is invalid after it has been started.
|
NON_DRIVING
This drive was not taken on a car.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Provides a value for each enum value that is stable across releases.
|
static ZendriveDriveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveDriveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveDriveType INVALID
In this case, the values for all properties in DriveInfo
other than
DriveInfo.driveId
, DriveInfo.startTimeMillis
and
DriveInfo.endTimeMillis
will have default values.
public static final ZendriveDriveType NON_DRIVING
The DriveInfo
will have DriveInfo.waypoints
, DriveInfo.maxSpeed
and DriveInfo.averageSpeed
set.
DriveInfo.events
and DriveInfo.score
will be default values.
public static final ZendriveDriveType DRIVE
If the SDK determined the user to be a driver or a passenger, the value will be available in
DriveInfo.userMode
.
All values in DriveInfo
will be set.
public static ZendriveDriveType[] values()
for (ZendriveDriveType c : ZendriveDriveType.values()) System.out.println(c);
public static ZendriveDriveType 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()
The value is consistent with the enum values returned by the iOS SDK.