pl.mn.communicator
Class SingleChat

java.lang.Object
  extended by pl.mn.communicator.AbstractChat
      extended by pl.mn.communicator.SingleChat
All Implemented Interfaces:
IChat, ISingleChat

public class SingleChat
extends AbstractChat
implements ISingleChat

Created on 2005-01-29

Version:
$Id: SingleChat.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Field Summary
 
Fields inherited from class pl.mn.communicator.AbstractChat
m_listeners, m_session
 
Constructor Summary
SingleChat(Session session, int recipientUin)
           
 
Method Summary
protected  boolean acceptsIncoming(IIncommingMessage incomingMessage)
           
protected  boolean acceptsOutgoing(int uin, int messageID, MessageStatus deliveryStatus)
           
 int getRecipientUin()
           
 IChat sendMessage(java.lang.String messageBody)
           
 void setRecipientUin(int recipientUin)
           
 
Methods inherited from class pl.mn.communicator.AbstractChat
addChatListener, fireChatMessageArrived, fireChatMessageDelivered, removeChatListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.mn.communicator.IChat
addChatListener, removeChatListener
 

Constructor Detail

SingleChat

SingleChat(Session session,
           int recipientUin)
Method Detail

sendMessage

public IChat sendMessage(java.lang.String messageBody)
                  throws GGException
Specified by:
sendMessage in interface IChat
Throws:
GGException

getRecipientUin

public int getRecipientUin()
Specified by:
getRecipientUin in interface ISingleChat
See Also:
ISingleChat.getRecipientUin()

setRecipientUin

public void setRecipientUin(int recipientUin)
Specified by:
setRecipientUin in interface ISingleChat

acceptsIncoming

protected boolean acceptsIncoming(IIncommingMessage incomingMessage)
Specified by:
acceptsIncoming in class AbstractChat
See Also:
pl.mn.communicator.AbstractChat#acceptsIncoming(pl.mn.communicator.IncomingMessage)

acceptsOutgoing

protected boolean acceptsOutgoing(int uin,
                                  int messageID,
                                  MessageStatus deliveryStatus)
Specified by:
acceptsOutgoing in class AbstractChat
See Also:
AbstractChat.acceptsOutgoing(int, int, pl.mn.communicator.MessageStatus)


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.