public class ZendriveEvent extends Object implements Parcelable
Events like speeding, phone use can span a time duration and start a particular location and end at another location. Events like hard braking and rapid acceleration are instantaneous. The start and end timestamps and the start and end locations for instantaneous events are the same.
Modifier and Type | Class and Description |
---|---|
static class |
ZendriveEvent.SpeedingInfo
Extra information for a Speeding event.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ZendriveEvent> |
CREATOR |
LocationPoint |
endLocation
The end location of the event.
|
long |
endTimestampMillis
The end timestamp of the event in millisecs since epoch.
|
ZendriveEventType |
eventType
The type of event.
|
ZendriveEventSeverity |
severity
Indicates the severity of this event.
|
ZendriveEvent.SpeedingInfo |
speedingInfo
Extra information for a Speeding event.
|
LocationPoint |
startLocation
The start location of the event.
|
long |
startTimestampMillis
The start timestamp of the event in millisecs since epoch.
|
ZendriveTurnDirection |
turnDirection
Indicates the turn direction of this event.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ZendriveEvent() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
writeToParcel(Parcel dest,
int flags) |
public ZendriveEventType eventType
public long startTimestampMillis
public long endTimestampMillis
@Nullable public LocationPoint startLocation
This may be null if a reliable location was not available when the event started.
@Nullable public LocationPoint endLocation
This may be null if a reliable location was not available when the event ended.
public ZendriveEventSeverity severity
ZendriveEventSeverity.NOT_AVAILABLE
@Nullable public ZendriveTurnDirection turnDirection
ZendriveEventType.HARD_TURN
.
This will be null for other event types.@Nullable public ZendriveEvent.SpeedingInfo speedingInfo
public static final Parcelable.Creator<ZendriveEvent> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable