public class DSBMobileParser extends UntisCommonParser
This parser can be accessed using "dsbmobile" for SubstitutionScheduleData.setApi(String).
SubstitutionScheduleData.setData(JSONObject) to configure the parser:
classes (Array of Strings, required)type (String, optional)"untis" or "davinci" to specify which type of schedule is
used. By default, the parser tries to detect this automatically, but this does not always work.scheduleFilter (String, optional)encoding (String, optional)UntisCommonParser (if it is an Untis
schedule).
DSBmobile schedules always need a login using a school number and a password. You have to set a
SchoolNumberPasswordAuthenticationData which specifies the 6-digit school number.colorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, scheduleData| Constructor and Description |
|---|
DSBMobileParser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllTeachers()
Get a list of all available teachers.
|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
getAllClasses, parseSubstitutionTablecontains, getClassesFromJson, getCredential, getInstance, getLastChange, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, isPersonal, recognizeType, setCredential, setDebuggingDataHandlerpublic DSBMobileParser(SubstitutionScheduleData scheduleData, CookieProvider cookieProvider)
public SubstitutionSchedule getSubstitutionSchedule() throws IOException, org.json.JSONException, CredentialInvalidException
SubstitutionScheduleParsergetSubstitutionSchedule in interface SubstitutionScheduleParsergetSubstitutionSchedule in class BaseParserSubstitutionScheduleIOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctpublic List<String> getAllTeachers()
BaseParsernull.getAllTeachers in class BaseParser