edu.pdx.cs399J.net
Class ChatMessage

java.lang.Object
  extended by edu.pdx.cs399J.net.ChatMessage
All Implemented Interfaces:
Serializable

public class ChatMessage
extends Object
implements Serializable

This class represents a message that is passed between two ChatSessions.

See Also:
Serialized Form

Constructor Summary
ChatMessage(String sender, String text)
          Creates a new ChatMessage with the current time.
 
Method Summary
 boolean isLastMessage()
          Returns true if this is the last message sent
 String toString()
          Returns a textual representation of this ChatMessage that is suitable for displaying in a ChatSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatMessage

public ChatMessage(String sender,
                   String text)
Creates a new ChatMessage with the current time.

Method Detail

isLastMessage

public boolean isLastMessage()
Returns true if this is the last message sent


toString

public String toString()
Returns a textual representation of this ChatMessage that is suitable for displaying in a ChatSession.

Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.