fromString static method
从字符串转换为枚举值
value 状态码字符串
返回对应的 VoicePrintStatusCode 枚举值
Implementation
static VoicePrintStatusCode fromString(String value) {
switch (value.toLowerCase()) {
case 'disable':
return VoicePrintStatusCode.disable;
case 'enablewithoutregister':
return VoicePrintStatusCode.enableWithoutRegister;
case 'speakerrecognized':
return VoicePrintStatusCode.speakerRecognized;
case 'speakernotrecognized':
return VoicePrintStatusCode.speakerNotRecognized;
default:
return VoicePrintStatusCode.unknown;
}
}