Canteen class

Constructors

Canteen(String url)

Properties

canteenInstance Canteen?
Instance třídy pro správnou verzi iCanteenu
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
missingFeatures List<Features>
Seznam chybějících funkcí pro danou verzi iCanteenu - funkce, které nejsou ve vanilla webové verzi iCanteenu nebo nejsou podporovány
getter/setter pair
prihlasen bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
URL iCanteenu
getter/setter pair
verze String?
verze iCanteenu
getter/setter pair
vydejna int
getter/setter pair

Methods

cleanString(String string) String
doBurzy(Jidlo j, {int amount = 1}) Future<Jidelnicek>
Uloží vaše jídlo z/do burzy
jidelnicekDen({DateTime? den}) Future<Jidelnicek>
Získá jídlo pro daný den
jidelnicekMesic() Future<List<Jidelnicek>>
Získá jídlo do konce měsíce od aktuálního dne
login(String user, String password) Future<bool>
Přihlášení do iCanteen
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objednat(Jidlo j) Future<Jidelnicek>
Objedná vybrané jídlo
objednatZBurzy(Burza b) Future<Jidelnicek>
Objedná jídlo z burzy pomocí URL z instance třídy Burza
parseHtmlString(String htmlString) String
parseJidlo(String jidlo) JidloKategorizovano
zpracuje jídlo a rozdělí ho na kategorie (hlavní jídlo, polévka, salátový bar, pití...)
toString() String
A string representation of this object.
inherited
ziskatBurzu() Future<List<Burza>>
Získá aktuální jídla v burze
ziskejJidelnicek() Future<List<Jidelnicek>>
Získá jídelníček bez cen Tato feature není v prioritě, protože není moc užitečná. Je u ní menší šance, že bude fungovat pokud není v podporovaných verzích.
ziskejUzivatele() Future<Uzivatel>
Vrátí informace o uživateli ve formě instance Uzivatel

Operators

operator ==(Object other) bool
The equality operator.
inherited