Class AgentOptions
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<T>
-
- com.zopim.android.sdk.model.items.AgentItem<AgentOptions>
-
- com.zopim.android.sdk.model.items.AgentOptions
-
- All Implemented Interfaces:
- Disableable, Updatable<AgentOptions>, java.lang.Comparable<RowItem>
public class AgentOptions extends AgentItem<AgentOptions> implements Disableable
This is a model class for agent options that will be created byLivechatChatLogPath.It is used to get updates of
AgentOptionsin the chat item list UI.You can subscribe to chat item broadcast via
DataSource.addChatLogObserver(ChatLogObserver)usingChatItemsObserver- See Also:
- Agent Dashboard,
Shortcuts & Options Dashboard,
AgentItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.zopim.android.sdk.model.items.RowItem
RowItem.Type
-
-
Constructor Summary
Constructors Constructor and Description AgentOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.lang.StringgetMessage()java.lang.String[]getOptions()inthashCode()booleanisDisabled()voidsetDisabled(boolean disabled)Sets state as per parametervoidsetMessage(java.lang.String message)voidsetOptions(java.lang.String[] options)java.lang.StringtoString()voidupdate(AgentOptions item)Updates this item with item passed as parameter.-
Methods inherited from class com.zopim.android.sdk.model.items.AgentItem
getAvatarUri, setAvatarUri
-
Methods inherited from class com.zopim.android.sdk.model.items.RowItem
canBeCastTo, compareTo, getDisplayName, getId, getParticipantId, getTimestamp, getType, setDisplayName, setId, setParticipantId, setTimestamp, setType
-
-
-
-
Method Detail
-
update
public void update(AgentOptions item)
Description copied from class:RowItemUpdates this item with item passed as parameter.This will update this instance with the parameter passed as value.
- Specified by:
updatein interfaceUpdatable<AgentOptions>- Overrides:
updatein classAgentItem<AgentOptions>- Parameters:
item- that is an update
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
setDisabled
public void setDisabled(boolean disabled)
Description copied from interface:DisableableSets state as per parameter- Specified by:
setDisabledin interfaceDisableable- Parameters:
disabled- true to disable, false to enable
-
isDisabled
public boolean isDisabled()
-
getOptions
public java.lang.String[] getOptions()
-
setOptions
public void setOptions(java.lang.String[] options)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAgentItem<AgentOptions>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAgentItem<AgentOptions>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRowItem<AgentOptions>
-
-