public enum ZendriveDriveType extends java.lang.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(java.lang.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
DriveInfo other than
DriveInfo.driveId, DriveInfo.startTimeMillis and
DriveInfo.endTimeMillis will have default values.public static final ZendriveDriveType NON_DRIVING
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
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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()