SubstitutionsParser class
- Inheritance
-
- Object
- AppletParser<
SubstitutionPlan> - SubstitutionsParser
Constructors
-
SubstitutionsParser(AppletContext ctx, {Future<
bool> isConnected()?})
Properties
- appletMeta → AppletMeta
-
finalinherited
- ctx → AppletContext
-
finalinherited
- entryFormat → DateFormat
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isConnected
→ Future<
bool> Function() -
finalinherited
- isEmpty ↔ bool
-
getter/setter pairinherited
-
latestResponse
→ FetcherResponse<
SubstitutionPlan> ? -
no setterinherited
- localFilter ↔ SubstitutionFilter
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ AppletResponseStream<
SubstitutionPlan> -
no setterinherited
Methods
-
addResponse(
FetcherResponse< SubstitutionPlan> data) → void -
inherited
-
dispose(
) → void -
inherited
-
fetchData(
{bool forceRefresh = false, bool secondTry = false}) → Future< void> -
inherited
-
fetchSubstitutionsAjaxBody(
String date) → Future< String> -
getHome(
) → Future< SubstitutionPlan> -
override
-
getSubstitutionPlanDocument(
) → Future< String> -
loadFilterFromStorage(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveFilterToStorage(
) → void -
startAutoRefresh(
) → void -
Starts periodic refresh. Safe to call repeatedly.
inherited
-
stopAutoRefresh(
) → void -
Stops periodic refresh while the applet is off-screen.
inherited
-
timerCallback(
Timer timer) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
typeFromJson(
String json) → SubstitutionPlan -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getSubstitutionDates(
String document) → List< String> -
Returns unique dates (
dd.MM.yyyy) for the AJAX path. -
parseAjaxDayJson(
String body, String date) → SubstitutionDay -
Parse one getSubstitutions AJAX response body for
date(dd.MM.yyyy). -
parseDocumentHtml(
String html, {Map< String, String> ? ajaxByDate}) → SubstitutionPlan - Offline entry: parse shell HTML plus optional AJAX day bodies.
-
parseHours(
String hours) → String -
parseInformationTables(
Element element) → List< SubstitutionInfo> -
parseLastEditDate(
String document) → DateTime? - Parses "Letzte Aktualisierung: 08.05.2024 um 13:35:30 Uhr".
-
parseSubstitutionsNonAJAX(
Document document) → SubstitutionPlan