Class Attachment

    • 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
      Attachment.Metadata getMetadata()
      Returns the metadata for this image attachment or null 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.
      int getSize()
      Returns size of this attachment in bytes.
      java.lang.String getType()
      Returns a string representing the type of this attachment.
      java.lang.String getUrl()
      Returns the URL for this attachment.
      • Methods inherited from class java.lang.Object

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

      • getType

        public java.lang.String getType()
        Returns a string representing the type of this attachment. Currently this should always be "chat.file".
      • 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 int getSize()
        Returns size of this attachment in bytes. For example, 1048576.
      • getUrl

        public java.lang.String getUrl()
        Returns the URL for this attachment.