Package com.zopim.android.sdk.model
Class Attachment
- java.lang.Object
-
- com.zopim.android.sdk.model.Attachment
-
public class Attachment extends java.lang.Object
This is a model class for attachment inChatLog
that will be created byLivechatAgentsPath
.It is used to define attachments in a chat log event.
This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.
- See Also:
- Agent Dashboard
-
-
Constructor Summary
Constructors Constructor and Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getMimeType()
Gets mime type of the attachmentjava.lang.String
getName()
Gets name of the attachment filejava.lang.Long
getSize()
Gets file size of the attachmentjava.net.URL
getThumbnail()
Gets thumbnail image of the attachmentjava.lang.String
getType()
Gets type of the attachment like document or imagejava.net.URL
getUrl()
Get resource url of the attachment
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets type of the attachment like document or image- Returns:
- type of the attachment
-
getMimeType
public java.lang.String getMimeType()
Gets mime type of the attachment- Returns:
- mime type of the attachment
-
getName
public java.lang.String getName()
Gets name of the attachment file- Returns:
- file name of the attachment
-
getSize
public java.lang.Long getSize()
Gets file size of the attachment- Returns:
- attachment size
-
getThumbnail
public java.net.URL getThumbnail()
Gets thumbnail image of the attachment- Returns:
- thumbnail image of the attachment
-
getUrl
public java.net.URL getUrl()
Get resource url of the attachment- Returns:
- url resource
-
-