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() |
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf) |
java.util.List<java.lang.String> |
getWorkgroups()
Returns a list of workgroup JIDs where the agent can work.
|
createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, isRequestIQ, setType, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, overrideExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setStanzaId, 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()
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
getIQChildElementBuilder
in class org.jivesoftware.smack.packet.IQ