BookingConstraints

data class BookingConstraints(val minTimeSlot: Int? = null, val maxTimeSlot: Int? = null, val maxNumberOfBookingDay: Int? = null, val dateLimit: String? = null, val bookableDaysOfWeek: List<Int>? = null, val bookableDaysLimit: Int? = null, val weekConstraints: List<WeekConstraint>? = null) : Parcelable

Constructors

Link copied to clipboard
constructor(minTimeSlot: Int? = null, maxTimeSlot: Int? = null, maxNumberOfBookingDay: Int? = null, dateLimit: String? = null, bookableDaysOfWeek: List<Int>? = null, bookableDaysLimit: Int? = null, weekConstraints: List<WeekConstraint>? = null)

Properties

Link copied to clipboard
val bookableDaysLimit: Int? = null

It represents the maximum number of days (starting from the current day) to user can perform a reservation

Link copied to clipboard

Represents the list of days of the week in which the resource is bookable. Sunday = 1, Monday = 2, ..., Saturday = 7

Link copied to clipboard
val dateLimit: String? = null

represent the last date when a user can perform a reservation

Link copied to clipboard

represent the max number of day of consecutive booking for a single book

Link copied to clipboard
val maxTimeSlot: Int? = null

represent the max number of consecutive minutes for a single booking for a single book

Link copied to clipboard
val minTimeSlot: Int? = null

number of minutes for the minimum time slot

Link copied to clipboard

Represents the list of bookable intervals by day of the week.

Inherited functions

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