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.AttachmentMessage
.
-
-
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 boolean
equals(java.lang.Object o)
java.io.File
getFile()
Returns the localFile
for this attachment.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.long
getSize()
Returns size of this attachment in bytes.java.lang.String
getUrl()
Returns the URL for this attachment.int
hashCode()
-
-
-
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
-
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 localFile
for this attachment.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-