|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smackx.workgroup.agent.Offer
public class Offer
A class embodying the semantic agent chat offer; specific instances allow
the acceptance or rejecting of the offer.
Constructor Summary | |
---|---|
Offer(XMPPConnection conn,
WorkgroupSession workgroupSession,
String userID,
String workgroupName,
Date expiresDate,
String sessionID,
Map metaData)
Creates a new offer. |
Method Summary | |
---|---|
void |
accept()
Accepts the offer. |
Date |
getExpiresDate()
The date when this offer will expire. |
Map |
getMetaData()
Returns the meta-data associated with this offer. |
String |
getSessionID()
The session ID associated with this offer. |
String |
getUserID()
Returns the XMPP address of the user from which the offer originates (eg jsmith@example.com/WebClient). |
String |
getWorkgroupName()
The fully qualified name of the workgroup (eg support@example.com) that this offer is from. |
void |
reject()
Rejects the offer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Offer(XMPPConnection conn, WorkgroupSession workgroupSession, String userID, String workgroupName, Date expiresDate, String sessionID, Map metaData)
conn
- the XMPP connection with which the issuing session was created.workgroupSession
- the agent session instance through which this offer was issued.userID
- the XMPP address of the user from which the offer originates.workgroupName
- the fully qualified name of the workgroup.expiresDate
- the date at which this offer expires.sessionID
- the session id associated with the offer.metaData
- the metadata associated with the offer.Method Detail |
---|
public void accept()
public void reject()
public String getUserID()
public String getWorkgroupName()
public Date getExpiresDate()
accept()
the offer before the expiration date or the offer will lapse and be
routed to another agent. Alternatively, the agent can reject()
the offer at any time if they don't wish to accept it..
public String getSessionID()
public Map getMetaData()
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |