Smack

org.jivesoftware.smackx.workgroup.packet
Class OfferRequestProvider.OfferRequestPacket

java.lang.Object
  extended byorg.jivesoftware.smack.packet.Packet
      extended byorg.jivesoftware.smack.packet.IQ
          extended byorg.jivesoftware.smackx.workgroup.packet.OfferRequestProvider.OfferRequestPacket
Enclosing class:
OfferRequestProvider

public static class OfferRequestProvider.OfferRequestPacket
extends IQ


Nested Class Summary
 
Nested classes inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
 
Field Summary
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
 
Constructor Summary
OfferRequestProvider.OfferRequestPacket(String uid, int timeout, Map metaData, String sID)
           
 
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
 Map getMetaData()
           
 String getSessionID()
          Returns the session id which will be associated with the customer for whom this offer is extended, or null if the offer did not contain one.
 int getTimeout()
          Returns the number of seconds the agent has to accept the offer before it times out.
 String getUserID()
           
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferRequestProvider.OfferRequestPacket

public OfferRequestProvider.OfferRequestPacket(String uid,
                                               int timeout,
                                               Map metaData,
                                               String sID)
Method Detail

getUserID

public String getUserID()

getSessionID

public String getSessionID()
Returns the session id which will be associated with the customer for whom this offer is extended, or null if the offer did not contain one.

Returns:
the session id associated to the customer

getTimeout

public int getTimeout()
Returns the number of seconds the agent has to accept the offer before it times out.

Returns:
the offer timeout (in seconds).

getMetaData

public Map getMetaData()

getChildElementXML

public String getChildElementXML()
Description copied from class: IQ
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class IQ
Returns:
the child element section of the IQ XML.

Smack

Copyright © 2003 Jive Software.