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
| package com.netsdk.lib.enumeration;
|
| /**
| * @author 47081
| * @version 1.0
| * @description 二维码状态
| * @date 2021/2/22
| */
| public enum EM_QRCODE_STATE {
| /** 未知 */
| EM_QRCODE_STATE_UNKNOWN,
| /** 已批准 */
| EM_QRCODE_STATE_CLEARED,
| /** 未批准 */
| EM_QRCODE_STATE_NOCLEARED;
|
| public static EM_QRCODE_STATE getQrcodeState(int state) {
| for (EM_QRCODE_STATE qrcodeState : EM_QRCODE_STATE.values()) {
| if (qrcodeState.ordinal() == state) {
| return qrcodeState;
| }
| }
| return EM_QRCODE_STATE_UNKNOWN;
| }
| }
|
|