public class AgentOptions extends AgentItem<AgentOptions> implements Disableable
LivechatChatLogPath
.
It is used to get updates of AgentOptions
in the chat item list UI.
You can subscribe to chat item broadcast via DataSource.addChatLogObserver(ChatLogObserver)
using ChatItemsObserver
AgentItem
RowItem.Type
Constructor and Description |
---|
AgentOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMessage() |
java.lang.String[] |
getOptions() |
int |
hashCode() |
boolean |
isDisabled() |
void |
setDisabled(boolean disabled)
Sets state as per parameter
|
void |
setMessage(java.lang.String message) |
void |
setOptions(java.lang.String[] options) |
java.lang.String |
toString() |
void |
update(AgentOptions item)
Updates this item with item passed as parameter.
|
getAvatarUri, setAvatarUri
compareTo, getDisplayName, getId, getParticipantId, getTimestamp, getType, setDisplayName, setId, setParticipantId, setTimestamp, setType
public void update(@NonNull AgentOptions item)
RowItem
This will update this instance with the parameter passed as value.
update
in interface Updatable<AgentOptions>
update
in class AgentItem<AgentOptions>
item
- that is an update@NonNull public java.lang.String getMessage()
public void setMessage(@NonNull java.lang.String message)
public void setDisabled(boolean disabled)
Disableable
setDisabled
in interface Disableable
disabled
- true to disable, false to enablepublic boolean isDisabled()
@NonNull public java.lang.String[] getOptions()
public void setOptions(@NonNull java.lang.String[] options)
public boolean equals(java.lang.Object o)
equals
in class AgentItem<AgentOptions>
public int hashCode()
hashCode
in class AgentItem<AgentOptions>
public java.lang.String toString()
toString
in class RowItem<AgentOptions>