public class BatchSearchResponse
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 ResponseError |
error |
protected BatchableSearchResponse[] |
responses |
protected int |
successfulRequests |
protected int |
totalRequests |
Constructor and Description |
---|
BatchSearchResponse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage() |
java.util.List<FuzzySearchResponse> |
getFuzzySearchResponses()
Get a list of fuzzy search results of a Batch search query.
|
java.util.List<GeometrySearchResponse> |
getGeometrySearchResponses()
Get a list of geometry search results of a Batch search query.
|
java.util.List<ReverseGeocoderSearchResponse> |
getReverseGeocoderSearchResponses()
Get a list of reverse geocoding search results of a Batch search query.
|
ImmutableList<BatchableSearchResponse> |
getSearchResponses()
Get a list of results of a Batch Search query.
|
boolean |
hasError() |
protected ResponseError error
protected int totalRequests
protected int successfulRequests
protected BatchableSearchResponse[] 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<BatchableSearchResponse> getSearchResponses()
BatchableSearchResponseVisitor
to obtain the specific
response type.public java.util.List<FuzzySearchResponse> getFuzzySearchResponses()
public java.util.List<GeometrySearchResponse> getGeometrySearchResponses()
public java.util.List<ReverseGeocoderSearchResponse> getReverseGeocoderSearchResponses()