requestVehicleMetadataById
abstract fun requestVehicleMetadataById(options: VehicleMetadataByIdOptions): Result<VehicleMetadataByIdResponse, VehicleMetadataFailure>
Requests vehicle metadata by its unique identifier 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 VehicleMetadataByIdResponse on success or a VehicleMetadataFailure on failure.
Parameters
options
The VehicleMetadataByIdOptions specifying the criteria for the metadata request.
abstract fun requestVehicleMetadataById(options: VehicleMetadataByIdOptions, callback: Callback<VehicleMetadataByIdResponse, VehicleMetadataFailure>): Cancellable
Requests vehicle metadata by its unique identifier asynchronously.
Return
The Cancellable operation.
Parameters
options
The VehicleMetadataByIdOptions specifying the criteria for the metadata request.
callback
The callback to be invoked with the result of the metadata request.