public interface BatchSearchApi
extends com.tomtom.online.sdk.common.rx.RxContext
Modifier and Type | Method and Description |
---|---|
Single<BatchSearchResponse> |
batchSearch(BatchSearchQuery query)
Performs reactive batch search action based on provided query object
and returns the result to Observers subscribed to returned Observable.
|
void |
batchSearch(BatchSearchQuery searchQuery,
BatchSearchResultListener listener)
Performs batch search action based on provided
BatchSearchQuery object and returns the result with
usage of callback implementation. |
void |
cancelSearchIfRunning()
Cancels the current batch request
|
void batchSearch(BatchSearchQuery searchQuery, BatchSearchResultListener listener)
BatchSearchQuery
object and returns the result with
usage of callback implementation.searchQuery
- The object which contains data necessary to execute search batch action.listener
- The listener which informs the subscriber when search result is available.
It contains ServiceResponse
object.void cancelSearchIfRunning()
Single<BatchSearchResponse> batchSearch(BatchSearchQuery query)
query
- Object which contains data necessary to execute batch search action