public abstract class RouteResponse extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RouteResponse() |
Modifier and Type | Method and Description |
---|---|
static RouteResponse |
create(List<Route> routes,
String instructionsLanguageCode)
Creates a new
RouteResponse . |
abstract String |
getInstructionsLanguageCode()
Returns language code of the text instructions.
|
Route |
getRoute()
Returns the main route, if one exists.
|
abstract List<Route> |
getRoutes()
Returns the list of routes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public static RouteResponse create(List<Route> routes, String instructionsLanguageCode)
RouteResponse
.public Route getRoute()
public abstract List<Route> getRoutes()
public abstract String getInstructionsLanguageCode()