01: /*
02: @COPYRIGHT@
03: */
04: package demo.chatter;
05:
06: class Message {
07: private String message;
08: private User user;
09:
10: public Message(User user, String message) {
11: this .user = user;
12: this .message = message;
13: }
14:
15: public String getMessage() {
16: return message;
17: }
18:
19: public User getUser() {
20: return user;
21: }
22: }
|