@itutoring/itutoring_application_js_api 1.1.31 → 1.1.33
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/CustomerEduPortal.js +21 -0
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ class CustomerEduPortal
|
|
|
21
21
|
static #SET_RECURSIVE = "SetRecursive";
|
|
22
22
|
static #SET_DATE_AND_TIME = "SetDateAndTime";
|
|
23
23
|
static #SET_DAY = "SetDay";
|
|
24
|
+
static #SET_RECURSIVITY = "SetRecursivity";
|
|
25
|
+
static #DELETE_EVENT = "DeleteEvent";
|
|
24
26
|
|
|
25
27
|
static async GetAllEvents()
|
|
26
28
|
{
|
|
@@ -199,6 +201,25 @@ class CustomerEduPortal
|
|
|
199
201
|
eventObj.CreateFromJSON(JSON.parse(event));
|
|
200
202
|
return eventObj;
|
|
201
203
|
}
|
|
204
|
+
|
|
205
|
+
static async SetRecursivity(eventId, repeatTime)
|
|
206
|
+
{
|
|
207
|
+
var event = await APIController.Post(this.#MODULE, this.#SET_RECURSIVITY, {
|
|
208
|
+
'eventId': eventId,
|
|
209
|
+
'repeatTime': repeatTime,
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
var eventObj = new iEvent();
|
|
213
|
+
eventObj.CreateFromJSON(JSON.parse(event));
|
|
214
|
+
return eventObj;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static async DeleteEvent(eventId)
|
|
218
|
+
{
|
|
219
|
+
await APIController.Post(this.#MODULE, this.#DELETE_EVENT, {
|
|
220
|
+
'eventId': eventId,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
202
223
|
}
|
|
203
224
|
|
|
204
225
|
export default CustomerEduPortal;
|