Class AgentStatus
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.packet.AgentStatus
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
public class AgentStatus extends java.lang.Object implements org.jivesoftware.smack.packet.ExtensionElementAgent status packet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgentStatus.ChatInfoRepresents information about a Chat where this Agent is participating.static classAgentStatus.ProviderStanza extension provider for AgentStatus packets.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT_NAMEElement name of the stanza extension.static java.lang.StringNAMESPACENamespace of the stanza extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AgentStatus.ChatInfo>getCurrentChats()Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.java.lang.StringgetElementName()intgetMaxChats()java.lang.StringgetNamespace()org.jxmpp.jid.EntityBareJidgetWorkgroupJID()java.lang.StringtoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
Element name of the stanza extension.- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
Namespace of the stanza extension.- See Also:
- Constant Field Values
-
-
Method Detail
-
getWorkgroupJID
public org.jxmpp.jid.EntityBareJid getWorkgroupJID()
-
getCurrentChats
public java.util.List<AgentStatus.ChatInfo> getCurrentChats()
Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.- Returns:
- a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.
-
getMaxChats
public int getMaxChats()
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.FullyQualifiedElement
-
toXML
public java.lang.String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
-