提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 开闸类型 |
|
7 |
* @date 2021/2/22 |
|
8 |
*/ |
|
9 |
public enum EM_OPEN_STROBE_TYPE { |
|
10 |
/** |
|
11 |
* 未知 |
|
12 |
*/ |
|
13 |
EM_OPEN_STROBE_TYPE_UNKNOWN, |
|
14 |
/** |
|
15 |
* 正常开闸(默认) |
|
16 |
*/ |
|
17 |
EM_OPEN_STROBE_TYPE_NORMAL, |
|
18 |
/** |
|
19 |
* 测试手动开闸(用于施工前期) |
|
20 |
*/ |
|
21 |
EM_OPEN_STROBE_TYPE_TEST, |
|
22 |
/** |
|
23 |
* 手动开闸 |
|
24 |
*/ |
|
25 |
EM_OPEN_STROBE_TYPE_MANUAL; |
|
26 |
public static EM_OPEN_STROBE_TYPE getOpenStrobeTyppe(int type){ |
|
27 |
for (EM_OPEN_STROBE_TYPE strobeType : EM_OPEN_STROBE_TYPE.values() ) { |
|
28 |
if(strobeType.ordinal()==type){ |
|
29 |
return strobeType; |
|
30 |
} |
|
31 |
} |
|
32 |
return EM_OPEN_STROBE_TYPE_UNKNOWN; |
|
33 |
} |
|
34 |
} |