@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",