BookableUnit

data class BookableUnit(id: String, name: String, externalIdentifier: String, unavailableTimes: List<TimePeriod>) : SensorbergUnit

Represents a bookable unit.

Constructors

BookableUnit
Link copied to clipboard
fun BookableUnit(id: String, name: String, externalIdentifier: String, unavailableTimes: List<TimePeriod> = emptyList())

Properties

externalIdentifier
Link copied to clipboard
val externalIdentifier: String

the external identity of the unit.

id
Link copied to clipboard
open override val id: String

the ID of the unit.

name
Link copied to clipboard
open override val name: String

the name of the unit.

unavailableTimes
Link copied to clipboard
val unavailableTimes: List<TimePeriod>

list of TimePeriod when the unit is already booked.