Class AsyncDriverClient
- java.lang.Object
-
- com.chrt.api.resources.tracking.driver.AsyncDriverClient
-
public class AsyncDriverClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncDriverClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<DriverUpdateRes>updateV1(LocationFeature request)Records driver location updates.java.util.concurrent.CompletableFuture<DriverUpdateRes>updateV1(LocationFeature request, RequestOptions requestOptions)Records driver location updates.AsyncRawDriverClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncDriverClient
public AsyncDriverClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawDriverClient withRawResponse()
Get responses with HTTP metadata like headers
-
updateV1
public java.util.concurrent.CompletableFuture<DriverUpdateRes> updateV1(LocationFeature request)
Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos (cargo_by_driver). | (LocationFeature) -> (DriverUpdateRes)
-
updateV1
public java.util.concurrent.CompletableFuture<DriverUpdateRes> updateV1(LocationFeature request, RequestOptions requestOptions)
Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos (cargo_by_driver). | (LocationFeature) -> (DriverUpdateRes)
-
-