Added .getClassList(). Resolves #1

This commit is contained in:
Jason 2025-06-02 21:14:59 +02:00
parent 0c3ffa3560
commit 438d5d85cd
Signed by: Jason
SSH Key Fingerprint: SHA256:fQKEt4hlnlnWT8RPAFQxV3EPc+jOg3LetCvSaBJWsNQ

View File

@ -53,6 +53,19 @@ class VirtuellerStundenplan {
};
}
/**
* Returns all classes of the school.
*
* @returns {String[]}
*/
async getClassList() {
const data = await this.request("RESTKlassenliste.php");
return {
head: new Head(data.Msg),
content: data.Klassen,
};
}
/**
* Returns all Messages.
*