Class VisitorMessage
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<T>
-
- com.zopim.android.sdk.model.items.VisitorItem<VisitorMessage>
-
- com.zopim.android.sdk.model.items.VisitorMessage
-
- All Implemented Interfaces:
- Updatable<VisitorMessage>, java.lang.Comparable<RowItem>
public class VisitorMessage extends VisitorItem<VisitorMessage>
This is a model class for visitor messages that will be created byLivechatChatLogPath
.It is used to get updates of
VisitorMessage
in the chat item list UI.You can subscribe to chat item broadcast via
DataSource.addChatLogObserver(ChatLogObserver)
usingChatItemsObserver
- See Also:
- Agent Dashboard,
VisitorItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.zopim.android.sdk.model.items.RowItem
RowItem.Type
-
-
Constructor Summary
Constructors Constructor and Description VisitorMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
java.lang.String
getMessage()
int
hashCode()
void
setMessage(java.lang.String message)
java.lang.String
toString()
void
update(VisitorMessage item)
Updates this item with item passed as parameter.-
Methods inherited from class com.zopim.android.sdk.model.items.VisitorItem
isFailed, isUnverified, setFailed, setUnverified
-
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(VisitorMessage item)
Description copied from class:RowItem
Updates this item with item passed as parameter.This will update this instance with the parameter passed as value.
- Specified by:
update
in interfaceUpdatable<VisitorMessage>
- Overrides:
update
in classVisitorItem<VisitorMessage>
- Parameters:
item
- that is an update
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classVisitorItem<VisitorMessage>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classVisitorItem<VisitorMessage>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classVisitorItem<VisitorMessage>
-
-