-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessage.java
More file actions
40 lines (31 loc) · 810 Bytes
/
Message.java
File metadata and controls
40 lines (31 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class Message {
private String id;
private String message;
private String user;
public Message(String id, String message, String user) {
this.id = id;
this.message = message;
this.user = user;
}
public String getId() {
return this.id;
}
public void setId(String value) {
this.id = value;
}
public String getMessage() {
return this.message;
}
public void setMessage(String value) {
this.message = value;
}
public String getUser() {
return this.user;
}
public void setUser(String value) {
this.user = value;
}
public String toString() {
return "{\"id\":\"" + this.id + "\",\"message\":\"" + this.message + "\",\"user\":\"" + this.user + "\"}";
}
}