org.eclipse.ecf.protocol.msn.events
Interface IChatSessionListener

All Superinterfaces:
java.util.EventListener

public interface IChatSessionListener
extends java.util.EventListener

The IChatSessionListener monitors the events that are occurring within a ChatSession.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Method Summary
 void contactIsTyping(Contact contact)
          This method is called when a contact begins typing.
 void contactJoined(Contact contact)
          This method is called when a contact joins the session.
 void contactLeft(Contact contact)
          This method is called when a contact leaves the session.
 void messageReceived(Contact contact, java.lang.String message)
          This method is called when a message has been received from a contact.
 void sessionTimedOut()
          This method is called when the session has timed out.
 

Method Detail

contactJoined

void contactJoined(Contact contact)
This method is called when a contact joins the session.

Parameters:
contact - the contact that has joined

contactLeft

void contactLeft(Contact contact)
This method is called when a contact leaves the session.

Parameters:
contact - the contact that has left

contactIsTyping

void contactIsTyping(Contact contact)
This method is called when a contact begins typing.

Parameters:
contact - the contact that is currently typing

messageReceived

void messageReceived(Contact contact,
                     java.lang.String message)
This method is called when a message has been received from a contact.

Parameters:
contact - the contact that has sent out a message
message - the message that has been sent

sessionTimedOut

void sessionTimedOut()
This method is called when the session has timed out.