Class VisitorItem<T extends VisitorItem>
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<T>
-
- com.zopim.android.sdk.model.items.VisitorItem<T>
-
- Direct Known Subclasses:
- VisitorAttachment, VisitorMessage
public abstract class VisitorItem<T extends VisitorItem> extends RowItem<T>
This is an abstract model class for visitor events that will be created byLivechatChatLogPath
.It provides the following updates:
- If the item is still being sent to the server
- If the item has failed to send
You can subscribe to chat item broadcast via
DataSource.addChatLogObserver(ChatLogObserver)
usingChatItemsObserver
- See Also:
- Agent Dashboard,
Triggers Dashboard,
VisitorMessage
,VisitorAttachment
,RowItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.zopim.android.sdk.model.items.RowItem
RowItem.Type
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
VisitorItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isFailed()
boolean
isUnverified()
void
setFailed(boolean failed)
void
setUnverified(boolean unverified)
java.lang.String
toString()
void
update(T item)
Updates this item with item passed as parameter.-
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(T 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<T extends VisitorItem>
- Overrides:
update
in classRowItem<T extends VisitorItem>
- Parameters:
item
- that is an update
-
isUnverified
public boolean isUnverified()
-
setUnverified
public void setUnverified(boolean unverified)
-
isFailed
public boolean isFailed()
-
setFailed
public void setFailed(boolean failed)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classRowItem<T extends VisitorItem>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRowItem<T extends VisitorItem>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRowItem<T extends VisitorItem>
-
-