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;
|
}
|
}
|