Files
App-Gaslieferung/lib/model/supplier.dart
Dennis Nemec e0007dcf33 Daily commit
2026-02-05 10:46:13 +01:00

36 lines
758 B
Dart

import 'package:app_gaslieferung/model/address.dart';
import 'car.dart';
class Supplier {
String id;
String name;
Address address;
String? phoneNumber;
List<Car> cars;
Supplier({
required this.id,
required this.name,
required this.cars,
required this.address,
});
}
/// Contains information about the cars the supplier has and how many
/// deliveries they have per car.
class SupplierTourMetadata {
String date;
/// The list of cars the supplier has and how many deliveries they have per car.
List<TourMetadata> tours;
SupplierTourMetadata({required this.date, required this.tours});
}
class TourMetadata {
Car car;
int amountDeliveries;
TourMetadata({required this.car, required this.amountDeliveries});
}