TimePeriod

data class TimePeriod(isOwner: Boolean, startsAt: Long, endsAt: Long?)

Constructors

TimePeriod
Link copied to clipboard
fun TimePeriod(isOwner: Boolean, startsAt: Long, endsAt: Long?)

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

isOwner
Link copied to clipboard
val isOwner: Boolean

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

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