Class Message.Attachment

    • Method Detail

      • isImage

        public boolean isImage()
        returns if the attachment is a image
        Returns:
        true if the attachment is a image, false otherwise
      • isVideo

        public boolean isVideo()
        returns if the attachment is a video
        Returns:
        true if the attachment is a video, false otherwise
      • getName

        public String getName()
        The attachment's filename, for example 121423423.jpg.
        Returns:
        The attachment's filename.
      • setName

        public void setName​(String name)
        The attachment's filename, for example 121423423.jpg.
      • getMimeType

        public String getMimeType()
        The attachment's mime type, for example image/jpeg.
        Returns:
        The attachment's mime type.
      • setMimeType

        public void setMimeType​(String mimeType)
        The attachment's mime type, for example image/jpeg.
      • getSize

        public Long getSize()
        The size of the attachment in bytes.
        Returns:
        The size of the attachment in bytes.
      • setSize

        public void setSize​(Long size)
        The size of the attachment in bytes.
      • getImageData

        public Message.ImageData getImageData()
        When the attached file is an image, Facebook will also send information about it's width, height and url.
        Returns:
        The attachment's image data.
      • setImageData

        public void setImageData​(Message.ImageData imageData)
        When the attached file is an image, Facebook will also send information about it's width, height and url.
      • getVideoData

        public Message.VideoData getVideoData()
        When the attached file is a video, Facebook will also send information about it's width, height and url.
        Returns:
        The attachment's video data.
      • setVideoData

        public void setVideoData​(Message.VideoData videoData)
        When the attached file is a video, Facebook will also send information about it's width, height and url.