Class Message

    • Method Detail

      • fromJson

        public static Message fromJson​(String json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Message object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Message object represented by the provided JSON
      • fromJson

        public static Message fromJson​(InputStream json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Message object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Message object represented by the provided JSON
      • getAccountSid

        public final String getAccountSid()
      • getConversationSid

        public final String getConversationSid()
      • getSid

        public final String getSid()
      • getIndex

        public final Integer getIndex()
      • getAuthor

        public final String getAuthor()
      • getBody

        public final String getBody()
      • getAttributes

        public final String getAttributes()
      • getParticipantSid

        public final String getParticipantSid()
      • getUrl

        public final URI getUrl()
      • getContentSid

        public final String getContentSid()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object