Booking

data class Booking(id: String, name: String?, startsAt: Long, endsAt: Long?, unitId: String)

Represents a booking of a unit by the logged user.

Constructors

Booking
Link copied to clipboard
fun Booking(id: String, name: String?, startsAt: Long, endsAt: Long?, unitId: String)

Properties

endsAt
Link copied to clipboard
val endsAt: Long?

The end time of this booking in epoch millis, or null, if open ended. The end time of this booking in epoch millis, or null, if open ended.

id
Link copied to clipboard
val id: String

the ID of the booking.

name
Link copied to clipboard
val name: String?
startsAt
Link copied to clipboard
val startsAt: Long

The start time of the booking in epoch millis. It's safe to compare this value to System.currentTimeMillis().

unitId
Link copied to clipboard
val unitId: String

the ID of the unit this booking belongs to.