Class AgentStatus
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.packet.AgentStatus
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class AgentStatus extends Object implements ExtensionElement
Agent status packet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AgentStatus.ChatInfo
Represents information about a Chat where this Agent is participating.static class
AgentStatus.Provider
Stanza extension provider for AgentStatus packets.
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT_NAME
Element name of the stanza extension.static String
NAMESPACE
Namespace of the stanza extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AgentStatus.ChatInfo>
getCurrentChats()
Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.String
getElementName()
Returns the root element name.int
getMaxChats()
String
getNamespace()
Returns the root element XML namespace.EntityBareJid
getWorkgroupJID()
String
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT_NAME
public static final String ELEMENT_NAME
Element name of the stanza extension.- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
Namespace of the stanza extension.- See Also:
- Constant Field Values
-
-
Method Detail
-
getWorkgroupJID
public EntityBareJid getWorkgroupJID()
-
getCurrentChats
public 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 String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public String toXML(XmlEnvironment enclosingNamespace)
-
-