ParkingSlot

data class ParkingSlot(val id: String, val position: GeoPosition, val state: ParkingSlotState)

A parking slot

Parameters

id

identifier of the parking slot

position

position of the parking slot

state

state of the parking slot (whether it is occupied or not)

Constructors

Link copied to clipboard
constructor(id: String, position: GeoPosition, state: ParkingSlotState)

Functions

Link copied to clipboard

Returns true if the parking slot is free

Link copied to clipboard

Returns true if the parking slot is stale: it is occupied but the expected free date is passed

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard