Vehicle

data class Vehicle(val id: String, val vehicleModel: VehicleModel?, var plate: String? = null, var vin: String? = null, var status: VehicleStatus = VehicleStatus())

Stores information about particular vehicle.

Parameters

id

id of the vehicle

vehicleModel

Model assigned to the vehicle

plate

license plate number of the vehicle

vin

vin number of the vehicle

status

current vehicle status

Constructors

Link copied to clipboard
constructor(id: String, vehicleModel: VehicleModel?, plate: String? = null, vin: String? = null, status: VehicleStatus = VehicleStatus())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var vin: String?

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(): String