提交 | 用户 | 时间
|
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_UPLOAD_FLAG { |
|
10 |
/** 未知 */ |
|
11 |
EM_UPLOAD_FLAG_UNKNOWN, |
|
12 |
/** 成功 */ |
|
13 |
EM_UPLOAD_FLAG_SUCCEED, |
|
14 |
/** 失败 */ |
|
15 |
EM_UPLOAD_FLAG_FAILED; |
|
16 |
|
|
17 |
public static EM_UPLOAD_FLAG getUploadFlag(int flag) { |
|
18 |
for (EM_UPLOAD_FLAG upload : EM_UPLOAD_FLAG.values()) { |
|
19 |
if (upload.ordinal() == flag) { |
|
20 |
return upload; |
|
21 |
} |
|
22 |
} |
|
23 |
return EM_UPLOAD_FLAG_UNKNOWN; |
|
24 |
} |
|
25 |
} |