Package zendesk.chat.client
Class ChatLog.Comment
- java.lang.Object
-
- zendesk.chat.client.ChatLog
-
- zendesk.chat.client.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}
-
-
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)
java.lang.String
getChatComment()
Gets the previous chat comment.java.lang.String
getNewChatComment()
Gets the new chat comment.int
hashCode()
-
Methods inherited from class zendesk.chat.client.ChatLog
getChatParticipant, getDeliveryStatus, getDisplayName, getId, getLastModifiedTimestamp, getNick, getType
-
-
-
-
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.
-
-