code_to_android static method
Implementation
static $p_a.SingleStreamTaskErrorCode code_to_android(
SingleStreamTaskErrorCode value) {
var $m = {
SingleStreamTaskErrorCode.ok: $p_a.SingleStreamTaskErrorCode.OK,
SingleStreamTaskErrorCode.base: $p_a.SingleStreamTaskErrorCode.BASE,
SingleStreamTaskErrorCode.unknown_by_server:
$p_a.SingleStreamTaskErrorCode.UNKNOWN_BY_SERVER,
SingleStreamTaskErrorCode.signal_request_timeout:
$p_a.SingleStreamTaskErrorCode.SIGNAL_REQUEST_TIMEOUT,
SingleStreamTaskErrorCode.invalid_param_by_server:
$p_a.SingleStreamTaskErrorCode.INVALID_PARAM_BY_SERVER,
SingleStreamTaskErrorCode.remote_kicked:
$p_a.SingleStreamTaskErrorCode.REMOTE_KICKED,
SingleStreamTaskErrorCode.join_dest_room_failed:
$p_a.SingleStreamTaskErrorCode.JOIN_DEST_ROOM_FAIED,
SingleStreamTaskErrorCode.receive_src_stream_timeout:
$p_a.SingleStreamTaskErrorCode.RECEIVE_SRC_STREAM_TIMEOUT,
SingleStreamTaskErrorCode.not_surport_codec:
$p_a.SingleStreamTaskErrorCode.NOT_SURPORT_CODEC,
};
if (!($m.containsKey(value))) {
throw Exception("android not support:" + value.toString());
}
// @ts-ignore
return $m[value] as $p_a.SingleStreamTaskErrorCode;
}