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

TimePeriod

data class TimePeriod : Parcelable

Constructors

<init>

TimePeriod(isOwner: Boolean, startsAt: Long, endsAt: Long?, bookingId: String?)

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

isOwner

val isOwner: Boolean

True, if the logged user is the owner of this booking, False otherwise

startsAt

val startsAt: Long

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