|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.mn.communicator.DefaultMessageService
public class DefaultMessageService
Created on 2004-11-28
The default implementation of IMessageService.
| Constructor Summary | |
|---|---|
DefaultMessageService(Session session)
|
|
| 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[] uins)
|
ISingleChat |
createSingleChat(int uin)
Create chat with some Gadu-Gadu user. |
protected void |
notifyMessageArrived(IIncommingMessage incommingMessage)
|
protected void |
notifyMessageDelivered(int uin,
int messageID,
MessageStatus messageStatus)
|
protected void |
notifyMessageSent(IOutgoingMessage outgoingMessage)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DefaultMessageService(Session session)
| Method Detail |
|---|
public void sendMessage(IOutgoingMessage outgoingMessage)
throws GGException
IMessageService
sendMessage in interface IMessageServiceoutgoingMessage - 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.pl.mn.communicator.IMessageService#sendMessage(pl.mn.communicator.OutgoingMessage)public ISingleChat createSingleChat(int uin)
IMessageService
createSingleChat in interface IMessageServiceuin - the Gadu-Gadu number of the user one wants to chat with
IMessageService.createSingleChat(int)public IGroupChat createGroupChat()
createGroupChat in interface IMessageServiceIMessageService.createGroupChat()public IGroupChat createGroupChat(int[] uins)
createGroupChat in interface IMessageServiceIMessageService.createGroupChat(int[])public void addMessageListener(MessageListener messageListener)
IMessageServiceMessageListener object to the list
that will be notified of message related events.
addMessageListener in interface IMessageServicemessageListener - the MessageListener instance to be notified.IMessageService.addMessageListener(pl.mn.communicator.event.MessageListener)public void removeMessageListener(MessageListener messageListener)
IMessageServiceMessageListener from the list that
will be notified of message related events.
removeMessageListener in interface IMessageServicemessageListener - the MessageListener instance that will no longer be notified.IMessageService.removeMessageListener(pl.mn.communicator.event.MessageListener)protected void notifyMessageSent(IOutgoingMessage outgoingMessage)
protected void notifyMessageArrived(IIncommingMessage incommingMessage)
protected void notifyMessageDelivered(int uin,
int messageID,
MessageStatus messageStatus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||