Booking

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

Represents a booking of a unit by the logged user.

Constructors

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

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

endsAt
Link copied to clipboard
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
Link copied to clipboard
val id: String

The unique ID of this booking.

iotUnit
Link copied to clipboard
val iotUnit: IotUnit?

The unit that is booked.

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().