fcr-core
Version:
Core APIs for building online scenes
26 lines (25 loc) • 734 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertServerRoomTypeToFcrRoomType = void 0;
var _type = require("../room-control/type");
const convertServerRoomTypeToFcrRoomType = roomType => {
switch (roomType) {
case 11:
return _type.FcrRoomType.Mainroom;
case 102:
return _type.FcrRoomType.Waitingroom;
case 101:
return _type.FcrRoomType.Subroom;
case 103:
return _type.FcrRoomType.Interpreterroom;
case 104:
return _type.FcrRoomType.JoinBeforeHostWaitingRoom;
case 12:
return _type.FcrRoomType.Infinityroom;
default:
return null;
}
};
exports.convertServerRoomTypeToFcrRoomType = convertServerRoomTypeToFcrRoomType;