Class MediaMessage


  • public class MediaMessage
    extends BaseMessage
    Created by adityagokula on 11/09/18.
    • Constructor Detail

      • MediaMessage

        public MediaMessage​(java.lang.String receiverUid,
                            java.io.File file,
                            java.lang.String messageType,
                            java.lang.String receiverType)
    • Method Detail

      • getFile

        public java.io.File getFile()
        Get file object of media file shared
        Returns:
        An file object of the media file shared
        Since:
        v1
      • setFile

        public void setFile​(java.io.File file)
      • getCaption

        public java.lang.String getCaption()
        Get caption set by developer
        Returns:
        caption set by developer for media file
        Since:
        v1
      • setCaption

        public void setCaption​(java.lang.String caption)
      • getAttachment

        public Attachment getAttachment()
        Get object of the Attachment class with file details
        Returns:
        An object of the Attachment class
        Since:
        v1
        See Also:
        Attachment
      • setAttachment

        public void setAttachment​(Attachment attachment)
      • getTags

        public java.util.List<java.lang.String> getTags()
        Returns the list of tags that the message has been tagged with.
        Returns:
        List that holds the tags with which the message was tagged with.
        Since:
        v3
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • toMap

        public java.util.HashMap<java.lang.String,​java.lang.String> toMap()
      • fromJson

        public static MediaMessage fromJson​(JSONObject jsonObject)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class BaseMessage