Class ChatState



  • public class ChatState
    extends java.lang.Object
    Represents the current state of the chat.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int NO_QUEUE_POSITION
      Value 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
      java.util.List<Agent> getAgents()
      Returns list of agents in the chat.
      java.util.List<ChatLog> getChatLogs()
      Returns the chat logs for this chat.
      int getQueuePosition()
      Returns the queue position of the visitor.
      boolean isChatting()
      Returns true if visitor sent or received a message, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • isChatting

        public boolean isChatting()
        Returns true if visitor sent or received a message, false otherwise.