This repository has been archived on 2023-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
canteenlib/lib/src/jidlo.dart
2022-03-05 16:49:11 +01:00

36 lines
671 B
Dart

/// Reprezentuje jedno jídlo z jídelníčku
class Jidlo {
/// Název jídla
String nazev;
/// Objednal si uživatel toto jídlo?
bool objednano;
/// Název výdejny
String cislo;
/// Cena
double? cena;
///Lze objednat?
bool lzeObjednat;
final String? orderUrl;
Jidlo(
{required this.nazev,
required this.objednano,
required this.cislo,
this.cena,
required this.lzeObjednat,
this.orderUrl});
}
/// Reprezentuje jídelníček pro jeden dan
class Jidelnicek {
/// Den, pro který je jídelníček zveřejněn
DateTime den;
/// Seznam jídel
List<Jidlo> jidla;
Jidelnicek(this.den, this.jidla);
}