Class ChatLog.Rating

  • Enclosing class:
    ChatLog


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

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

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

    
     val ratingHistory = chatState.filterIsInstance<ChatLog.Rating>().map { it.newChatRating}
     
    • Method Detail

      • getChatRating

        public ChatRating getChatRating()
        Gets the previous chat rating.
        Returns:
        The previous ChatLog.Rating or null if chat rated for the first time.
      • equals

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