Added Streams to TourRepository

This commit is contained in:
Dennis Nemec
2026-01-03 01:29:21 +01:00
parent edb8676f5a
commit 9111dc92db
43 changed files with 1232 additions and 931 deletions

View File

@ -20,8 +20,8 @@ import '../../../../dto/discount_update_response.dart';
import '../../../../dto/scan_response.dart';
import '../../../authentication/exceptions.dart';
class DeliveryInfoService {
DeliveryInfoService();
class TourService {
TourService();
Future<void> updateDelivery(Delivery delivery) async {
try {
@ -29,6 +29,7 @@ class DeliveryInfoService {
headers.addAll(getSessionOrThrow());
debugPrint(getSessionOrThrow().toString());
debugPrint(delivery.state.toString());
debugPrint(jsonEncode(DeliveryUpdateDTO.fromEntity(delivery).toJson()));
var response = await post(
@ -97,7 +98,7 @@ class DeliveryInfoService {
/// List all available deliveries for today.
Future<Tour?> getTourOfToday(String userId) async {
Future<Tour> getTourOfToday(String userId) async {
try {
var response = await post(
urlBuilder("_web_getDeliveries"),