Package zendesk.chat.client
Class Attachment
- java.lang.Object
-
- zendesk.chat.client.Attachment
-
public class Attachment extends java.lang.Object
Describes a file attached to theChatLog
.- See Also:
ChatLog.getAttachment()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
Attachment.Metadata
Information about the image attachment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Attachment.Metadata
getMetadata()
Returns the metadata for this image attachment ornull
if this attachment is not an image.java.lang.String
getMimeType()
Returns the MIME type of this attachment.java.lang.String
getName()
Returns the full name of this attachment.int
getSize()
Returns size of this attachment in bytes.java.lang.String
getType()
Returns a string representing the type of this attachment.java.lang.String
getUrl()
Returns the URL for this attachment.
-
-
-
Method Detail
-
getMetadata
public Attachment.Metadata getMetadata()
Returns the metadata for this image attachment ornull
if this attachment is not an image.- See Also:
Attachment.Metadata
-
getType
public java.lang.String getType()
Returns a string representing the type of this attachment. Currently this should always be "chat.file".
-
getName
public java.lang.String getName()
Returns the full name of this attachment. For example, "screenshot.png".
-
getMimeType
public java.lang.String getMimeType()
Returns the MIME type of this attachment. For example, "image/png".
-
getSize
public int getSize()
Returns size of this attachment in bytes. For example, 1048576.
-
getUrl
public java.lang.String getUrl()
Returns the URL for this attachment.
-
-