@itutoring/itutoring_application_js_api 1.4.7 → 1.4.8
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.
|
@@ -14,11 +14,19 @@ class SubjectManager
|
|
|
14
14
|
static #GET_ALL_AVAILABLE_COURSES = "GetAllAvailableCourses";
|
|
15
15
|
static #GET_ALL_AVAILABLE_PLACES = "GetAllAvailablePlaces";
|
|
16
16
|
static #GET_ALL_AVAILABLE_CLASSES = "GetAllAvailableClasses";
|
|
17
|
+
static #GET_ALL_AVAILABLE_LOCATIONS = "GetAllAvailableLocations";
|
|
17
18
|
|
|
18
19
|
// Cache keys
|
|
19
20
|
static #SUBJECTS_CACHE_KEY = "json_subjects_c_k";
|
|
20
21
|
static #COURSES_CACHE_KEY = "json_courses_c_k";
|
|
21
22
|
|
|
23
|
+
static async getAllAvailableLocations()
|
|
24
|
+
{
|
|
25
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_LOCATIONS);
|
|
26
|
+
var arr = JSON.parse(data);
|
|
27
|
+
return arr;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
32
|
* @returns Array (Subject[id]) of all available subjects as array of Subject objects. Key is id of subject.
|