@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
25 lines (23 loc) • 702 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserRead = void 0;
class UserRead {
constructor(userBridge, appId) {
this.userBridge = userBridge;
this.appId = appId;
}
getById(id) {
return this.userBridge.doGetById(id, this.appId);
}
getByUsername(username) {
return this.userBridge.doGetByUsername(username, this.appId);
}
getAppUser(appId = this.appId) {
return this.userBridge.doGetAppUser(appId);
}
getUserUnreadMessageCount(uid) {
return this.userBridge.doGetUserUnreadMessageCount(uid, this.appId);
}
}
exports.UserRead = UserRead;
//# sourceMappingURL=UserRead.js.map
;