-
Notifications
You must be signed in to change notification settings - Fork 119
/
IPostRoomCreate.ts
27 lines (25 loc) · 1.01 KB
/
IPostRoomCreate.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
import { IHttp, IPersistence, IRead } from '../accessors';
import { IRoom } from './IRoom';
/** Handler for after a room is created. */
export interface IPostRoomCreate {
/**
* Enables the handler to signal to the Apps framework whether
* this handler should actually be executed for after the room
* has been created.
*
* @param room The room which was created
* @param read An accessor to the environment
* @param http An accessor to the outside world
* @return whether to run the execute or not
*/
checkPostRoomCreate?(room: IRoom, read: IRead, http: IHttp): Promise<boolean>;
/**
* Method called *after* the room has been created.
*
* @param room The room which was created
* @param read An accessor to the environment
* @param http An accessor to the outside world
* @param persistence An accessor to the App's persistence
*/
executePostRoomCreate(room: IRoom, read: IRead, http: IHttp, persistence: IPersistence): Promise<void>;
}