/
TimeSlotGenerator

TimeSlotGenerator

Can generate a series of time slots based on certain settings such as slot duration and interval.

Methods

Description

Generates a series of time slots based on the request context.

Signature

global static B25.TimeSlotGenerator.Result getTimeSlots(B25.TimeSlotGenerator.Context)

Parameters

B25.TimeSlotGenerator.Context

Contains the settings for the series to be generated.

Return Type

B25.TimeSlotGenerator.Result

Contains a List<B25.TimeSlot> timeSlots property with the generated time slots.

Inner Classes

Description

Contains the settings for the series to be generated.

Properties

The start time of the series to be generated.

The end time of the series to be generated.

The duration of each time slot, in minutes.

Amount of minutes between the start times of each slot. Allows you to have overlap if the interval is lower than the duration. For example, a duration of 60 with an interval of 15 would result in time slots from 9:00-10:00, 9:15-10:15, 9:30-10:30, etc.

Description

Contains the resulting time slots.

Properties

The resulting time slots. Each time slot has a startDateTime and endDateTime.

Example

This example shows how you can use the class in your own code.

Related content

ReservationCollectionTimeSlotFinder
ReservationCollectionTimeSlotFinder
More like this
AvailableTimeRanges
AvailableTimeRanges
More like this
Time Slot Picker (for record pages)
Time Slot Picker (for record pages)
More like this
Buffer Time
Buffer Time
More like this
Time Slot Picker (for flows)
Time Slot Picker (for flows)
More like this
RecurringReservations
RecurringReservations
More like this