Class ChatLog.Comment

  • Enclosing class:
    ChatLog


    public static class ChatLog.Comment
    extends ChatLog
    Chat log with an additional fields for the previous and new chat comment.

    This log is generated each time the visitor has successfully commented his or her chat experience.

    The ChatLog.Comment can be used to determine chat comment history given by the visitor though the duration of the chat.

    
     val commentHistory = chatState.filterIsInstance<ChatLog.Comment>().map { it.newChatComment}
     
    • Method Detail

      • getChatComment

        public java.lang.String getChatComment()
        Gets the previous chat comment.
        Returns:
        The previous chat comment or null if chat commented for the first time.
      • getNewChatComment

        public java.lang.String getNewChatComment()
        Gets the new chat comment.
        Returns:
        The new chat comment.
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class ChatLog