public abstract class DriverDetails extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DriverDetails() |
Modifier and Type | Method and Description |
---|---|
static DriverDetails |
create(String name,
String phoneNumber,
String photoUrl,
String drivingLicenseID)
Returns a new
DriverDetails instance. |
abstract String |
getDrivingLicenseId()
The driver's driving license number, if available.
|
abstract String |
getName()
The full name of the driver.
|
abstract String |
getPhoneNumber()
The phone number of the driver.
|
abstract String |
getPhotoUrl()
URL pointing to photo of the driver, if one exists.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract String getName()
public abstract String getPhoneNumber()
public abstract String getPhotoUrl()
null
if it doesn't exist.public abstract String getDrivingLicenseId()
public static DriverDetails create(String name, String phoneNumber, String photoUrl, String drivingLicenseID)
DriverDetails
instance.