requestVehicleMetadata
abstract fun requestVehicleMetadata(options: VehicleMetadataOptions): Result<VehicleMetadataResponse, VehicleMetadataFailure>
Requests vehicle metadata synchronously.
Threading: This method should be invoked from a background thread as it involves time-consuming operations, such as network requests.
Return
A Result wrapping either a VehicleMetadataResponse on success or a VehicleMetadataFailure on failure.
Parameters
options
The options specifying the criteria for the metadata request.
abstract fun requestVehicleMetadata(options: VehicleMetadataOptions, callback: Callback<VehicleMetadataResponse, VehicleMetadataFailure>): Cancellable
Request vehicle metadata asynchronously.
Return
The Cancellable operation.
Parameters
options
The options specifying the criteria for the metadata request.
callback
The callback to be invoked with the result of the metadata request.