提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 语音ID |
|
7 |
* @date 2021/2/7 |
|
8 |
*/ |
|
9 |
public enum CFG_EM_VOICE_ID { |
|
10 |
/** 未知 */ |
|
11 |
CFG_EM_VOICE_ID_UNKNOWN(-1, "未知"), |
|
12 |
/** 验证成功(默认) */ |
|
13 |
CFG_EM_VOICE_ID_VERIFY_SUCCESS(0, "验证成功(默认)"), |
|
14 |
/** 开门成功 */ |
|
15 |
CFG_EM_VOICE_ID_OPENDOOR_SUCCESS(1, "开门成功"), |
|
16 |
/** 开锁成功 */ |
|
17 |
CFG_EM_VOICE_ID_UNLOCK_SUCCESS(2, "开锁成功"), |
|
18 |
/** 刷卡成功 */ |
|
19 |
CFG_EM_VOICE_ID_SWIPECARD_SUCCESS(3, "刷卡成功"), |
|
20 |
/** 欢迎光临 */ |
|
21 |
CFG_EM_VOICE_ID_WELCOME(4, "欢迎光临"), |
|
22 |
/** 欢迎再次光临 */ |
|
23 |
CFG_EM_VOICE_ID_WELCOME_BACK(5, "欢迎再次光临"), |
|
24 |
/** 谢谢 */ |
|
25 |
CFG_EM_VOICE_ID_THANKS(6, "谢谢"), |
|
26 |
/** 自定义 */ |
|
27 |
CFG_EM_VOICE_ID_CUSTOMIZED_VOICE(7, "自定义"), |
|
28 |
/** 无声音 */ |
|
29 |
CFG_EM_VOICE_ID_NO_VOICE(8, "无声音"), |
|
30 |
/** 欢迎回家 */ |
|
31 |
CFG_EM_VOICE_ID_WELCOME_HOME(9, "欢迎回家"), |
|
32 |
/** 一路顺风 */ |
|
33 |
CFG_EM_VOICE_ID_GOOD_JOURNEY(10, "一路顺风"), |
|
34 |
/** 欢迎下次光临 */ |
|
35 |
CFG_EM_VOICE_ID_WELCOME_BACK_NEXT(11, "欢迎下次光临"), |
|
36 |
/** 谢谢惠顾 */ |
|
37 |
CFG_EM_VOICE_ID_THANKS_FOR_PATRONAGE(12, "谢谢惠顾"); |
|
38 |
private int id; |
|
39 |
private String desc; |
|
40 |
|
|
41 |
CFG_EM_VOICE_ID(int id, String desc) { |
|
42 |
this.id = id; |
|
43 |
this.desc = desc; |
|
44 |
} |
|
45 |
|
|
46 |
public static CFG_EM_VOICE_ID getVoiceID(int id) { |
|
47 |
for (CFG_EM_VOICE_ID voiceID : CFG_EM_VOICE_ID.values()) { |
|
48 |
if (voiceID.id == id) { |
|
49 |
return voiceID; |
|
50 |
} |
|
51 |
} |
|
52 |
return CFG_EM_VOICE_ID_UNKNOWN; |
|
53 |
} |
|
54 |
|
|
55 |
public int getId() { |
|
56 |
return id; |
|
57 |
} |
|
58 |
|
|
59 |
public void setId(int id) { |
|
60 |
this.id = id; |
|
61 |
} |
|
62 |
|
|
63 |
public String getDesc() { |
|
64 |
return desc; |
|
65 |
} |
|
66 |
|
|
67 |
public void setDesc(String desc) { |
|
68 |
this.desc = desc; |
|
69 |
} |
|
70 |
} |