wtanaka.praya.msn
Class MsnMessage

java.lang.Object
  |
  +--wtanaka.praya.obj.Obj
        |
        +--wtanaka.praya.obj.Message
              |
              +--wtanaka.praya.msn.MsnMessage
All Implemented Interfaces:
java.io.Serializable

public class MsnMessage
extends Message
implements java.io.Serializable

Represents one instant message for MSN messenger.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2002/01/13 10:39:39 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Field Summary
private  SessionConnection connection
           
private  Message message
           
 
Fields inherited from class wtanaka.praya.obj.Message
generatedBy, score
 
Fields inherited from class wtanaka.praya.obj.Obj
CONTENTS, date, DATE, FROM, privThread, REVCONTENTS, REVDATE, REVFROM, REVSCORE, REVSUBJECT, SCORE, secretObject, SUBJECT
 
Constructor Summary
MsnMessage(Protocol parent, SessionConnection connection, Message message)
           
 
Method Summary
 java.lang.String getContents()
           
 java.lang.String getFrom()
           
 int getScore()
           
 java.lang.String getSubject()
           
 Recipient replyRecipient()
          Gets the recipient to whom replies to this message will be sent, if applicable.
 
Methods inherited from class wtanaka.praya.obj.Message
changeScore, convertStringToHtml, getSourceProtocol, isSelfMessage, isStateChangeMessage, lessThan, renderAsHTML, renderAsHTML, renderAsString, setZombie, toString
 
Methods inherited from class wtanaka.praya.obj.Obj
getTimeStamp, isPrivileged, setPrivilegedThread, setSecretObject, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

connection

private SessionConnection connection

message

private Message message
Constructor Detail

MsnMessage

public MsnMessage(Protocol parent,
                  SessionConnection connection,
                  Message message)
Method Detail

replyRecipient

public Recipient replyRecipient()
Description copied from class: Message
Gets the recipient to whom replies to this message will be sent, if applicable.
Overrides:
replyRecipient in class Message
Following copied from class: wtanaka.praya.obj.Message
Returns:
the recipient object for replies to this message. If there is no relevant recipient (e.g. this a logout message) returns null.

getSubject

public java.lang.String getSubject()
Overrides:
getSubject in class Obj

getFrom

public java.lang.String getFrom()
Overrides:
getFrom in class Obj

getContents

public java.lang.String getContents()
Overrides:
getContents in class Obj

getScore

public int getScore()
Overrides:
getScore in class Message