Package zendesk.support
Class Attachment
- java.lang.Object
-
- zendesk.support.Attachment
-
public class Attachment extends java.lang.ObjectThis is a model class for an Attachment object.- See Also:
- Attachments
-
-
Constructor Summary
Constructors Constructor and Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetContentType()Gets the content type of the attachment, e.g.java.lang.StringgetContentUrl()Gets the URL at which the attachment can be downloadedjava.lang.StringgetFileName()Gets the file name of the attachmentjava.lang.LonggetHeight()Gets the height of the attachment in pixelsjava.lang.LonggetId()Gets the ID of the attachmentjava.lang.LonggetSize()Gets the size of the attachment in bytesjava.util.List<Attachment>getThumbnails()Gets the thumbnails of the attachmentjava.lang.StringgetUrl()Gets the API URL of the attachmentjava.lang.LonggetWidth()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
-
-