@itutoring/itutoring_application_js_api 1.1.34 → 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/EventManager.js +10 -0
- package/package.json +1 -1
package/modules/EventManager.js
CHANGED
|
@@ -5,6 +5,7 @@ class EventManager
|
|
|
5
5
|
static #MODULE = "EventManager"
|
|
6
6
|
|
|
7
7
|
static #EVENT_EXISTS = "EventExists";
|
|
8
|
+
static #ROOM_EXISTS = "RoomExists";
|
|
8
9
|
|
|
9
10
|
static async EventExists(eventId)
|
|
10
11
|
{
|
|
@@ -14,6 +15,15 @@ class EventManager
|
|
|
14
15
|
|
|
15
16
|
return APIController.IntToBool(exists);
|
|
16
17
|
}
|
|
18
|
+
|
|
19
|
+
static async RoomExists(roomId)
|
|
20
|
+
{
|
|
21
|
+
var exists = await APIController.Get(this.#MODULE, this.#ROOM_EXISTS, {
|
|
22
|
+
'roomId': roomId,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return APIController.IntToBool(exists);
|
|
26
|
+
}
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
export default EventManager;
|