package com.shlb.comb.event; /** */ public class UpdateEvent { private Type type; private Object obj; private String msg; private int arg1; public UpdateEvent(Type type) { this.type = type; } public UpdateEvent(Type type, Object obj) { this.obj = obj; this.type = type; } public UpdateEvent(Type type, Object obj, String msg) { this.obj = obj; this.type = type; this.msg = msg; } public UpdateEvent(Type type, int arg1) { this.type = type; this.arg1 = arg1; } public int getArg1() { return arg1; } public void setArg1(int arg1) { this.arg1 = arg1; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public Type getType() { return type; } public void setType(Type type) { this.type = type; } public Object getObj() { return obj; } public void setObj(Object obj) { this.obj = obj; } public static enum Type{ SCAN_UPDATE, BLE_DATA, POP_SHOW, TAB_SWITCH, CONFIG_CHANGE, CONN_STATU, CONN_SERVICE, ONLINE, OFFLINE, DEVICE_INFO } }