public class BatchRoutingResponse
extends java.lang.Object
implements com.tomtom.online.sdk.common.service.ServiceResponse, com.tomtom.online.sdk.common.service.Batchable
Modifier and Type | Field and Description |
---|---|
protected com.tomtom.online.sdk.common.service.ResponseStatus |
error |
protected BatchableRoutingResponse[] |
responses |
protected int |
successfulRequests |
protected int |
totalRequests |
Constructor and Description |
---|
BatchRoutingResponse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage() |
java.util.List<RouteResult> |
getRouteRoutingResponses()
Get a list of Route results of a Batch Routing query.
|
ImmutableList<BatchableRoutingResponse> |
getRoutingResponses()
Get a list of results of a Batch Routing query.
|
boolean |
hasError() |
protected com.tomtom.online.sdk.common.service.ResponseStatus error
protected int totalRequests
protected int successfulRequests
protected BatchableRoutingResponse[] responses
public boolean hasError()
hasError
in interface com.tomtom.online.sdk.common.service.ServiceResponse
public java.lang.String getErrorMessage()
getErrorMessage
in interface com.tomtom.online.sdk.common.service.ServiceResponse
public ImmutableList<BatchableRoutingResponse> getRoutingResponses()
BatchableRoutingResponseVisitor
to obtain the specific
response type.public java.util.List<RouteResult> getRouteRoutingResponses()