public abstract class Ride extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Ride() |
Modifier and Type | Method and Description |
---|---|
static Ride |
create(String userId,
String rideId,
RideWaypoints route,
Long requestedPickupTime,
PriceEstimate bookingEstimatedPrice,
BookingConstraints constraints,
RideStatusLog statusLog,
Supplier supplier,
PassengerDetails passenger,
String passengerNote,
DriverDetails driver,
Vehicle vehicle,
CancellationPolicy cancellationPolicy,
CancellationInfo cancellationInfo,
Price price,
LatLng confirmedPickupPoint,
PaymentFlow paymentFlow)
Create a new Ride object.
|
abstract PriceEstimate |
getBookingEstimatedPrice()
The price estimate, as was determined by booking time (will not be updated during the ride).
|
abstract CancellationInfo |
getCancellationInfo()
If the ride was cancelled, contains info about the cancellation.
|
abstract CancellationPolicy |
getCancellationPolicy()
The cancellation policy.
|
abstract LatLng |
getConfirmedPickupPoint()
Deprecated.
This field is deprecated, please use
getRoute().getPickup().getLocation() instead |
abstract BookingConstraints |
getConstraints()
The constraints of the booking (e.g.
|
abstract DriverDetails |
getDriver()
The details of the driver.
|
abstract PassengerDetails |
getPassenger()
The details of the passenger that is the contact for this ride.
|
abstract String |
getPassengerNote()
An optional custom note from the passenger to the supplier.
|
abstract PaymentFlow |
getPaymentFlow()
The payment flow for a specific ride.
|
abstract Long |
getPrebookPickupTime()
The requested pickup time in milliseconds since Epoch.
|
abstract Price |
getPrice()
Optional.
|
abstract String |
getRideId()
Ride ID, to be sent to the server.
|
abstract RideWaypoints |
getRoute()
The route of the ride.
|
abstract RideStatusLog |
getStatusLog()
The status log of the ride (current status and previous statuses).
|
abstract Supplier |
getSupplier()
The ride supplier.
|
abstract String |
getUserId()
ID of the user who ordered the ride.
|
abstract Vehicle |
getVehicle()
The vehicle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract String getUserId()
public abstract String getRideId()
public abstract RideWaypoints getRoute()
public abstract Long getPrebookPickupTime()
RideOffersRequest.Builder.setPrebookPickupTime(Long)
public abstract PriceEstimate getBookingEstimatedPrice()
public abstract BookingConstraints getConstraints()
public abstract RideStatusLog getStatusLog()
public abstract Supplier getSupplier()
public abstract PassengerDetails getPassenger()
public abstract String getPassengerNote()
public abstract DriverDetails getDriver()
null
if no driver was assigned.public abstract Vehicle getVehicle()
null
if no vehicle was assigned, or no vehicle info was
supplied.public abstract CancellationPolicy getCancellationPolicy()
public abstract CancellationInfo getCancellationInfo()
null
.public abstract Price getPrice()
@Deprecated public abstract LatLng getConfirmedPickupPoint()
getRoute().getPickup().getLocation()
insteadRide.getConfirmedPickupPoint()
rather than the user-defined address,
because the confirmed pickup point is where the driver will arrive.public abstract PaymentFlow getPaymentFlow()
public static Ride create(String userId, String rideId, RideWaypoints route, Long requestedPickupTime, PriceEstimate bookingEstimatedPrice, BookingConstraints constraints, RideStatusLog statusLog, Supplier supplier, PassengerDetails passenger, String passengerNote, DriverDetails driver, Vehicle vehicle, CancellationPolicy cancellationPolicy, CancellationInfo cancellationInfo, Price price, LatLng confirmedPickupPoint, PaymentFlow paymentFlow)