convertEnumValue static method
原生接口返回值转为对应枚举值
interfaceValue
原生接口返回值
returns
枚举值
Implementation
static AlivcLivePushAudioFormat convertEnumValue(int interfaceValue) {
int index = 0;
if (interfaceValue >= -1 && interfaceValue <= 7) {
index = interfaceValue + 1;
}
return AlivcLivePushAudioFormat.values[index];
}