public class DriveScore extends Object implements Parcelable
The scores are expressed as a number between 0 to 100 and will be -1 if not available.
High scores indicate safe driving and low scores reflect hazardous or risky driving patterns. Preventive or corrective actions should be prescribed in extreme cases.
More information is available here
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DriveScore> |
CREATOR |
int |
zendriveScore
The Zendrive score for this drive.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DriveScore() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
writeToParcel(Parcel dest,
int flags) |
public int zendriveScore
ZendriveDriveType.NON_DRIVING
drives.
The score should not be surfaced for ZendriveDriveType.NON_DRIVING
drives.
If a user provides feedback that a drive classified as NON_DRIVING
was in fact
ZendriveDriveType.DRIVE
, the provided score can be shown to the user.
public static final Parcelable.Creator<DriveScore> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable