code_to_ios static method
Implementation
static $p_i.ByteRTCErrorCode code_to_ios(ErrorCode value) {
var $m = {
ErrorCode.invalidToken:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeInvalidToken,
ErrorCode.joinRoom: $p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoom,
ErrorCode.noPublishPermission:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeNoPublishPermission,
ErrorCode.noSubscribePermission:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeNoSubscribePermission,
ErrorCode.duplicateLogin:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeDuplicateLogin,
ErrorCode.kickedOut: $p_i.ByteRTCErrorCode.ByteRTCErrorCodeKickedOut,
ErrorCode.roomIdIllegal:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeRoomIdIllegal,
ErrorCode.tokenExpired:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeTokenExpired,
ErrorCode.updateTokenWithInvalidToken:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeUpdateTokenWithInvalidToken,
ErrorCode.roomDismiss: $p_i.ByteRTCErrorCode.ByteRTCErrorCodeRoomDismiss,
ErrorCode.joinRoomWithoutLicenseAuthenticateSDK:
$p_i.ByteRTCErrorCode.ByteRTCJoinRoomWithoutLicenseAuthenticateSDK,
ErrorCode.roomAlreadyExist: $p_i.ByteRTCErrorCode.ByteRTCRoomAlreadyExist,
ErrorCode.userIdDifferent: $p_i.ByteRTCErrorCode.ByteRTCUserIDDifferent,
ErrorCode.joinRoomServerLicenseExpired:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomServerLicenseExpired,
ErrorCode.joinRoomExceedsTheUpperLimit:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomExceedsTheUpperLimit,
ErrorCode.joinRoomLicenseParameterError:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseParameterError,
ErrorCode.joinRoomLicenseFilePathError:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseFilePathError,
ErrorCode.joinRoomLicenseIllegal:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseIllegal,
ErrorCode.joinRoomLicenseExpired:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseExpired,
ErrorCode.joinRoomLicenseInformationNotMatch: $p_i
.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseInformationNotMatch,
ErrorCode.joinRoomLicenseNotMatchWithCache: $p_i
.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomLicenseNotMatchWithCache,
ErrorCode.joinRoomRoomForbidden:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomRoomForbidden,
ErrorCode.joinRoomUserForbidden:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeJoinRoomUserForbidden,
ErrorCode.overStreamPublishLimit:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeOverStreamPublishLimit,
ErrorCode.abnormalServerStatus:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeAbnormalServerStatus,
ErrorCode.ERROR_CODE_MULTI_ROOM_UNPUBLISH_FAILED:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeMultiRoomUnpublishFailed,
ErrorCode.ERROR_CODE_WRONG_AREA_CODE:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeWrongAreaCode,
ErrorCode.overStreamSubscribeLimit:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeOverStreamSubscribeLimit,
ErrorCode.invalidAudioSyncUidRepeated:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodInvalidAudioSyncUidRepeated,
ErrorCode.overVideoPublishLimit:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeOverVideoPublishLimit,
ErrorCode.ByteRTCErrorCodeDeadLockNotify:
$p_i.ByteRTCErrorCode.ByteRTCErrorCodeDeadLockNotify,
};
if (!($m.containsKey(value))) {
throw Exception("ios not support:" + value.toString());
}
// @ts-ignore
return $m[value] as $p_i.ByteRTCErrorCode;
}