Package zendesk.chat.client
Class ChatLog
- java.lang.Object
-
- zendesk.chat.client.ChatLog
-
public class ChatLog extends java.lang.ObjectDescribes the event of a message in the chat.- See Also:
ChatState.getChatLogs().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classChatLog.TypeDefines the type of a chat log.static classChatLog.UserRoleDescribes the role of the user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)AttachmentgetAttachment()Returns an attachment if this chat log describes a message with an attachment ornullif it does not.DeliveryStatusgetDeliveryStatus()Returns the delivery status of this chat log.java.lang.StringgetDisplayName()Returns the display name of the user who sent this chat log.java.lang.StringgetId()Returns the identifier of this chat log.java.lang.StringgetMessage()Returns the text of the message if this chat log describes a message ornullif it does not.longgetTimestamp()Returns the timestamp at which this chat log was last updated, in ms.ChatLog.TypegetType()Returns the type of this chat log.java.lang.StringgetUserId()Returns the identifier of the user who sent this chat log.ChatLog.UserRolegetUserRole()Returns the role of the user who sent this chat log.inthashCode()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the identifier of this chat log.
-
getTimestamp
public long getTimestamp()
Returns the timestamp at which this chat log was last updated, in ms.
-
getType
public ChatLog.Type getType()
Returns the type of this chat log.- See Also:
ChatLog.Type
-
getUserId
public java.lang.String getUserId()
Returns the identifier of the user who sent this chat log.
If it's an agent, the correspondingAgentobject can be found by matching this id toAgent.getId().- See Also:
ChatLog.getUserRole(),ChatLog.UserRole,Agent.getId()
-
getUserRole
public ChatLog.UserRole getUserRole()
Returns the role of the user who sent this chat log.- See Also:
ChatLog.UserRole
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name of the user who sent this chat log.
-
getMessage
public java.lang.String getMessage()
Returns the text of the message if this chat log describes a message ornullif it does not.- See Also:
ChatLog.getType()
-
getAttachment
public Attachment getAttachment()
Returns an attachment if this chat log describes a message with an attachment ornullif it does not.- See Also:
ChatLog.getType()
-
getDeliveryStatus
public DeliveryStatus getDeliveryStatus()
Returns the delivery status of this chat log.- See Also:
DeliveryStatus
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-