pawn.services.chat
Interface ChatListener

All Known Implementing Classes:
ChatHandler

public interface ChatListener

An interface to encapsulate an object that listens for notification from the ChatService of newly arrived requests for a chat session, and responses to requests for a chat session.


Method Summary
 void chatApproved(pawn.messages.InitiateChatResponseMessage response)
          Notify the listener that a chat session has been approved.
 void chatRequested(pawn.messages.InitiateChatRequestMessage request, int queryID)
          Notify the listener that a chat session has been requested.
 

Method Detail

chatApproved

public void chatApproved(pawn.messages.InitiateChatResponseMessage response)
Notify the listener that a chat session has been approved.

Parameters:
response - the response to the request for a chat session.

chatRequested

public void chatRequested(pawn.messages.InitiateChatRequestMessage request,
                          int queryID)
Notify the listener that a chat session has been requested.

Parameters:
request - the object containing the chat session request info.
queryID - the query ID from the Resolver Query Message used to send the request.