| java.lang.Object echo2example.chatserver.Message
Message | public class Message (Code) | | A representation of a single posted message.
|
Method Summary | |
public String | getContent() Returns the content of the message. | public long | getId() Returns the sequentially assigned message id. | public long | getPostTime() Returns the time the message was posted. | public String | getUserName() Returns the name of user who posted the message. |
Message | public Message(String userName, String content)(Code) | | Creates a new Message .
Parameters: userName - the name of the user posting the message Parameters: content - the content of the message |
getContent | public String getContent()(Code) | | Returns the content of the message.
the content |
getId | public long getId()(Code) | | Returns the sequentially assigned message id.
the message id |
getPostTime | public long getPostTime()(Code) | | Returns the time the message was posted.
the time |
getUserName | public String getUserName()(Code) | | Returns the name of user who posted the message.
the user name |
|
|