Package zendesk.chat.client
Class ChatState
- java.lang.Object
 - 
- zendesk.chat.client.ChatState
 
 
- 
public class ChatState extends java.lang.ObjectRepresents the current state of the chat. 
- 
- 
Field Summary
Fields Modifier and Type Field and Description static intNO_QUEUE_POSITIONValue for position denoting that the visitor is not in the queue. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.util.List<Agent>getAgents()Returns list of agents in the chat.java.lang.StringgetChatComment()Returns the current comment about chat experience given by the visitor.java.util.List<ChatLog>getChatLogs()Returns the chat logs for this chat.ChatRatinggetChatRating()Returns the current chat rating given by the visitor.DepartmentgetDepartment()Returns the selected department for this chat, if one has been selected.intgetQueuePosition()Returns the queue position of the visitor.inthashCode()booleanisChatting()Returnstrueif visitor sent or received a message,falseotherwise.java.lang.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
NO_QUEUE_POSITION
public static final int NO_QUEUE_POSITION
Value for position denoting that the visitor is not in the queue.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getChatLogs
public java.util.List<ChatLog> getChatLogs()
Returns the chat logs for this chat.- See Also:
 ChatLog
 
- 
getAgents
public java.util.List<Agent> getAgents()
Returns list of agents in the chat.- See Also:
 Agent
 
- 
getQueuePosition
public int getQueuePosition()
Returns the queue position of the visitor.- See Also:
 ChatState.NO_QUEUE_POSITION
 
- 
isChatting
public boolean isChatting()
Returnstrueif visitor sent or received a message,falseotherwise. 
- 
getChatRating
public ChatRating getChatRating()
Returns the current chat rating given by the visitor.- Returns:
 ChatRatingornullif this chat has not been rated yet.
 
- 
getChatComment
public java.lang.String getChatComment()
Returns the current comment about chat experience given by the visitor.- Returns:
 - Comment about the chat or 
nullif this chat has not been commented yet. 
 
- 
getDepartment
public Department getDepartment()
Returns the selected department for this chat, if one has been selected.- Returns:
 - An instance of 
Departmentornullif department is not selected. 
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -