提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* @author 291189 |
|
6 |
* @description 开锁模式 |
|
7 |
* @origin autoTool |
|
8 |
* @date 2023/02/10 14:34:21 |
|
9 |
*/ |
|
10 |
public enum EM_AC_UNLOCK_MODE { |
|
11 |
/** |
|
12 |
未知 |
|
13 |
*/ |
|
14 |
EM_AC_UNLOCK_MODE_UNKNOWN(0,"未知"), |
|
15 |
/** |
|
16 |
只允许密码开锁 |
|
17 |
*/ |
|
18 |
EM_AC_UNLOCK_MODE_PWD_ONLY(1,"只允许密码开锁"), |
|
19 |
/** |
|
20 |
只允许刷卡开锁 |
|
21 |
*/ |
|
22 |
EM_AC_UNLOCK_MODE_CARD(2,"只允许刷卡开锁"), |
|
23 |
/** |
|
24 |
密码或刷卡开锁 |
|
25 |
*/ |
|
26 |
EM_AC_UNLOCK_MODE_PWD_OR_CARD(3,"密码或刷卡开锁"), |
|
27 |
/** |
|
28 |
先刷卡后密码开锁 |
|
29 |
*/ |
|
30 |
EM_AC_UNLOCK_MODE_CARD_FIRST(4,"先刷卡后密码开锁"), |
|
31 |
/** |
|
32 |
先密码后刷卡开锁 |
|
33 |
*/ |
|
34 |
EM_AC_UNLOCK_MODE_PWD_FIRST(5,"先密码后刷卡开锁"), |
|
35 |
/** |
|
36 |
分时段开门 |
|
37 |
*/ |
|
38 |
EM_AC_UNLOCK_MODE_SECTION(6,"分时段开门"), |
|
39 |
/** |
|
40 |
仅信息开锁 |
|
41 |
*/ |
|
42 |
EM_AC_UNLOCK_MODE_FINGERPRINTONLY(7,"仅信息开锁"), |
|
43 |
/** |
|
44 |
密码或刷卡或信息开锁 |
|
45 |
*/ |
|
46 |
EM_AC_UNLOCK_MODE_PWD_OR_CARD_OR_FINGERPRINT(8,"密码或刷卡或信息开锁"), |
|
47 |
/** |
|
48 |
密码+刷卡+信息组合开锁 |
|
49 |
*/ |
|
50 |
EM_AC_UNLOCK_MODE_PWD_AND_CARD_AND_FINGERPINT(9,"密码+刷卡+信息组合开锁"), |
|
51 |
/** |
|
52 |
密码+信息组合开锁 |
|
53 |
*/ |
|
54 |
EM_AC_UNLOCK_MODE_PWD_AND_FINGERPRINT(10,"密码+信息组合开锁"), |
|
55 |
/** |
|
56 |
刷卡+信息开锁 |
|
57 |
*/ |
|
58 |
EM_AC_UNLOCK_MODE_CARD_AND_FINGERPRINT(11,"刷卡+信息开锁"), |
|
59 |
/** |
|
60 |
多人开锁 |
|
61 |
*/ |
|
62 |
EM_AC_UNLOCK_MODE_MULTI_PERSON(12,"多人开锁"), |
|
63 |
/** |
|
64 |
人证对比 |
|
65 |
*/ |
|
66 |
EM_AC_UNLOCK_MODE_FACEIDCARD(13,"人证对比"), |
|
67 |
/** |
|
68 |
证件+ 人证比对 |
|
69 |
*/ |
|
70 |
EM_AC_UNLOCK_MODE_FACEIDCARD_AND_IDCARD(14,"证件+ 人证比对"), |
|
71 |
/** |
|
72 |
人证比对或刷卡或信息 |
|
73 |
*/ |
|
74 |
EM_AC_UNLOCK_MODE_FACEIDCARD_OR_CARD_OR_FINGER(15,"人证比对或刷卡或信息"), |
|
75 |
/** |
|
76 |
(证件+认证比对)或刷卡或信息 |
|
77 |
*/ |
|
78 |
EM_AC_UNLOCK_MODE_FACEIPCARDANDIDCARD_OR_CARD_OR_FINGER(16,"(证件+认证比对)或刷卡或信息"), |
|
79 |
/** |
|
80 |
UserID+密码 |
|
81 |
*/ |
|
82 |
EM_AC_UNLOCK_MODE_USERID_AND_PWD(17,"UserID+密码"), |
|
83 |
/** |
|
84 |
只允许目标开锁 |
|
85 |
*/ |
|
86 |
EM_AC_UNLOCK_MODE_FACE_ONLY(18,"只允许目标开锁"), |
|
87 |
/** |
|
88 |
目标+密码开锁 |
|
89 |
*/ |
|
90 |
EM_AC_UNLOCK_MODE_FACE_AND_PWD(19,"目标+密码开锁"), |
|
91 |
/** |
|
92 |
信息+密码开锁 |
|
93 |
*/ |
|
94 |
EM_AC_UNLOCK_MODE_FINGERPRINT_AND_PWD(20,"信息+密码开锁"), |
|
95 |
/** |
|
96 |
信息+目标开锁 |
|
97 |
*/ |
|
98 |
EM_AC_UNLOCK_MODE_FINGERPRINT_AND_FACE(21,"信息+目标开锁"), |
|
99 |
/** |
|
100 |
刷卡+目标开锁 |
|
101 |
*/ |
|
102 |
EM_AC_UNLOCK_MODE_CARD_AND_FACE(22,"刷卡+目标开锁"), |
|
103 |
/** |
|
104 |
目标或密码开锁 |
|
105 |
*/ |
|
106 |
EM_AC_UNLOCK_MODE_FACE_OR_PWD(23,"目标或密码开锁"), |
|
107 |
/** |
|
108 |
信息或密码开锁 |
|
109 |
*/ |
|
110 |
EM_AC_UNLOCK_MODE_FINGERPRINT_OR_PWD(24,"信息或密码开锁"), |
|
111 |
/** |
|
112 |
信息或目标开锁 |
|
113 |
*/ |
|
114 |
EM_AC_UNLOCK_MODE_FINGERPRINT_OR_FACE(25,"信息或目标开锁"), |
|
115 |
/** |
|
116 |
刷卡或目标开锁 |
|
117 |
*/ |
|
118 |
EM_AC_UNLOCK_MODE_CARD_OR_FACE(26,"刷卡或目标开锁"), |
|
119 |
/** |
|
120 |
刷卡或信息开锁 |
|
121 |
*/ |
|
122 |
EM_AC_UNLOCK_MODE_CARD_OR_FINGERPRINT(27,"刷卡或信息开锁"), |
|
123 |
/** |
|
124 |
信息+目标+密码开锁 |
|
125 |
*/ |
|
126 |
EM_AC_UNLOCK_MODE_FINGERPRINT_AND_FACE_AND_PWD(28,"信息+目标+密码开锁"), |
|
127 |
/** |
|
128 |
刷卡+目标+密码开锁 |
|
129 |
*/ |
|
130 |
EM_AC_UNLOCK_MODE_CARD_AND_FACE_AND_PWD(29,"刷卡+目标+密码开锁"), |
|
131 |
/** |
|
132 |
刷卡+信息+密码开锁 |
|
133 |
*/ |
|
134 |
EM_AC_UNLOCK_MODE_CARD_AND_FINGERPRINT_AND_PWD(30,"刷卡+信息+密码开锁"), |
|
135 |
/** |
|
136 |
卡+信息+目标组合开锁 |
|
137 |
*/ |
|
138 |
EM_AC_UNLOCK_MODE_CARD_AND_FINGERPRINT_AND_FACE(31,"卡+信息+目标组合开锁"), |
|
139 |
/** |
|
140 |
信息或目标或密码 |
|
141 |
*/ |
|
142 |
EM_AC_UNLOCK_MODE_FINGERPRINT_OR_FACE_OR_PWD(32,"信息或目标或密码"), |
|
143 |
/** |
|
144 |
卡或目标或密码开锁 |
|
145 |
*/ |
|
146 |
EM_AC_UNLOCK_MODE_CARD_OR_FACE_OR_PWD(33,"卡或目标或密码开锁"), |
|
147 |
/** |
|
148 |
卡或信息或目标开锁 |
|
149 |
*/ |
|
150 |
EM_AC_UNLOCK_MODE_CARD_OR_FINGERPRINT_OR_FACE(34,"卡或信息或目标开锁"), |
|
151 |
/** |
|
152 |
卡+信息+目标+密码组合开锁 |
|
153 |
*/ |
|
154 |
EM_AC_UNLOCK_MODE_CARD_AND_FINGERPRINT_AND_FACE_AND_PWD(35,"卡+信息+目标+密码组合开锁"), |
|
155 |
/** |
|
156 |
卡或信息或目标或密码开锁 |
|
157 |
*/ |
|
158 |
EM_AC_UNLOCK_MODE_CARD_OR_FINGERPRINT_OR_FACE_OR_PWD(36,"卡或信息或目标或密码开锁"), |
|
159 |
/** |
|
160 |
(证件+人证比对)或 刷卡 或 目标 |
|
161 |
*/ |
|
162 |
EM_AC_UNLOCK_MODE_FACEIPCARDANDIDCARD_OR_CARD_OR_FACE(37,"(证件+人证比对)或 刷卡 或 目标"), |
|
163 |
/** |
|
164 |
人证比对 或 刷卡(二维码) 或 目标 |
|
165 |
*/ |
|
166 |
EM_AC_UNLOCK_MODE_FACEIDCARD_OR_CARD_OR_FACE(38,"人证比对 或 刷卡(二维码) 或 目标"), |
|
167 |
/** |
|
168 |
(卡+密码)或(信息+密码)默认为2 |
|
169 |
*/ |
|
170 |
EM_AC_UNLOCK_MODE_CARDANDPWD_OR_FINGERPRINTANDPWD(39,"(卡+密码)或(信息+密码)默认为2"), |
|
171 |
/** |
|
172 |
人证(照片)或目标 |
|
173 |
*/ |
|
174 |
EM_AC_UNLOCK_MODE_PHOTO_OR_FACE(40,"人证(照片)或目标"), |
|
175 |
/** |
|
176 |
人证(信息) |
|
177 |
*/ |
|
178 |
EM_AC_UNLOCK_MODE_FINGERPRINT(41,"人证(信息)"), |
|
179 |
/** |
|
180 |
人证(照片+信息) |
|
181 |
*/ |
|
182 |
EM_AC_UNLOCK_MODE_PHOTO_AND_FINGERPRINT(42,"人证(照片+信息)"), |
|
183 |
/** |
|
184 |
人证或刷卡或信息或目标或密码 |
|
185 |
*/ |
|
186 |
EM_AC_UNLOCK_MODE_FACEIDCARD_OR_CARD_OR_FINGERPRINT_OR_FACE_OR_PASSWORD(43,"人证或刷卡或信息或目标或密码"), |
|
187 |
/** |
|
188 |
多用户类型 |
|
189 |
*/ |
|
190 |
EM_AC_UNLOCK_MODE_MULTI_USER_TYPE(44,"多用户类型"), |
|
191 |
/** |
|
192 |
人证或健康码 |
|
193 |
*/ |
|
194 |
EM_AC_UNLOCK_MODE_FACEIDCARD_OR_HEALTHCODE(45,"人证或健康码"); |
|
195 |
|
|
196 |
private int value; |
|
197 |
|
|
198 |
private String note; |
|
199 |
|
|
200 |
public String getNote() { |
|
201 |
return note; |
|
202 |
} |
|
203 |
|
|
204 |
public int getValue() { |
|
205 |
return value; |
|
206 |
} |
|
207 |
|
|
208 |
EM_AC_UNLOCK_MODE(int givenValue, String note) { |
|
209 |
this.value = givenValue; |
|
210 |
this.note = note; |
|
211 |
} |
|
212 |
|
|
213 |
public static String getNoteByValue(int givenValue) { |
|
214 |
for (EM_AC_UNLOCK_MODE enumType : EM_AC_UNLOCK_MODE.values()) { |
|
215 |
if (givenValue == enumType.getValue()) { |
|
216 |
return enumType.getNote(); |
|
217 |
} |
|
218 |
} |
|
219 |
return null; |
|
220 |
} |
|
221 |
|
|
222 |
public static int getValueByNote(String givenNote) { |
|
223 |
for (EM_AC_UNLOCK_MODE enumType : EM_AC_UNLOCK_MODE.values()) { |
|
224 |
if (givenNote.equals(enumType.getNote())) { |
|
225 |
return enumType.getValue(); |
|
226 |
} |
|
227 |
} |
|
228 |
return -1; |
|
229 |
} |
|
230 |
|
|
231 |
public static EM_AC_UNLOCK_MODE getEnum(int value) { |
|
232 |
for (EM_AC_UNLOCK_MODE e : EM_AC_UNLOCK_MODE.values()) { |
|
233 |
if (e.getValue() == value) |
|
234 |
return e; |
|
235 |
} |
|
236 |
return EM_AC_UNLOCK_MODE.EM_AC_UNLOCK_MODE_UNKNOWN; |
|
237 |
} |
|
238 |
|
|
239 |
} |