@itutoring/itutoring_application_js_api 1.1.8 → 1.1.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.
@@ -12,6 +12,7 @@ class WebinarSystem
12
12
  static #REGISTER = "Register"
13
13
  static #GET_ALL_WEBINARS = "GetAllWebinars";
14
14
  static #CONFIRM_WEBINAR_PAID = "ConfirmWebinarPaid";
15
+ static #IS_WEBINAR_PAID = "IsWebinarPaid";
15
16
 
16
17
  static async Register(email, webinarId)
17
18
  {
@@ -33,6 +34,15 @@ class WebinarSystem
33
34
  return APIController.IntToBool(res);
34
35
  }
35
36
 
37
+ static async IsWebinarPaid(bookId)
38
+ {
39
+ var res = await APIController.Get(this.#MODULE, this.#IS_WEBINAR_PAID, {
40
+ 'bookId': bookId,
41
+ });
42
+
43
+ return APIController.IntToBool(res);
44
+ }
45
+
36
46
  static async GetAllWebinars()
37
47
  {
38
48
  var data = await APIController.Get(this.#MODULE, this.#GET_ALL_WEBINARS);
@@ -52,7 +62,7 @@ class WebinarSystem
52
62
  webinar.EndTime = value['EndTime'];
53
63
  webinar.TeacherId = value['TeacherId'];
54
64
  webinar.TeacherRole = value['TeacherRole'];
55
- webinar.Price = value['Price'];
65
+ webinar.Price = value['PriceUI'];
56
66
  webinar.TeacherName = value['TeacherName'];
57
67
  webinar.TeacherPhotoURL = value['TeacherPhotoURL'];
58
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",