Created client-side message objects which are the only thing passed

to the newly simplified ChatDisplay interface, which now has but one method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1620 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-07-26 20:35:02 +00:00
parent ea5e5adbad
commit ef52f31ad4
9 changed files with 231 additions and 259 deletions
@@ -0,0 +1,30 @@
//
// $Id: ChatMessage.java,v 1.1 2002/07/26 20:35:01 ray Exp $
package com.threerings.crowd.chat;
/**
* The abstract base class of all the client-side ChatMessage objects.
*/
public abstract class ChatMessage
{
/** The actual text of the message. */
public String message;
/** The localtype of this chat, set to the type registered with an
* auxiliary source in the ChatDirector. */
public String localtype;
/** The time that this message was created on the client. */
public long timestamp;
/**
* Construct a ChatMessage.
*/
public ChatMessage (String message, String localtype)
{
this.message = message;
this.localtype = localtype;
timestamp = System.currentTimeMillis();
}
}