Added Streams to TourRepository
This commit is contained in:
@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user