Modifier and Type | Method and Description |
---|---|
void |
accept()
Accepts the offer.
|
OfferContent |
getContent()
Returns the content of the offer.
|
Date |
getExpiresDate()
The date when the offer will expire.
|
Map<String,List<String>> |
getMetaData()
The meta-data associated with the offer.
|
String |
getSessionID()
The session ID associated with the offer.
|
String |
getUserID()
Returns the userID that the offer originates from.
|
String |
getUserJID()
Returns the JID of the user that made the offer request.
|
String |
getWorkgroupName()
The fully qualified name of the workgroup (eg support@example.com).
|
boolean |
isAccepted()
Returns true if the agent accepted this offer.
|
boolean |
isRejected()
Return true if the agent rejected this offer.
|
void |
reject()
Rejects the offer.
|
public void accept() throws SmackException.NotConnectedException
public void reject() throws SmackException.NotConnectedException
public String getUserID()
public String getUserJID()
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<String,List<String>> getMetaData()
public OfferContent getContent()
public boolean isAccepted()
public boolean isRejected()