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
| package cn.flightfeather.supervision.socket;
|
| public class WebSocketMessage {
| /*
| * 消息类型
| * */
| private int type;
|
| /*
| * 消息内容
| * */
| private Object content;
|
| public WebSocketMessage() {
| }
|
| public WebSocketMessage(int type, Object content) {
| this.type = type;
| this.content = content;
| }
|
| public int getType() {
| return type;
| }
|
| public void setType(int type) {
| this.type = type;
| }
|
| public Object getContent() {
| return content;
| }
|
| public void setContent(Object content) {
| this.content = content;
| }
| }
|
|