提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* @author 260611 |
|
6 |
* @description 语音类型 |
|
7 |
* @date 2023/01/03 11:10:33 |
|
8 |
*/ |
|
9 |
public enum EM_CUSTOM_EDUCATION_VOICE_TYPE { |
|
10 |
/** |
|
11 |
* 未知 |
|
12 |
*/ |
|
13 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN(0, "未知"), |
|
14 |
/** |
|
15 |
* 超时出校 |
|
16 |
*/ |
|
17 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL_TIMEOUT(1, "超时出校"), |
|
18 |
/** |
|
19 |
* 超时进校 |
|
20 |
*/ |
|
21 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_TIMEOUT(2, "超时进校"), |
|
22 |
/** |
|
23 |
* 出校 |
|
24 |
*/ |
|
25 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL(3, "出校"), |
|
26 |
/** |
|
27 |
* 此卡未绑定 |
|
28 |
*/ |
|
29 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_CARD_NOT_BIND(4, "此卡未绑定"), |
|
30 |
/** |
|
31 |
* 寄宿生 |
|
32 |
*/ |
|
33 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_BOARDER(5, "寄宿生"), |
|
34 |
/** |
|
35 |
* 家长卡已挂失 |
|
36 |
*/ |
|
37 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_PARENT_CARD_REPORT_LOST(6, "家长卡已挂失"), |
|
38 |
/** |
|
39 |
* 进校已过期 |
|
40 |
*/ |
|
41 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_OVERDUE(7, "进校已过期"), |
|
42 |
/** |
|
43 |
* 您有包裹待领取 |
|
44 |
*/ |
|
45 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_PACKAGE_TO_PICKUP(8, "您有包裹待领取"), |
|
46 |
/** |
|
47 |
* 请假 |
|
48 |
*/ |
|
49 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE(9, "请假"), |
|
50 |
/** |
|
51 |
* 请假返校超时 |
|
52 |
*/ |
|
53 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_RETURN_SCHOOL_TIMEOUT_WHEN_ASKFORLEAVE(10, "请假返校超时"), |
|
54 |
/** |
|
55 |
* 请假进出校时间未到 |
|
56 |
*/ |
|
57 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_INANDOUT_SCHOOL_TIMENOTUP_WHEN_ASKFORLEAVE(11, "请假进出校时间未到"), |
|
58 |
/** |
|
59 |
* 请假拒绝出校 |
|
60 |
*/ |
|
61 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_LEAVE_SCHOOL_WHEN_ASKFORLEAVE(12, "请假拒绝出校"), |
|
62 |
/** |
|
63 |
* 请假拒绝进校 |
|
64 |
*/ |
|
65 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_ENTER_SCHOOL_WHEN_ASKFORLEAVE(13, "请假拒绝进校"), |
|
66 |
/** |
|
67 |
* 请假审核中 |
|
68 |
*/ |
|
69 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_IN_REVIEW(14, "请假审核中"), |
|
70 |
/** |
|
71 |
* 请假已过期 |
|
72 |
*/ |
|
73 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_EXPIRED(15, "请假已过期"), |
|
74 |
/** |
|
75 |
* 请假已批准 |
|
76 |
*/ |
|
77 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_APPROVED(16, "请假已批准"), |
|
78 |
/** |
|
79 |
* 请假已失效禁止重复出校 |
|
80 |
*/ |
|
81 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_FORBID_LEAVE_SCHOOL_WITH_LEAVE_INVALID(17, "请假已失效禁止重复出校"), |
|
82 |
/** |
|
83 |
* 时间未到 |
|
84 |
*/ |
|
85 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_TIME_ISNOT_UP(18, "时间未到"), |
|
86 |
/** |
|
87 |
* 未预约 |
|
88 |
*/ |
|
89 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_NOT_APPOINT(19, "未预约"), |
|
90 |
/** |
|
91 |
* 未在允许时段内禁止通行 |
|
92 |
*/ |
|
93 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_NO_PASSAGE_IN_NONPERMIT_TIMESECTION(20, "未在允许时段内禁止通行"), |
|
94 |
/** |
|
95 |
* 无效卡 |
|
96 |
*/ |
|
97 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_INVALID_CARD(21, "无效卡"), |
|
98 |
/** |
|
99 |
* 已预约 |
|
100 |
*/ |
|
101 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ALREADY_APPOINTED(22, "已预约"), |
|
102 |
/** |
|
103 |
* 允许返校 |
|
104 |
*/ |
|
105 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ALLOW_BACK_SCHOOL(23, "允许返校"), |
|
106 |
/** |
|
107 |
* 再见 |
|
108 |
*/ |
|
109 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_GOODBYE(24, "再见"), |
|
110 |
/** |
|
111 |
* 正常进校 |
|
112 |
*/ |
|
113 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_NORMALLY(25, "正常进校"), |
|
114 |
/** |
|
115 |
* 重复出校 |
|
116 |
*/ |
|
117 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_LEAVE_SCHOOLL(26, "重复出校"), |
|
118 |
/** |
|
119 |
* 重复进校 |
|
120 |
*/ |
|
121 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_ENTER_SCHOOLL(27, "重复进校"), |
|
122 |
/** |
|
123 |
* 走读生 |
|
124 |
*/ |
|
125 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_DAY_STUDENT(28, "走读生"), |
|
126 |
/** |
|
127 |
* 欢迎光临 |
|
128 |
*/ |
|
129 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_WELCOME(29, "欢迎光临"), |
|
130 |
/** |
|
131 |
* 教职工 |
|
132 |
*/ |
|
133 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_FACULTY(30, "教职工"), |
|
134 |
/** |
|
135 |
* 老师 |
|
136 |
*/ |
|
137 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_TEACHER(31, "老师"), |
|
138 |
/** |
|
139 |
* 老师好 |
|
140 |
*/ |
|
141 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_HELLO_TEACHER(32, "老师好"), |
|
142 |
/** |
|
143 |
* 允许访问 |
|
144 |
*/ |
|
145 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_ALLOW_ACCESS(33, "允许访问"), |
|
146 |
/** |
|
147 |
* tts文字语音输出 |
|
148 |
*/ |
|
149 |
EM_CUSTOM_EDUCATION_VOICE_TYPE_TTS_TEXT_VOICE_OUTPUT(50, "tts文字语音输出"); |
|
150 |
|
|
151 |
private int value; |
|
152 |
|
|
153 |
private String note; |
|
154 |
|
|
155 |
public String getNote() { |
|
156 |
return note; |
|
157 |
} |
|
158 |
|
|
159 |
public int getValue() { |
|
160 |
return value; |
|
161 |
} |
|
162 |
|
|
163 |
EM_CUSTOM_EDUCATION_VOICE_TYPE(int givenValue, String note) { |
|
164 |
this.value = givenValue; |
|
165 |
this.note = note; |
|
166 |
} |
|
167 |
|
|
168 |
public static String getNoteByValue(int givenValue) { |
|
169 |
for (EM_CUSTOM_EDUCATION_VOICE_TYPE enumType : EM_CUSTOM_EDUCATION_VOICE_TYPE.values()) { |
|
170 |
if (givenValue == enumType.getValue()) { |
|
171 |
return enumType.getNote(); |
|
172 |
} |
|
173 |
} |
|
174 |
return null; |
|
175 |
} |
|
176 |
|
|
177 |
public static int getValueByNote(String givenNote) { |
|
178 |
for (EM_CUSTOM_EDUCATION_VOICE_TYPE enumType : EM_CUSTOM_EDUCATION_VOICE_TYPE.values()) { |
|
179 |
if (givenNote.equals(enumType.getNote())) { |
|
180 |
return enumType.getValue(); |
|
181 |
} |
|
182 |
} |
|
183 |
return -1; |
|
184 |
} |
|
185 |
|
|
186 |
public static EM_CUSTOM_EDUCATION_VOICE_TYPE getEnum(int value) { |
|
187 |
for (EM_CUSTOM_EDUCATION_VOICE_TYPE e : EM_CUSTOM_EDUCATION_VOICE_TYPE.values()) { |
|
188 |
if (e.getValue() == value) |
|
189 |
return e; |
|
190 |
} |
|
191 |
return EM_CUSTOM_EDUCATION_VOICE_TYPE.EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN; |
|
192 |
} |
|
193 |
|
|
194 |
} |