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
ChatSessions.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatMessage(String sender, String text) Creates a newChatMessagewith the current time. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this is the last message senttoString()Returns a textual representation of thisChatMessagethat is suitable for displaying in aChatSession.
-
Constructor Details
-
ChatMessage
Creates a newChatMessagewith the current time.
-
-
Method Details