ParkingSlotRepository
interface ParkingSlotRepository
An interface representing a parking slot repository for accessing and manipulating parking slot data.
Functions
Link copied to clipboard
Frees the parking slot identified by id
Link copied to clipboard
Finds the parking slot currently occupied by the user
Link copied to clipboard
Finds a parking slot identified by id
Link copied to clipboard
abstract suspend fun getParkingSlots(center: GeoPosition, radius: Double): Either<AppError, List<ParkingSlot>>
Link copied to clipboard
abstract suspend fun incrementParkingSlotOccupation(id: String, stopEnd: Instant): Either<AppError, Unit>
Increments the occupation of a parking slot identified by id
Link copied to clipboard
Occupies a parking slot identified by id