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
71
72
73
74
75
76
77
78
79
| 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
| }
|
|
| }
|
|