Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleContext

Description

This class wraps the request context.

Properties

Code Block
B25__Reservation__c reservation

The reservation to find available time slots for. Make sure any lookups are populated to dimensions (resource/staff/etc) that need to be available, as well as any other fields that can influence conflict checking. Start and end times are not necessary.

Code Block
Map<String, List<SObject>> junctions

Optional. If you need any junctions to be available, add them here mapped by relationship name.

Code Block
B25.TimeSlotGenerator.Context timeSlotContext

Contains the definition of what the resulting series of slots should look like, such as slot duration and interval. For more details see the TimeSlotGenerator documentation.

Expand
titleResult

Description

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

Properties

Code Block
List<B25.TimeSlot> timeSlots

The time slots when the given reservation (and junctions) are available. Each time slot has a startDateTime and endDateTime. For more details see the TimeSlot documentation.

...