Class Message


  • public class Message
    extends Object
    Message
    • Constructor Detail

      • Message

        public Message()
    • Method Detail

      • getCode

        public String getCode()
        The message code.
        Returns:
        code
      • setCode

        public void setCode​(String code)
      • getText

        public String getText()
        The message text.
        Returns:
        text
      • setText

        public void setText​(String text)
      • equals

        public boolean equals​(Object o)
        Return true if this Message object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Message fromJson​(String jsonString)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Message given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Message
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Message
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Message to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException