TimePicker

public abstract class TimePicker extends Message

A TimePicker message to display.

Each TimePicker message has a title and a list of time slots to display to the user. The user can select one of the time slots, and the associated id should be sent as postback value together with the text representing the selected time slot as a reply message (on behalf of the user).

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Attachments provided with the message. This field can be empty. It contains attachments that the user or agent sent alongside with the message.

Link copied to clipboard
private final MessageAuthor author

Author associated with this message.

Link copied to clipboard
private final Date createdAt

The timestamp of when the message was created on the server. Similarly to id this field shouldn't change for the lifetime of the message.

Link copied to clipboard

The direction in which the message is sent.

Link copied to clipboard
private final String fallbackText

Optional fallback text which can be used if UI integration doesn't support concrete subtype of Message.

Link copied to clipboard
private final UUID id

The id that was assigned to this message. If another message has matching id, it's the same message with possibly different content.

Link copied to clipboard
private final MessageMetadata metadata

The otherwise uncategorizable properties for this message. It can contain anything from message status to custom properties.

Link copied to clipboard
private final String popupTitle

title to be displayed after clicking on the picker list.

Link copied to clipboard
private final UUID threadId

The thread id that this message belongs to. Messages should never be mismatched between threads as this can lead to inconsistencies and undefined behavior.

Link copied to clipboard
private final Iterable<TimeSlot> timeSlots

list of time slots to display along with title.

Link copied to clipboard
private final String title

title message to display in conversation.

Functions

Link copied to clipboard
public abstract Iterable<Attachment> getAttachments()

Attachments provided with the message. This field can be empty. It contains attachments that the user or agent sent alongside with the message.

Link copied to clipboard
public abstract MessageAuthor getAuthor()

Author associated with this message.

Link copied to clipboard
public abstract Date getCreatedAt()

The timestamp of when the message was created on the server. Similarly to id this field shouldn't change for the lifetime of the message.

Link copied to clipboard
public abstract MessageDirection getDirection()

The direction in which the message is sent.

Link copied to clipboard
public abstract String getFallbackText()

Optional fallback text which can be used if UI integration doesn't support concrete subtype of Message.

Link copied to clipboard
public abstract UUID getId()

The id that was assigned to this message. If another message has matching id, it's the same message with possibly different content.

Link copied to clipboard
public abstract MessageMetadata getMetadata()

The otherwise uncategorizable properties for this message. It can contain anything from message status to custom properties.

Link copied to clipboard
public abstract String getPopupTitle()

title to be displayed after clicking on the picker list.

Link copied to clipboard
public abstract UUID getThreadId()

The thread id that this message belongs to. Messages should never be mismatched between threads as this can lead to inconsistencies and undefined behavior.

Link copied to clipboard
public abstract Iterable<TimeSlot> getTimeSlots()

list of time slots to display along with title.

Link copied to clipboard
public abstract String getTitle()

title message to display in conversation.