提交 | 用户 | 时间
|
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_VIDEO_TYPE { |
|
10 |
/** 未知 */ |
|
11 |
EM_VIDEO_TYPE_UNKNOWN, |
|
12 |
/** 全部 */ |
|
13 |
EM_VIDEO_TYPE_ALL, |
|
14 |
/** 手动保存的录像 */ |
|
15 |
EM_VIDEO_TYPE_MANUAL, |
|
16 |
/** 报警录像 */ |
|
17 |
EM_VIDEO_TYPE_ALARM; |
|
18 |
|
|
19 |
public EM_VIDEO_TYPE getVideoType(int type) { |
|
20 |
for (EM_VIDEO_TYPE videoType : EM_VIDEO_TYPE.values()) { |
|
21 |
if (videoType.ordinal() == type) { |
|
22 |
return videoType; |
|
23 |
} |
|
24 |
} |
|
25 |
return EM_VIDEO_TYPE_UNKNOWN; |
|
26 |
} |
|
27 |
} |