@itutoring/itutoring_application_js_api 1.6.15 → 1.6.16
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/apiController.js +8 -0
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -23,6 +23,7 @@ class APIController
|
|
|
23
23
|
|
|
24
24
|
static onErrorReceived = null
|
|
25
25
|
static onConfimationReceived = null;
|
|
26
|
+
static onWarningReceived = null;
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* R_KEY MUST be loaded before calling this method!
|
|
@@ -95,6 +96,13 @@ class APIController
|
|
|
95
96
|
APIController.onConfimationReceived(json.data['conf_request']);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
99
|
+
if (json.warnings != null && json.warnings.length > 0)
|
|
100
|
+
{
|
|
101
|
+
if (APIController.onWarningReceived !== null && APIController.onWarningReceived !== undefined)
|
|
102
|
+
{
|
|
103
|
+
APIController.onWarningReceived(json.warnings);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
98
106
|
return (json.data);
|
|
99
107
|
}
|
|
100
108
|
if (json.code === 400)
|