fuelDynamicData

abstract fun fuelDynamicData(fuelDynamicDataOptions: FuelDynamicDataOptions): Result<FuelDynamicDataResponse, SearchError>

Performs a synchronous fuel dynamic data fetch using the provided FuelDynamicDataOptions object. Delivers a Result containing a FuelDynamicDataResponse, or a SearchError if the call fails.

Return

The Result containing a FuelDynamicDataResponse if the call succeeds, or a SearchError if it fails.

Parameters

fuelDynamicDataOptions

The object containing the properties to fetch dynamic data.


abstract fun fuelDynamicData(fuelDynamicDataOptions: FuelDynamicDataOptions, fuelDynamicDataCallback: FuelDynamicDataCallback): Cancellable

Performs an asynchronous fuel dynamic data fetch using the provided FuelDynamicDataOptions object. Returns the result using the provided FuelDynamicDataCallback.

Return

A cancellable operation.

Parameters

fuelDynamicDataOptions

The object containing the properties to fetch dynamic data.

fuelDynamicDataCallback

The FuelDynamicDataCallback invoked when the fetch operation has finished, either successfully or with an error. The callback will be executed on the main thread.