Class VisitorAttachment
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<T>
-
- com.zopim.android.sdk.model.items.VisitorItem<VisitorAttachment>
-
- com.zopim.android.sdk.model.items.VisitorAttachment
-
- All Implemented Interfaces:
- Updatable<VisitorAttachment>, java.lang.Comparable<RowItem>
public class VisitorAttachment extends VisitorItem<VisitorAttachment>
This is a model class for visitor attachments that will be created byLivechatChatLogPath
.It is used to get updates of
VisitorAttachment
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 VisitorAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
java.lang.String
getError()
java.io.File
getFile()
int
getUploadProgress()
java.net.URL
getUploadUrl()
int
hashCode()
void
setError(java.lang.String error)
void
setFile(java.io.File file)
void
setUploadProgress(int uploadProgress)
void
setUploadUrl(java.net.URL uploadUrl)
java.lang.String
toString()
void
update(VisitorAttachment 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(VisitorAttachment 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<VisitorAttachment>
- Overrides:
update
in classVisitorItem<VisitorAttachment>
- Parameters:
item
- that is an update
-
getFile
public java.io.File getFile()
-
setFile
public void setFile(java.io.File file)
-
getUploadUrl
public java.net.URL getUploadUrl()
-
setUploadUrl
public void setUploadUrl(java.net.URL uploadUrl)
-
getUploadProgress
public int getUploadProgress()
-
setUploadProgress
public void setUploadProgress(int uploadProgress)
-
getError
public java.lang.String getError()
-
setError
public void setError(java.lang.String error)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classVisitorItem<VisitorAttachment>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classVisitorItem<VisitorAttachment>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classVisitorItem<VisitorAttachment>
-
-