public class DriveStartInfo extends Object implements Parcelable
The drive may have started manually by the application or due to Zendrive auto drive detection.
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DriveStartInfo> |
CREATOR |
String |
driveId
An identifier for this drive that just started.
|
ZendriveInsurancePeriod |
insurancePeriod
The insurance period in which the drive was detected.
|
String |
sessionId
Session id is specified by the enclosing application when it wants to
record a session . |
LocationPoint |
startLocation
The start location of the drive.
|
long |
startTimeMillis
The start timestamp of the drive in milliseconds since epoch.
|
String |
trackingId
Tracking id is specified by the enclosing application when it
wants to
start a drive manually. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DriveStartInfo() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public String driveId
driverId
with which the SDK is initialized.
Once the drive is completed, this id can be used as the "trip_id" to query information about a trip from the Zendrive Analytics API.
public long startTimeMillis
@Nullable public LocationPoint startLocation
If the drive is automatically detected by Zendrive SDK, then this location is approximate and close to the start location but not the exact location where the vehicle started the drive.
This may be null if we could not find a reliable start location for the drive.
@Nullable public String trackingId
start a drive
manually.
This will be null if no tracking id was specified.
@Nullable public String sessionId
record a session
.
This will be null if there is no session is associated with this drive.
@Nullable public ZendriveInsurancePeriod insurancePeriod
public static final Parcelable.Creator<DriveStartInfo> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable