提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* @author 421657 |
|
6 |
* @description 存储点类型 |
|
7 |
* @origin autoTool |
|
8 |
* @date 2023/10/30 15:54:18 |
|
9 |
*/ |
|
10 |
public enum EM_STORAGEPOINT_TYPE { |
|
11 |
/** |
|
12 |
* |
|
13 |
*/ |
|
14 |
EM_STORAGE_TIMINGRECORD(0, "定时录像存储点类"), |
|
15 |
/** |
|
16 |
* |
|
17 |
*/ |
|
18 |
EM_STORAGE_MANUALRECORD(1, "手动录像存储点类"), |
|
19 |
/** |
|
20 |
* |
|
21 |
*/ |
|
22 |
EM_STORAGE_VIDEODETECTRECORD(2, "视频检测录像存储点类"), |
|
23 |
/** |
|
24 |
* |
|
25 |
*/ |
|
26 |
EM_STORAGE_ALARMRECORD(3, "报警录像存储点类"), |
|
27 |
/** |
|
28 |
* |
|
29 |
*/ |
|
30 |
EM_STORAGE_CARDRECORD(4, "卡号录像存储点类"), |
|
31 |
/** |
|
32 |
* |
|
33 |
*/ |
|
34 |
EM_STORAGE_EVENTRECORD(5, "其他事件录像存储点类"), |
|
35 |
/** |
|
36 |
* |
|
37 |
*/ |
|
38 |
EM_STORAGE_TIMINGSNAPSHOT(6, "定时抓图存储点类"), |
|
39 |
/** |
|
40 |
* |
|
41 |
*/ |
|
42 |
EM_STORAGE_MANUALSNAPSHOT(7, "手动抓图存储点类"), |
|
43 |
/** |
|
44 |
* |
|
45 |
*/ |
|
46 |
EM_STORAGE_VIDEODETECTSNAPSHOT(8, "视频检测抓图存储点类"), |
|
47 |
/** |
|
48 |
* |
|
49 |
*/ |
|
50 |
EM_STORAGE_ALARMSNAPSHOT(9, "报警抓图存储点类"), |
|
51 |
/** |
|
52 |
* |
|
53 |
*/ |
|
54 |
EM_STORAGE_CARDSNAPSHOT(10, "卡号抓图存储点类"), |
|
55 |
/** |
|
56 |
* |
|
57 |
*/ |
|
58 |
EM_STORAGE_EVENTSNAPSHOT(11, "其他事件抓图存储点类"), |
|
59 |
/** |
|
60 |
* |
|
61 |
*/ |
|
62 |
EM_STORAGE_TIMINGEXTRA1RECORD(12, "辅码流1录像存储点类"); |
|
63 |
|
|
64 |
private int value; |
|
65 |
|
|
66 |
private String note; |
|
67 |
|
|
68 |
public String getNote() { |
|
69 |
return note; |
|
70 |
} |
|
71 |
|
|
72 |
public int getValue() { |
|
73 |
return value; |
|
74 |
} |
|
75 |
|
|
76 |
EM_STORAGEPOINT_TYPE(int givenValue, String note) { |
|
77 |
this.value = givenValue; |
|
78 |
this.note = note; |
|
79 |
} |
|
80 |
|
|
81 |
public static String getNoteByValue(int givenValue) { |
|
82 |
for (EM_STORAGEPOINT_TYPE enumType : EM_STORAGEPOINT_TYPE.values()) { |
|
83 |
if (givenValue == enumType.getValue()) { |
|
84 |
return enumType.getNote(); |
|
85 |
} |
|
86 |
} |
|
87 |
return null; |
|
88 |
} |
|
89 |
|
|
90 |
public static int getValueByNote(String givenNote) { |
|
91 |
for (EM_STORAGEPOINT_TYPE enumType : EM_STORAGEPOINT_TYPE.values()) { |
|
92 |
if (givenNote.equals(enumType.getNote())) { |
|
93 |
return enumType.getValue(); |
|
94 |
} |
|
95 |
} |
|
96 |
return -1; |
|
97 |
} |
|
98 |
|
|
99 |
} |