提交 | 用户 | 时间
|
ce910c
|
1 |
package com.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_QRCODE_STATE { |
|
10 |
/** 未知 */ |
|
11 |
EM_QRCODE_STATE_UNKNOWN, |
|
12 |
/** 已批准 */ |
|
13 |
EM_QRCODE_STATE_CLEARED, |
|
14 |
/** 未批准 */ |
|
15 |
EM_QRCODE_STATE_NOCLEARED; |
|
16 |
|
|
17 |
public static EM_QRCODE_STATE getQrcodeState(int state) { |
|
18 |
for (EM_QRCODE_STATE qrcodeState : EM_QRCODE_STATE.values()) { |
|
19 |
if (qrcodeState.ordinal() == state) { |
|
20 |
return qrcodeState; |
|
21 |
} |
|
22 |
} |
|
23 |
return EM_QRCODE_STATE_UNKNOWN; |
|
24 |
} |
|
25 |
} |