Initial draft

This commit is contained in:
Dennis Nemec
2025-09-20 16:14:06 +02:00
commit b19a6e1cd4
219 changed files with 10317 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import 'package:hl_lieferservice/feature/delivery/overview/service/delivery_info_service.dart';
import 'package:hl_lieferservice/model/tour.dart';
class TourRepository {
DeliveryInfoService service;
TourRepository({required this.service});
Future<Tour> loadAll(String userId) async {
Tour? tour = await service.getTourOfToday(userId);
return tour!;
}
Future<List<Payment>> loadPaymentOptions() async {
return (await service.getPaymentMethods())
.map((option) => Payment.fromDTO(option))
.toList();
}
}