public static enum ZendriveFeedback.DriveCategory extends java.lang.Enum<ZendriveFeedback.DriveCategory>
Enum Constant and Description |
---|
BICYCLE
Indicates that the trip was taken on a bicycle
|
BUS
Indicates that the trip was taken in a bus
|
CAR
Indicates that the trip was taken in a car
|
CAR_DRIVER
Indicates that the trip was taken in a car and the user was the driver
|
CAR_PASSENGER
Indicates that the trip was taken in a car and the user was a passenger
|
FOOT
Indicates that the trip was taken on foot (either walking or running)
|
INVALID
Indicates that there wasn't enough movement and this shouldn't have been detected as a
trip
|
MOTORCYCLE
Indicates that the trip was taken on a motorcycle
|
NOT_CAR
Indicates that the trip was not taken in a car.
|
OTHER
Fallback when the above options do not cover the use case.
|
TRAIN
Indicates that the trip was taken in a train or a subway
|
TRANSIT
Indicates that the trip was taken using some form of public transit
(bus/train/subway/tram etc)
|
Modifier and Type | Method and Description |
---|---|
static ZendriveFeedback.DriveCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveFeedback.DriveCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveFeedback.DriveCategory CAR
public static final ZendriveFeedback.DriveCategory CAR_DRIVER
public static final ZendriveFeedback.DriveCategory CAR_PASSENGER
public static final ZendriveFeedback.DriveCategory TRAIN
public static final ZendriveFeedback.DriveCategory BUS
public static final ZendriveFeedback.DriveCategory BICYCLE
public static final ZendriveFeedback.DriveCategory FOOT
public static final ZendriveFeedback.DriveCategory MOTORCYCLE
public static final ZendriveFeedback.DriveCategory TRANSIT
public static final ZendriveFeedback.DriveCategory INVALID
public static final ZendriveFeedback.DriveCategory NOT_CAR
CAR
.public static final ZendriveFeedback.DriveCategory OTHER
public static ZendriveFeedback.DriveCategory[] values()
for (ZendriveFeedback.DriveCategory c : ZendriveFeedback.DriveCategory.values()) System.out.println(c);
public static ZendriveFeedback.DriveCategory 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 null