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
| package com.sandu.ximon.dao.enums;
|
| /**
| * 下发状态响应枚举类
| *
| * @author chenjiantian
| */
| public enum DeviceRespStatusEnums {
|
| /**
| * SUCCESS
| */
| SUCCESS(0),
| /**
| * CRC_ERROR
| */
| CRC_ERROR(1),
| /**
| * LENGTH_ERROR
| */
| LENGTH_ERROR(2),
| /**
| * FLASH_ERROR
| */
| FLASH_ERROR(3),
| /**
| * OTHER_ERROR
| */
| OTHER_ERROR(255),
| ;
|
| private final Integer code;
|
| DeviceRespStatusEnums(Integer code) {
| this.code = code;
| }
|
|
| public Integer getCode() {
| return code;
| }
|
|
| }
|
|