-
Notifications
You must be signed in to change notification settings - Fork 118
/
IRead.ts
36 lines (29 loc) · 1.19 KB
/
IRead.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { IEnvironmentRead } from './IEnvironmentRead';
import { ILivechatRead } from './ILivechatRead';
import { IMessageRead } from './IMessageRead';
import { INotifier } from './INotifier';
import { IPersistenceRead } from './IPersistenceRead';
import { IRoomRead } from './IRoomRead';
import { IUploadRead } from './IUploadRead';
import { IUserRead } from './IUserRead';
/**
* The IRead accessor provides methods for accessing the
* Rocket.Chat's environment in a read-only-fashion.
* It is safe to be injected in multiple places, idempotent and extensible
*/
export interface IRead {
/** Gets the IEnvironmentRead instance, contains settings and environmental variables. */
getEnvironmentReader(): IEnvironmentRead;
/** Gets the IMessageRead instance. */
getMessageReader(): IMessageRead;
/** Gets the IPersistenceRead instance. */
getPersistenceReader(): IPersistenceRead;
/** Gets the IRoomRead instance. */
getRoomReader(): IRoomRead;
/** Gets the IUserRead instance. */
getUserReader(): IUserRead;
/** Gets the INotifier for notifying users/rooms. */
getNotifier(): INotifier;
getLivechatReader(): ILivechatRead;
getUploadReader(): IUploadRead;
}