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