Package zendesk.chat.client
Class ChatLog.Rating
- java.lang.Object
-
- zendesk.chat.client.ChatLog
-
- zendesk.chat.client.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}
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class zendesk.chat.client.ChatLog
ChatLog.AttachmentMessage, ChatLog.Comment, ChatLog.Message, ChatLog.Rating, ChatLog.Type
-
-
Field Summary
-
Fields inherited from class zendesk.chat.client.ChatLog
TIMESTAMP_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
ChatRating
getChatRating()
Gets the previous chat rating.ChatRating
getNewChatRating()
Gets the new chat rating.int
hashCode()
-
Methods inherited from class zendesk.chat.client.ChatLog
getChatParticipant, getDeliveryStatus, getDisplayName, getId, getLastModifiedTimestamp, getNick, getType
-
-
-
-
Method Detail
-
getChatRating
public ChatRating getChatRating()
Gets the previous chat rating.- Returns:
- The previous
ChatLog.Rating
ornull
if chat rated for the first time.
-
getNewChatRating
public ChatRating getNewChatRating()
Gets the new chat rating.- Returns:
- The new
ChatLog.Rating
-
-