Class AgentAttachment
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<T>
-
- com.zopim.android.sdk.model.items.AgentItem<AgentAttachment>
-
- com.zopim.android.sdk.model.items.AgentAttachment
-
- All Implemented Interfaces:
- Updatable<AgentAttachment>, java.lang.Comparable<RowItem>
public class AgentAttachment extends AgentItem<AgentAttachment>
This is a model class for agent attachments that will be created byLivechatChatLogPath.It is used to get updates of
AgentAttachmentin the chat item list UI.You can subscribe to chat item broadcast via
DataSource.addChatLogObserver(ChatLogObserver)usingChatItemsObserver- See Also:
- Agent 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 AgentAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.io.FilegetAttachmentFile()java.lang.StringgetAttachmentName()java.lang.LonggetAttachmentSize()java.net.URLgetAttachmentUrl()inthashCode()voidsetAttachmentFile(java.io.File attachmentFile)voidsetAttachmentName(java.lang.String attachmentName)voidsetAttachmentSize(java.lang.Long attachmentSize)voidsetAttachmentUrl(java.net.URL attachmentUrl)java.lang.StringtoString()voidupdate(AgentAttachment 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(AgentAttachment 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<AgentAttachment>- Overrides:
updatein classAgentItem<AgentAttachment>- Parameters:
item- that is an update
-
getAttachmentUrl
public java.net.URL getAttachmentUrl()
-
setAttachmentUrl
public void setAttachmentUrl(java.net.URL attachmentUrl)
-
getAttachmentSize
public java.lang.Long getAttachmentSize()
-
setAttachmentSize
public void setAttachmentSize(java.lang.Long attachmentSize)
-
getAttachmentName
public java.lang.String getAttachmentName()
-
setAttachmentName
public void setAttachmentName(java.lang.String attachmentName)
-
getAttachmentFile
public java.io.File getAttachmentFile()
-
setAttachmentFile
public void setAttachmentFile(java.io.File attachmentFile)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAgentItem<AgentAttachment>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAgentItem<AgentAttachment>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRowItem<AgentAttachment>
-
-