Sensorberg Smart Spaces SDK for Android / com.sensorberg.smartworkspace.sdk.model / Booking

Booking

data class Booking : Parcelable

Represents a booking of a unit by the logged user.

Constructors

<init>

Booking(id: String, iotUnit: IotUnit, startsAt: Long, endsAt: Long?)

Represents a booking of a unit by the logged user.

Properties

endsAt

val endsAt: Long?

The end time of this booking in epoch millis, or null, if open ended. It's safe to compare this value to System.currentTimeMillis()

id

val id: String

The unique ID of this booking

iotUnit

val iotUnit: IotUnit

The unit that is booked

startsAt

val startsAt: Long

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