package org.svnadmin.common.entity; import java.io.Serializable; import java.util.HashMap; import java.util.Map; public class PushMsg implements Serializable { private Object info;// 主信息 private Boolean status;// 状态 private String code;//CODE状态 private int arg1;//附加值 private Map<String, Object> attr = new HashMap<String, Object>(); public PushMsg() {} public PushMsg(Boolean status) { this.status = status; } public PushMsg(String info, Boolean status) { this.info = info; this.status = status; } public PushMsg(Object info, Boolean status) { this.info = info; this.status = status; } public PushMsg(String info, String code) { this.info = info; this.code = code; } public PushMsg(String info, Boolean status, String code) { this.info = info; this.status = status; this.code = code; } public PushMsg(Object info, String code) { this.info = info; this.code = code; } public PushMsg(Object info,Boolean status,Object... entrys){ this.arg1 = 0; this.info = info; this.status = status; for (int i = 0; i < entrys.length; i+=2) { this.getAttr().put(String.valueOf(entrys[i]), entrys[i+1]); } } public Object getInfo() { return info; } public void setInfo(Object info) { this.info = info; } public Boolean getStatus() { return status; } public void setStatus(Boolean status) { this.status = status; } public int getArg1() { return arg1; } public void setArg1(int arg1) { this.arg1 = arg1; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } /** * 加入反馈属性 * @return */ public Map<String, Object> getAttr() { return attr; } public void setAttr(Map<String, Object> attr) { this.attr = attr; } /** * 得到消息对象 * @param info * @param status * @return */ public static PushMsg getPushMsg(String info, Boolean status) { PushMsg msg = new PushMsg(); msg.setInfo(info); msg.setStatus(status); return msg; } }
最近下载更多
微信网友_6829521472425984 LV5
1月20日
cgfeng12345 LV10
2022年5月17日
Isadmin_111 LV1
2022年4月30日
zlj04927834 LV1
2021年10月18日
牛牪犇逼class LV4
2021年9月2日
hj960511 LV2
2021年8月15日
romanticism LV3
2021年7月15日
zllianzhou LV1
2021年6月6日
jinyinping LV1
2020年9月24日
agooder LV1
2020年8月12日
最近浏览更多
微信网友_6956978011000832 LV2
4月22日
jinling2024 LV3
2月4日
微信网友_6829521472425984 LV5
1月20日
aachl1 LV5
1月16日
WBelong LV7
2023年12月25日
uni-code_0123 LV1
2023年11月29日
走刀口 LV4
2023年11月26日
马宇轩 LV1
2023年11月14日
edpwyg LV14
2023年10月22日
2036495585 LV9
2023年9月25日