public abstract class DirectionsRefreshResponse extends DirectionsRefreshJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectionsRefreshResponse.Builder
This builder can be used to set the values describing the
DirectionsRefreshResponse. |
| Constructor and Description |
|---|
DirectionsRefreshResponse() |
| Modifier and Type | Method and Description |
|---|---|
static DirectionsRefreshResponse.Builder |
builder()
Create a new instance of this class by using the
DirectionsRefreshResponse.Builder class. |
abstract java.lang.String |
code()
String indicating the state of the response.
|
static DirectionsRefreshResponse |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
message()
Optionally shows up in a response if an error or something unexpected occurred.
|
abstract DirectionsRouteRefresh |
route()
Barebones
DirectionsRouteRefresh which only contains a list of
RouteLegRefreshs, which only contain lists of the
refreshed annotations. |
static com.google.gson.TypeAdapter<DirectionsRefreshResponse> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJson@NonNull public abstract java.lang.String code()
@Nullable public abstract java.lang.String message()
@Nullable public abstract DirectionsRouteRefresh route()
DirectionsRouteRefresh which only contains a list of
RouteLegRefreshs, which only contain lists of the
refreshed annotations.@NonNull public static DirectionsRefreshResponse.Builder builder()
DirectionsRefreshResponse.Builder class.DirectionsRefreshResponse.Builder for creating a new instancepublic static com.google.gson.TypeAdapter<DirectionsRefreshResponse> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static DirectionsRefreshResponse fromJson(java.lang.String json)
json - a formatted valid JSON string defining a Directions Refresh response