Package zendesk.chat.client
Class Attachment
- java.lang.Object
-
- zendesk.chat.client.Attachment
-
public class Attachment extends java.lang.ObjectDescribes a file attached to theChatLog.AttachmentMessage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAttachment.MetadataInformation about the image attachment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.io.FilegetFile()Returns the localFilefor this attachment.Attachment.MetadatagetMetadata()Returns the metadata for this image attachment ornullif this attachment is not an image.java.lang.StringgetMimeType()Returns the MIME type of this attachment.java.lang.StringgetName()Returns the full name of this attachment.longgetSize()Returns size of this attachment in bytes.java.lang.StringgetUrl()Returns the URL for this attachment.inthashCode()
-
-
-
Method Detail
-
getMetadata
public Attachment.Metadata getMetadata()
Returns the metadata for this image attachment ornullif this attachment is not an image.- See Also:
Attachment.Metadata
-
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 long getSize()
Returns size of this attachment in bytes. For example, 1048576.
-
getUrl
public java.lang.String getUrl()
Returns the URL for this attachment.
-
getFile
public java.io.File getFile()
Returns the localFilefor this attachment.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-