Package-level declarations

Types

Link copied to clipboard

Represents the body properties of a vehicle.

Link copied to clipboard
value class BodyType

Value class representing the body type of a vehicle.

Link copied to clipboard
class Brand

Represents a vehicle brand.

Link copied to clipboard
value class BrandId(val value: UUID)

A value class representing a unique identifier for a brand.

Link copied to clipboard
class BrandOptions(val engineType: EngineType? = null, val vehicleType: VehicleType? = null)

Options for requesting vehicle brands.

Link copied to clipboard

Response class containing brands.

Link copied to clipboard
sealed class CacheDirectory

Configuration for where to cache vehicle details for offline usage.

Link copied to clipboard
value class DriveTrain

Value class representing the drive train of a vehicle.

Link copied to clipboard

Represents the properties of an electric vehicle.

Link copied to clipboard
value class EngineType

Value class representing the engine type of a vehicle.

Link copied to clipboard
class Model

Represents a vehicle model.

Link copied to clipboard
value class ModelId(val value: UUID)

A value class representing a unique identifier for a model.

Link copied to clipboard
class ModelOptions(val engineType: EngineType? = null, val vehicleType: VehicleType? = null, val brandId: BrandId? = null)

Options for requesting vehicle models.

Link copied to clipboard

Response class containing models.

Link copied to clipboard
data class PlugType

Represents a charging plug type for a vehicle.

Link copied to clipboard

Value class representing the production status of a vehicle.

Link copied to clipboard

Options for retrieving a vehicle based on its VehicleMetadataId.

Link copied to clipboard

Represents metadata for a vehicle.

Link copied to clipboard

Options for requesting vehicle metadata by its unique identifier.

Link copied to clipboard

Response class containing vehicle metadata retrieved by its unique identifier.

Link copied to clipboard
abstract class VehicleMetadataFailure

Represents a failure related to a vehicle metadata request.

Link copied to clipboard
value class VehicleMetadataId(val value: UUID)

A value class representing a unique identifier for vehicle metadata.

Link copied to clipboard
class VehicleMetadataOptions(val engineType: EngineType? = null, val vehicleType: VehicleType? = null, val brandId: BrandId? = null, val modelId: ModelId? = null)

Options for requesting vehicle metadata.

Link copied to clipboard

Entry point for retrieving vehicle metadata.

Link copied to clipboard

Response class containing vehicle metadata.

Properties

Link copied to clipboard

The default Uri for the vehicle metadata API. This Uri is used for requests when no specific API Uri is provided.

Functions

Link copied to clipboard
Link copied to clipboard

Creates an instance of VehicleMetadataProvider using the provided context and API key.

Creates an instance of VehicleMetadataProvider using the provided context, API key, and API URI.

fun VehicleMetadataProvider(context: Context, apiKey: String, apiUri: Uri = DEFAULT_API_URI, cacheDirectory: CacheDirectory = CacheDirectory.DefaultDirectory): VehicleMetadataProvider

Creates an instance of VehicleMetadataProvider using the provided context, API key, optional API Uri, and optional caching directory for storing vehicle details.