org.eclipse.ecf.presence.im
Interface IChatMessageSender


public interface IChatMessageSender

Chat message sender.


Method Summary
 void sendChatMessage(ID toID, ID threadID, IChatMessage.Type type, java.lang.String subject, java.lang.String body, java.util.Map properties)
          Send chat message to given ID.
 void sendChatMessage(ID toID, java.lang.String body)
          Send chat message to given ID.
 

Method Detail

sendChatMessage

void sendChatMessage(ID toID,
                     ID threadID,
                     IChatMessage.Type type,
                     java.lang.String subject,
                     java.lang.String body,
                     java.util.Map properties)
                     throws ECFException
Send chat message to given ID.

Parameters:
toID - the target receiver to receive the chat message. Must not be null.
threadID - the threadID for the message. May be null.
type - the IChatMessage.Type of the message. May not be null.
subject - the subject of the message. May be null.
body - the body of the message to send. May be null.
properties - properties associated with message. May be null.
Throws:
ECFException - thrown if toID is null, or currently disconnected

sendChatMessage

void sendChatMessage(ID toID,
                     java.lang.String body)
                     throws ECFException
Send chat message to given ID.

Parameters:
toID - the target receiver to receive the chat message. Must not be null.
body - the body of the message to send. May be null.
Throws:
ECFException - thrown if toID is null, or currently disconnected