提交 | 用户 | 时间
|
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_IS_EXPIRED { |
|
10 |
/** 未知 */ |
|
11 |
EM_QRCODE_EXPIRED_UNKNOWN, |
|
12 |
/** 未过期 */ |
|
13 |
EM_QRCODE_NO_EXPIRED, |
|
14 |
/** 过期 */ |
|
15 |
EM_QRCODE_EXPIRED; |
|
16 |
|
|
17 |
public static EM_QRCODE_IS_EXPIRED getQrCodeExpired(int expired) { |
|
18 |
for (EM_QRCODE_IS_EXPIRED qrcodeExpired : EM_QRCODE_IS_EXPIRED.values()) { |
|
19 |
if (qrcodeExpired.ordinal() == expired) { |
|
20 |
return qrcodeExpired; |
|
21 |
} |
|
22 |
} |
|
23 |
return EM_QRCODE_EXPIRED_UNKNOWN; |
|
24 |
} |
|
25 |
} |