TimeSlotOption Class

Represents a complex time slot option type. This class is used to provide time option payloads that can be translated to structured content payloads in rich content messages.

RichMessaging

The following are constructors for TimeSlotOption.

Creates a TimeSlotOption object with a start and end time.

public TimeSlotOption(Datetime startTime, Datetime endTime)

Creates a TimeSlotOption object with a start time and a duration.

public TimeSlotOption(Datetime startTime, Integer duration)

  • startTime: Type: Datetime Start time.
  • duration: Type: Integer Duration in seconds.

Creates a TimeSlotOption object.

public TimeSlotOption()

The following are properties for TimeSlotOption.

The duration in seconds.

public Integer duration {get; set;}

Type: Integer

The duration in seconds. Enabled for Lightning components.

public Integer durationValue {get; set;}

Type: Integer

The end time. Enabled for Lightning components.

public Datetime endTimeValue {get; set;}

Type: Datetime

The start time.

public Datetime startTime {get; set;}

Type: Datetime

The start time. Enabled for Lightning components.

public Datetime startTimeValue {get; set;}

Type: Datetime