Smack

org.jivesoftware.smackx.workgroup.packet
Class AgentStatus.ChatInfo

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.packet.AgentStatus.ChatInfo
Enclosing class:
AgentStatus

public static class AgentStatus.ChatInfo
extends Object

Represents information about a Chat where this Agent is participating.

Author:
Gaston Dombiak

Constructor Summary
AgentStatus.ChatInfo(String sessionID, String userID, Date date, String email, String username, String question)
           
 
Method Summary
 Date getDate()
          Returns the date when this agent joined the chat.
 String getEmail()
          Returns the email address associated with the user.
 String getQuestion()
          Returns the question the user asked.
 String getSessionID()
          Returns the sessionID associated to this chat.
 String getUserID()
          Returns the user unique identification of the user that made the initial request and for which this chat was generated.
 String getUsername()
          Returns the username(nickname) associated with the user.
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentStatus.ChatInfo

public AgentStatus.ChatInfo(String sessionID,
                            String userID,
                            Date date,
                            String email,
                            String username,
                            String question)
Method Detail

getSessionID

public 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 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 Date getDate()
Returns the date when this agent joined the chat.

Returns:
the date when this agent joined the chat.

getEmail

public String getEmail()
Returns the email address associated with the user.

Returns:
the email address associated with the user.

getUsername

public String getUsername()
Returns the username(nickname) associated with the user.

Returns:
the username associated with the user.

getQuestion

public String getQuestion()
Returns the question the user asked.

Returns:
the question the user asked, if any.

toXML

public String toXML()

Smack

Copyright © 2003-2007 Jive Software.