Class 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 downloaded
      java.lang.String getFileName()
      Gets the file name of the attachment
      java.lang.Long getHeight()
      Gets the height of the attachment in pixels
      java.lang.Long getId()
      Gets the ID of the attachment
      java.lang.Long getSize()
      Gets the size of the attachment in bytes
      java.util.List<Attachment> getThumbnails()
      Gets the thumbnails of the attachment
      java.lang.String getUrl()
      Gets the API URL of the attachment
      java.lang.Long getWidth()
      Gets the width of the attachment in pixels
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attachment

        public Attachment()
    • 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