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(org.jxmpp.jid.Jid agentJID)
Creates an AgentWorkgroups request for the given agent.
|
AgentWorkgroups(org.jxmpp.jid.Jid 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 |
---|---|
org.jxmpp.jid.Jid |
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, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getChildElementXML, getType, initializeAsResultFor, initialzeAsResultFor, isRequestIQ, setType, toString, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTo
public AgentWorkgroups(org.jxmpp.jid.Jid agentJID)
agentJID
- the id of the agent to get his workgroups.public AgentWorkgroups(org.jxmpp.jid.Jid 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 org.jxmpp.jid.Jid 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