ReservationCollectionTimeSlotFinder

Finds timeslots for a list of reservation collections.

Methods

Description

This method takes a list of reservation collections and a timeslot context. It will return a list of timeslots matching that context where at least one of those collections is avaialble. Each slot also contains a subset of the reservation collections.

Signature

global static B25.ReservationCollectionTimeSlotFinder.Result getTimeRanges(B25.ReservationCollectionTimeSlotFinder.Context context)

Parameters

B25.ReservationCollectionTimeSlotFinder.Context

An instance of B25.ReservationCollectionTimeSlotFinder.Context. This class wraps the input parameters, such as the collections to check, and timeSlotContext

Return Type

B25.ReservationCollectionTimeSlotFinder.Result

An instance of B25.ReservationCollectionTimeSlotFinder.Result. This contains a list of time slots matching that context where at least one of those collections is available. Each slot also contains a subset of the reservation collections.

Inner Classes

Description

This class wraps the input parameters: a list of reservation collections, and a time slot context.

Properties

A list of Reservation Collections you want to conflict check for each time slot.

Definition of the shape and range of the time slots. Inner class of TimeSlotGenerator

Description

This class wraps the result, which contains a list of available time slots.

Properties

A list of available time slots. Each time slot contains a list of ReservationCollections that would be available in that time slot in the reservationCollections property.

Example

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

Related pages