|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMessageService
The client should use this interface if it is interested in sending message to Gadu-Gadu server or if it wants to be interested in message related events.
Created on 2004-11-27
| Method Summary | |
|---|---|
void |
addMessageListener(MessageListener messageListener)
Adds MessageListener object to the list
that will be notified of message related events. |
IGroupChat |
createGroupChat()
|
IGroupChat |
createGroupChat(int[] recipientUins)
|
ISingleChat |
createSingleChat(int recipientUin)
Create chat with some Gadu-Gadu user. |
void |
removeMessageListener(MessageListener messageListener)
Remove MessageListener from the list that
will be notified of message related events. |
void |
sendMessage(IOutgoingMessage outgoingMessage)
Invocation of this method sends the message to the Gadu-Gadu server. |
| Method Detail |
|---|
void sendMessage(IOutgoingMessage outgoingMessage)
throws GGException
outgoingMessage - the message that will be sent to the server.
GGException - if there is an error while sending message to server.
GGSessionException - if user is not logged in.
java.lang.NullPointerException - if the outgoingMessage is null.ISingleChat createSingleChat(int recipientUin)
recipientUin - the Gadu-Gadu number of the user one wants to chat with
IGroupChat createGroupChat()
IGroupChat createGroupChat(int[] recipientUins)
void addMessageListener(MessageListener messageListener)
MessageListener object to the list
that will be notified of message related events.
messageListener - the MessageListener instance to be notified.
java.lang.NullPointerException - if the messageListener is null.MessageListenervoid removeMessageListener(MessageListener messageListener)
MessageListener from the list that
will be notified of message related events.
messageListener - the MessageListener instance that will no longer be notified.
java.lang.NullPointerException - if the messageListener is null.MessageListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||