Message.java
765 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
41
42
43
44
package com.huaheng.mobilewms.websocket;
public class Message {
//消息类型
int type = 1;
//标题
String title;
//内容
String content;
//发生时间
long when = System.currentTimeMillis();
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public long getWhen() {
return when;
}
public void setWhen(long when) {
this.when = when;
}
}