@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
43 lines (41 loc) • 1.27 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RoomRead = void 0;
class RoomRead {
constructor(roomBridge, appId) {
this.roomBridge = roomBridge;
this.appId = appId;
}
getById(id) {
return this.roomBridge.doGetById(id, this.appId);
}
getCreatorUserById(id) {
return this.roomBridge.doGetCreatorById(id, this.appId);
}
getByName(name) {
return this.roomBridge.doGetByName(name, this.appId);
}
getCreatorUserByName(name) {
return this.roomBridge.doGetCreatorByName(name, this.appId);
}
getMessages(roomId) {
throw new Error('Method not implemented.');
}
getMembers(roomId) {
return this.roomBridge.doGetMembers(roomId, this.appId);
}
getDirectByUsernames(usernames) {
return this.roomBridge.doGetDirectByUsernames(usernames, this.appId);
}
getModerators(roomId) {
return this.roomBridge.doGetModerators(roomId, this.appId);
}
getOwners(roomId) {
return this.roomBridge.doGetOwners(roomId, this.appId);
}
getLeaders(roomId) {
return this.roomBridge.doGetLeaders(roomId, this.appId);
}
}
exports.RoomRead = RoomRead;
//# sourceMappingURL=RoomRead.js.map