Package edu.pdx.cs410J.net
Class ChatMessage
java.lang.Object
edu.pdx.cs410J.net.ChatMessage
- All Implemented Interfaces:
Serializable
This class represents a message that is passed between two
ChatSession
s.- See Also:
-
Constructor Summary
ConstructorDescriptionChatMessage
(String sender, String text) Creates a newChatMessage
with the current time. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this is the last message senttoString()
Returns a textual representation of thisChatMessage
that is suitable for displaying in aChatSession
.
-
Constructor Details
-
ChatMessage
Creates a newChatMessage
with the current time.
-
-
Method Details