DBModelMapper

Mapper responsible for mapping between entity objects as stored in the ROOM database and public classes used by the module end users.

Functions

Link copied to clipboard

Constructs Profile instance base on information inside VehicleModelFullInfo instance

Link copied to clipboard
fun EVProfile.toDEVProfile(vehicleModelId: String, profileId: String? = null): DEVProfile
Link copied to clipboard
fun Profile.toDProfile(vehicleModelId: String, profileId: String? = null): DProfile
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Converts a database model DManufacturer to model Manufacturer

Link copied to clipboard
fun DVehicle.toVehicle(vehicleModelDAO: VehicleModelDAO): Vehicle
fun DVehicle.toVehicle(vehicleModel: VehicleModel?): Vehicle
Link copied to clipboard

Converts VehicleModelFullInfo instance used by Room DAOs to VehicleModel instance (public API)