Package zendesk.support
Class Attachment
- java.lang.Object
-
- zendesk.support.Attachment
-
- All Implemented Interfaces:
- java.io.Serializable
public class Attachment extends java.lang.Object implements java.io.Serializable
This is a model class for an Attachment object.- See Also:
- Attachments, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getContentType()
Gets the content type of the attachment, e.g.java.lang.String
getContentUrl()
Gets the URL at which the attachment can be downloadedjava.lang.String
getFileName()
Gets the file name of the attachmentjava.lang.Long
getHeight()
Gets the height of the attachment in pixelsjava.lang.Long
getId()
Gets the ID of the attachmentjava.lang.Long
getSize()
Gets the size of the attachment in bytesjava.util.List<Attachment>
getThumbnails()
Gets the thumbnails of the attachmentjava.lang.String
getUrl()
Gets the API URL of the attachmentjava.lang.Long
getWidth()
Gets the width of the attachment in pixels
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Gets the API URL of the attachment- Returns:
- the API URL of the attachment
-
getId
public java.lang.Long getId()
Gets the ID of the attachment- Returns:
- the ID of the attachment
-
getFileName
public java.lang.String getFileName()
Gets the file name of the attachment- Returns:
- the file name of the attachment
-
getContentUrl
public java.lang.String getContentUrl()
Gets the URL at which the attachment can be downloaded- Returns:
- the URL at which the attachment can be downloaded
-
getContentType
public java.lang.String getContentType()
Gets the content type of the attachment, e.g. image/png- Returns:
- the content type of the attachment, e.g. image/png
-
getSize
public java.lang.Long getSize()
Gets the size of the attachment in bytes- Returns:
- the size of the attachment in bytes
-
getWidth
public java.lang.Long getWidth()
Gets the width of the attachment in pixels- Returns:
- the size of the attachment in pixels
-
getHeight
public java.lang.Long getHeight()
Gets the height of the attachment in pixels- Returns:
- the height of the attachment in pixels
-
getThumbnails
public java.util.List<Attachment> getThumbnails()
Gets the thumbnails of the attachment- Returns:
- the thumbnails of the attachment
-
-