DirectiveData.java
2.11 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.bsth.vehicle.directive.entity;
import javax.persistence.Embeddable;
@Embeddable
public class DirectiveData {
// 公司代码
private short companyCode;
// 设备号
private String deviceId;
// 时间戳
private Long timestamp;
// 保留 默认0
private short instructType = 0;
/*
* 调度指令 调度指令。 0X00表示信息短语 0X01表示取消上次指令+调度指令(闹钟有效) 0x02表示为调度指令(闹钟有效)
* 0x03表示运营状态指令(闹钟无效) 0x04表示其他指令
*/
private DispatchInstruct dispatchInstruct;
// 唯一标识
private Long msgId;
// 闹钟
private Long alarmTime;
// 多个运营状态字节
private Long serviceState;
// 消息文本
private String txtContent;
public short getCompanyCode() {
return companyCode;
}
public void setCompanyCode(short companyCode) {
this.companyCode = companyCode;
}
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public Long getTimestamp() {
return timestamp;
}
public void setTimestamp(Long timestamp) {
this.timestamp = timestamp;
}
public short getInstructType() {
return instructType;
}
public void setInstructType(short instructType) {
this.instructType = instructType;
}
public DispatchInstruct getDispatchInstruct() {
return dispatchInstruct;
}
public void setDispatchInstruct(DispatchInstruct dispatchInstruct) {
this.dispatchInstruct = dispatchInstruct;
}
public Long getMsgId() {
return msgId;
}
public void setMsgId(Long msgId) {
this.msgId = msgId;
}
public Long getAlarmTime() {
return alarmTime;
}
public void setAlarmTime(Long alarmTime) {
this.alarmTime = alarmTime;
}
public Long getServiceState() {
return serviceState;
}
public void setServiceState(Long serviceState) {
this.serviceState = serviceState;
}
public String getTxtContent() {
return txtContent;
}
public void setTxtContent(String txtContent) {
this.txtContent = txtContent;
}
}