data class Booking : Parcelable
Represents a booking of a unit by the logged user.
Booking(id: String, iotUnit: IotUnit, startsAt: Long, endsAt: Long?)
Represents a booking of a unit by the logged user. |
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() |
|
val id: String
The unique ID of this booking |
|
val iotUnit: IotUnit
The unit that is booked |
|
val startsAt: Long
The start time of the booking in epoch millis. It's safe to compare this value to System.currentTimeMillis() |