Class CustomMessage


  • public class CustomMessage
    extends BaseMessage
    Created by adityagokula on 12/03/19.
    • Constructor Detail

      • CustomMessage

        public CustomMessage​(java.lang.String receiverUid,
                             java.lang.String receiverType,
                             java.lang.String customType,
                             JSONObject customData)
    • Method Detail

      • getSubType

        public java.lang.String getSubType()
      • setSubType

        public void setSubType​(java.lang.String subType)
      • getCustomData

        public JSONObject getCustomData()
        GetJSONObject of the custom
        Returns:
        JSONObject of the custom data set by developer
        Since:
        v1
      • setCustomData

        public void setCustomData​(JSONObject customData)
      • 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 CustomMessage fromJson​(JSONObject jsonObject)
      • equals

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