ChatThread

public abstract class ChatThread

All information about a chat thread as well as the messages for the thread.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Whether more messages can be added to the thread (not archived) or otherwise (archived).

Link copied to clipboard
private final List<CustomField> fields

Custom fields attached to this thread.

Link copied to clipboard

Whether there are more messages to load in the thread.

Link copied to clipboard
private final Boolean hasOnlineAgent

Is any agent online? Always true if this is not a live chat.

Link copied to clipboard
private final UUID id

The unique id of the thread.

Link copied to clipboard
private final List<Message> messages

The list of messages on the thread.

Link copied to clipboard
private final Integer positionInQueue

Position in queue if this is a Live Chat. Always zero if this is not a live chat.

Link copied to clipboard
private final String scrollToken

The token for the scroll position used to load more messages.

Link copied to clipboard
private final Agent threadAgent

The agent assigned in the thread.

Link copied to clipboard
private final String threadName

The name given to the thread (for multi-thread channels only).

Link copied to clipboard

Current state of the thread.

Functions

Link copied to clipboard
public abstract Boolean getCanAddMoreMessages()

Whether more messages can be added to the thread (not archived) or otherwise (archived).

Link copied to clipboard
public abstract List<CustomField> getFields()

Custom fields attached to this thread.

Link copied to clipboard
Link copied to clipboard
public abstract Boolean getHasOnlineAgent()

Is any agent online? Always true if this is not a live chat.

Link copied to clipboard
public abstract UUID getId()

The unique id of the thread.

Link copied to clipboard
public abstract List<Message> getMessages()

The list of messages on the thread.

Link copied to clipboard
public abstract Integer getPositionInQueue()

Position in queue if this is a Live Chat. Always zero if this is not a live chat.

Link copied to clipboard
public abstract String getScrollToken()

The token for the scroll position used to load more messages.

Link copied to clipboard
public abstract Agent getThreadAgent()

The agent assigned in the thread.

Link copied to clipboard
public abstract String getThreadName()

The name given to the thread (for multi-thread channels only).

Link copied to clipboard
public abstract ChatThreadState getThreadState()

Current state of the thread.