com.threerings.crowd.chat.server
Class ChatHistory.Entry

java.lang.Object
  extended by com.threerings.crowd.chat.server.ChatHistory.Entry
All Implemented Interfaces:
Streamable
Enclosing class:
ChatHistory

public static class ChatHistory.Entry
extends Object
implements Streamable

Recorded parcel of chat for historical purposes, maintained by ChatHistory.record(ChatChannel, UserMessage, Name...), ChatHistory.get(Name), and ChatHistory.clear(Name).


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 ChatChannel channel
          The channel on which the message was sent, of null if the channel manager was not used.
 ChatMessage message
          The message sent.
 
Constructor Summary
ChatHistory.Entry(ChatChannel channel, ChatMessage message)
           
 
Method Summary
 void readObject(ObjectInputStream in)
           
 void writeObject(ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

public final ChatChannel channel
The channel on which the message was sent, of null if the channel manager was not used.


message

public final ChatMessage message
The message sent.

Constructor Detail

ChatHistory.Entry

public ChatHistory.Entry(ChatChannel channel,
                         ChatMessage message)
Method Detail

writeObject

public void writeObject(ObjectOutputStream out)
                 throws IOException
Throws:
IOException

readObject

public void readObject(ObjectInputStream in)
                throws IOException,
                       ClassNotFoundException
Throws:
IOException
ClassNotFoundException