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 protectedVisitorItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)inthashCode()booleanisFailed()booleanisUnverified()voidsetFailed(boolean failed)voidsetUnverified(boolean unverified)java.lang.StringtoString()voidupdate(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:RowItemUpdates this item with item passed as parameter.This will update this instance with the parameter passed as value.
- Specified by:
updatein interfaceUpdatable<T extends VisitorItem>- Overrides:
updatein 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:
equalsin classRowItem<T extends VisitorItem>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classRowItem<T extends VisitorItem>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRowItem<T extends VisitorItem>
-
-