public abstract class RideStatusLog extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
RideStatusLog.Record |
static class |
RideStatusLog.Status
Ride Status.
|
static class |
RideStatusLog.StatusReasonCode
The reason for the returned status
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RideStatusLog() |
Modifier and Type | Method and Description |
---|---|
static RideStatusLog |
create(long newLastUpdateTime,
long newCreateTime,
Long newClosedTime,
boolean newRideLocationAvailable,
RideStatusLog.Status newCurrentStatus,
RideStatusLog.StatusReasonCode currentStatusReasonCode,
List<RideStatusLog.Record> newPreviousStatuses)
Creates a new Ride Status Log.
|
abstract Long |
getClosedTime()
The time the ride was closed, in milliseconds since Epoch.
|
abstract long |
getCreateTime()
The time the ride was created, in milliseconds since Epoch.
|
abstract RideStatusLog.Status |
getCurrentStatus()
The current ride status.
|
abstract RideStatusLog.StatusReasonCode |
getCurrentStatusReasonCode()
The current ride status reason.
|
abstract long |
getLastUpdateTime()
Timestamp of the last update, in milliseconds since Epoch.
|
abstract List<RideStatusLog.Record> |
getPreviousStatuses()
A list of the previous statuses, ordered by timestamp in descending order.
|
abstract boolean |
isRideLocationAvailable()
Whether there are new updates on the ride location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract long getLastUpdateTime()
public abstract long getCreateTime()
public abstract Long getClosedTime()
null
for active rides.public abstract boolean isRideLocationAvailable()
DemandClient.registerToRideUpdates(com.here.mobility.sdk.demand.DemandClient.RideUpdateListener)
.public abstract RideStatusLog.Status getCurrentStatus()
public abstract RideStatusLog.StatusReasonCode getCurrentStatusReasonCode()
public abstract List<RideStatusLog.Record> getPreviousStatuses()
public static RideStatusLog create(long newLastUpdateTime, long newCreateTime, Long newClosedTime, boolean newRideLocationAvailable, RideStatusLog.Status newCurrentStatus, RideStatusLog.StatusReasonCode currentStatusReasonCode, List<RideStatusLog.Record> newPreviousStatuses)