Class AgentStatus.ChatInfo

  • Enclosing class:
    AgentStatus

    public static class AgentStatus.ChatInfo
    extends java.lang.Object
    Represents information about a Chat where this Agent is participating.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatInfo​(java.lang.String sessionID, java.lang.String userID, java.util.Date date, java.lang.String email, java.lang.String username, java.lang.String question)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getDate()
      Returns the date when this agent joined the chat.
      java.lang.String getEmail()
      Returns the email address associated with the user.
      java.lang.String getQuestion()
      Returns the question the user asked.
      java.lang.String getSessionID()
      Returns the sessionID associated to this chat.
      java.lang.String getUserID()
      Returns the user unique identification of the user that made the initial request and for which this chat was generated.
      java.lang.String getUsername()
      Returns the username(nickname) associated with the user.
      java.lang.String toXML()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChatInfo

        public ChatInfo​(java.lang.String sessionID,
                        java.lang.String userID,
                        java.util.Date date,
                        java.lang.String email,
                        java.lang.String username,
                        java.lang.String question)
    • Method Detail

      • getSessionID

        public java.lang.String getSessionID()
        Returns the sessionID associated to this chat. Each chat will have a unique sessionID that could be used for retrieving the whole transcript of the conversation.
        Returns:
        the sessionID associated to this chat.
      • getUserID

        public java.lang.String getUserID()
        Returns the user unique identification of the user that made the initial request and for which this chat was generated. If the user joined using an anonymous connection then the userID will be the value of the ID attribute of the USER element. Otherwise, the userID will be the bare JID of the user that made the request.
        Returns:
        the user unique identification of the user that made the initial request.
      • getDate

        public java.util.Date getDate()
        Returns the date when this agent joined the chat.
        Returns:
        the date when this agent joined the chat.
      • getEmail

        public java.lang.String getEmail()
        Returns the email address associated with the user.
        Returns:
        the email address associated with the user.
      • getUsername

        public java.lang.String getUsername()
        Returns the username(nickname) associated with the user.
        Returns:
        the username associated with the user.
      • getQuestion

        public java.lang.String getQuestion()
        Returns the question the user asked.
        Returns:
        the question the user asked, if any.
      • toXML

        public java.lang.String toXML()