code_to_ios static method
Implementation
static $p_i.ByteRTCLoginErrorCode code_to_ios(LoginErrorCode value) {
var $m = {
LoginErrorCode.success:
$p_i.ByteRTCLoginErrorCode.ByteRTCLoginErrorCodeSuccess,
LoginErrorCode.invalid_token:
$p_i.ByteRTCLoginErrorCode.ByteRTCLoginErrorCodeInvalidToken,
LoginErrorCode.login_failed:
$p_i.ByteRTCLoginErrorCode.ByteRTCLoginErrorCodeLoginFailed,
LoginErrorCode.invalid_user_id:
$p_i.ByteRTCLoginErrorCode.ByteRTCLoginErrorCodeInvalidUserId,
LoginErrorCode.code_server_error:
$p_i.ByteRTCLoginErrorCode.ByteRTCLoginErrorCodeServerError,
};
if (!($m.containsKey(value))) {
throw Exception("ios not support:" + value.toString());
}
// @ts-ignore
return $m[value] as $p_i.ByteRTCLoginErrorCode;
}