public interface SubstitutionScheduleParser
SubstitutionScheduleData object to load and
parse the current substitution schedule and return the result as a SubstitutionSchedule object.| Modifier and Type | Method and Description |
|---|---|
Credential |
getCredential() |
org.joda.time.LocalDateTime |
getLastChange()
Returns the time when the substitution schedule was last changed.
|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
boolean |
isPersonal()
Some substitution schedule systems allow the user to only see his "own" substitution schedule depending on the
credentials he enters.
|
void |
setCredential(Credential credential) |
SubstitutionSchedule getSubstitutionSchedule() throws java.io.IOException, org.json.JSONException, CredentialInvalidException
SubstitutionSchedulejava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctorg.joda.time.LocalDateTime getLastChange()
throws java.io.IOException,
org.json.JSONException,
CredentialInvalidException
BaseParser returns null.java.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctvoid setCredential(Credential credential)
Credential getCredential()
boolean isPersonal()
true.