@itutoring/itutoring_application_js_api 1.0.9 → 1.0.10
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/TeacherPortal.js +15 -0
- package/package.json +1 -1
package/modules/TeacherPortal.js
CHANGED
|
@@ -20,6 +20,21 @@ class TeacherPortal
|
|
|
20
20
|
static #GET_RESERVATIONS = "GetReservations";
|
|
21
21
|
static #SET_BITMOJI = "SetBitmoji";
|
|
22
22
|
static #HAS_BITMOJI = "HasBitmoji";
|
|
23
|
+
static #TAKE_RESERVATION = "TakeReservation";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {*} id Reservation id
|
|
28
|
+
* @returns bool
|
|
29
|
+
*/
|
|
30
|
+
static async TakeReservation(id)
|
|
31
|
+
{
|
|
32
|
+
var res = await APIController.Get(this.#MODULE, this.#TAKE_RESERVATION, {
|
|
33
|
+
'id': id,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return APIController.IntToBool(res);
|
|
37
|
+
}
|
|
23
38
|
|
|
24
39
|
static async HasBitmoji()
|
|
25
40
|
{
|