public class AgentWorkgroups
extends org.jivesoftware.smack.packet.IQ
Modifier and Type | Class and Description |
---|---|
static class |
AgentWorkgroups.Provider
An IQProvider for AgentWorkgroups packets.
|
Constructor and Description |
---|
AgentWorkgroups(java.lang.String agentJID)
Creates an AgentWorkgroups request for the given agent.
|
AgentWorkgroups(java.lang.String agentJID,
java.util.List<java.lang.String> workgroups)
Creates an AgentWorkgroups which will contain the JIDs of the workgroups where an agent can
work.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentJID() |
java.lang.String |
getChildElementXML() |
java.util.List<java.lang.String> |
getWorkgroups()
Returns a list of workgroup JIDs where the agent can work.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public AgentWorkgroups(java.lang.String agentJID)
agentJID
- the id of the agent to get his workgroups.public AgentWorkgroups(java.lang.String agentJID, java.util.List<java.lang.String> workgroups)
agentJID
- the id of the agent that can work in the list of workgroups.workgroups
- the list of workgroup JIDs where the agent can work.public java.lang.String getAgentJID()
public java.util.List<java.lang.String> getWorkgroups()
public java.lang.String getChildElementXML()
getChildElementXML
in class org.jivesoftware.smack.packet.IQ