pl.mn.communicator
Class IncomingMessage

java.lang.Object
  extended by pl.mn.communicator.AbstractMessage
      extended by pl.mn.communicator.IncomingMessage
All Implemented Interfaces:
IIncommingMessage, IMessage

public class IncomingMessage
extends AbstractMessage
implements IIncommingMessage

The class that represents message that is received from Gadu-Gadu server.

Created on 2004-11-21

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

Field Summary
 
Fields inherited from class pl.mn.communicator.AbstractMessage
m_messageBody, m_messageClass, m_messageID, m_recipientUin
 
Constructor Summary
IncomingMessage(int uin, java.lang.String messageBody, int messageID, long messageDate, int protocolMessageClass)
          Constructor for IncomingMessage.
 
Method Summary
 java.util.Date getMessageDate()
          Returns the time this message was sent.
 
Methods inherited from class pl.mn.communicator.AbstractMessage
getMessageBody, getMessageClass, getMessageID, getRecipientUin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pl.mn.communicator.IMessage
getMessageBody, getMessageClass, getMessageID, getRecipientUin
 

Constructor Detail

IncomingMessage

public IncomingMessage(int uin,
                       java.lang.String messageBody,
                       int messageID,
                       long messageDate,
                       int protocolMessageClass)
Constructor for IncomingMessage.

Parameters:
uin - Gadu-Gadu number of the user that sent the message.
messageBody - the body of the message.
Throws:
java.lang.IllegalArgumentException - if the uin or messageID or messageDate is a negative value.
java.lang.NullPointerException - if the messageBody is null.
Method Detail

getMessageDate

public java.util.Date getMessageDate()
Returns the time this message was sent.

Specified by:
getMessageDate in interface IIncommingMessage
Returns:
Date the time this message was sent.


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