Package zendesk.chat.client
Class ChatLog
- java.lang.Object
-
- zendesk.chat.client.ChatLog
-
public class ChatLog extends java.lang.Object
Describes the event of a message in the chat.- See Also:
ChatState.getChatLogs().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
ChatLog.Type
Defines the type of a chat log.static class
ChatLog.UserRole
Describes the role of the user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
Attachment
getAttachment()
Returns an attachment if this chat log describes a message with an attachment ornull
if it does not.DeliveryStatus
getDeliveryStatus()
Returns the delivery status of this chat log.java.lang.String
getDisplayName()
Returns the display name of the user who sent this chat log.java.lang.String
getId()
Returns the identifier of this chat log.java.lang.String
getMessage()
Returns the text of the message if this chat log describes a message ornull
if it does not.long
getTimestamp()
Returns the timestamp at which this chat log was last updated, in ms.ChatLog.Type
getType()
Returns the type of this chat log.java.lang.String
getUserId()
Returns the identifier of the user who sent this chat log.ChatLog.UserRole
getUserRole()
Returns the role of the user who sent this chat log.int
hashCode()
-
-
-
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 correspondingAgent
object 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 ornull
if it does not.- See Also:
ChatLog.getType()
-
getAttachment
public Attachment getAttachment()
Returns an attachment if this chat log describes a message with an attachment ornull
if 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-