Newer Version Available

This content describes an older version of this product. View Latest

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.

Namespace

TimeSlotOption Constructors

The following are constructors for TimeSlotOption.

TimeSlotOption(startTime, endTime)

Creates a TimeSlotOption object with a start and end time.

Signature

public TimeSlotOption(Datetime startTime, Datetime endTime)

Parameters

startTime
Type: Datetime
Start time.
endTime
Type: Datetime
End time.

TimeSlotOption(startTime, duration)

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

Signature

public TimeSlotOption(Datetime startTime, Integer duration)

Parameters

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

TimeSlotOption()

Creates a TimeSlotOption object.

Signature

public TimeSlotOption()

TimeSlotOption Properties

The following are properties for TimeSlotOption.

duration

The duration in seconds.

Signature

public Integer duration {get; set;}

Property Value

Type: Integer

durationValue

The duration in seconds. Enabled for Lightning components.

Signature

public Integer durationValue {get; set;}

Property Value

Type: Integer

endTimeValue

The end time. Enabled for Lightning components.

Signature

public Datetime endTimeValue {get; set;}

Property Value

Type: Datetime

startTime

The start time.

Signature

public Datetime startTime {get; set;}

Property Value

Type: Datetime

startTimeValue

The start time. Enabled for Lightning components.

Signature

public Datetime startTimeValue {get; set;}

Property Value

Type: Datetime