Smack

org.jivesoftware.smackx.workgroup.agent
Interface OfferListener


public interface OfferListener

An interface which all classes interested in hearing about chat offers associated to a particular AgentSession instance should implement.

Author:
Matt Tucker, loki der quaeler
See Also:
AgentSession

Method Summary
 void offerReceived(Offer request)
          The implementing class instance will be notified via this when the AgentSession has received an offer for a chat.
 void offerRevoked(RevokedOffer revokedOffer)
          The implementing class instance will be notified via this when the AgentSessino has received a revocation of a previously extended offer.
 

Method Detail

offerReceived

void offerReceived(Offer request)
The implementing class instance will be notified via this when the AgentSession has received an offer for a chat. The instance will then have the ability to accept, reject, or ignore the request (resulting in a revocation-by-timeout).

Parameters:
request - the Offer instance embodying the details of the offer

offerRevoked

void offerRevoked(RevokedOffer revokedOffer)
The implementing class instance will be notified via this when the AgentSessino has received a revocation of a previously extended offer.

Parameters:
revokedOffer - the RevokedOffer instance embodying the details of the revoked offer

Smack

Copyright © 2003-2007 Jive Software.