UNPKG

agora-edu-core

Version:

Core APIs for building an online classroom

25 lines (24 loc) 718 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EduStoreFactory = void 0; var _type = require("../type"); var _domain = require("./domain"); // root domain store class EduStoreFactory { static createWithType(roomType) { switch (roomType) { case _type.EduRoomTypeEnum.Room1v1Class: return new _domain.Edu1v1ClassStore(); case _type.EduRoomTypeEnum.RoomSmallClass: return new _domain.EduInteractiveClassStore(); case _type.EduRoomTypeEnum.RoomBigClass: return new _domain.EduLectureStore(); default: return new _domain.EduClassroomStore(); // return default } } } exports.EduStoreFactory = EduStoreFactory;