endian11
2019-12-30 ec8c6028d44e730885fd9a03994732baee260e94
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package safeluck.drive.evaluation.cEventCenter;
 
/**
 * 事件模型,需要传递的消息事件对象
 * MyApplication2
 * Created by lzw on 2019/12/30. 17:00:54
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class CEvent implements PooledObject {
 
    //主题
    private String topic;
 
    private int msgCode;//消息类型
 
    private int resultCode;//预留参数
 
    private Object obj;//回调返回数据
 
    public CEvent() {
    }
 
    public CEvent(String topic, int msgCode, int resultCode, Object obj) {
        this.topic = topic;
        this.msgCode = msgCode;
        this.resultCode = resultCode;
        this.obj = obj;
    }
 
    public String getTopic() {
        return topic;
    }
 
    public void setTopic(String topic) {
        this.topic = topic;
    }
 
    public int getMsgCode() {
        return msgCode;
    }
 
    public void setMsgCode(int msgCode) {
        this.msgCode = msgCode;
    }
 
    public int getResultCode() {
        return resultCode;
    }
 
    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }
 
    public Object getObj() {
        return obj;
    }
 
    public void setObj(Object obj) {
        this.obj = obj;
    }
 
    @Override
    public void reset() {
        this.obj = null;
        this.msgCode = 0;
        this.resultCode = 0;
        this.topic = null;
    }
}