56 lines
1.4 KiB
Dart
56 lines
1.4 KiB
Dart
import 'package:fcs/data/provider/fcs_shipment_data_provider.dart';
|
|
import 'package:fcs/domain/entities/connectivity.dart';
|
|
import 'package:fcs/domain/entities/fcs_shipment.dart';
|
|
|
|
import 'fcs_shipment_service.dart';
|
|
|
|
class FcsShipmentServiceImp implements FcsShipmentService {
|
|
FcsShipmentServiceImp({
|
|
required this.connectivity,
|
|
required this.shipmentDataProvider,
|
|
});
|
|
|
|
final Connectivity? connectivity;
|
|
final FcsShipmentDataProvider shipmentDataProvider;
|
|
|
|
@override
|
|
Future<void> createFcsShipment(FcsShipment fcsShipment) {
|
|
return shipmentDataProvider.createFcsShipment(fcsShipment);
|
|
}
|
|
|
|
@override
|
|
Future<void> updateFcsShipment(FcsShipment fcsShipment) {
|
|
return shipmentDataProvider.updateFcsShipment(fcsShipment);
|
|
}
|
|
|
|
@override
|
|
Future<String> report(FcsShipment fcsShipment) {
|
|
return shipmentDataProvider.reportFcsShipment(fcsShipment);
|
|
}
|
|
|
|
@override
|
|
Future<void> arriveFcsShipment(String id) {
|
|
return shipmentDataProvider.arriveFcsShipment(id);
|
|
}
|
|
|
|
@override
|
|
Future<void> cancelFcsShipment(String id) {
|
|
return shipmentDataProvider.cancelFcsShipment(id);
|
|
}
|
|
|
|
@override
|
|
Future<void> invoiceFcsShipment(String id) {
|
|
return shipmentDataProvider.invoiceFcsShipment(id);
|
|
}
|
|
|
|
@override
|
|
Future<void> processFcsShipment(String id) {
|
|
return shipmentDataProvider.processFcsShipment(id);
|
|
}
|
|
|
|
@override
|
|
Future<void> shipFcsShipment(String id) {
|
|
return shipmentDataProvider.shipFcsShipment(id);
|
|
}
|
|
}
|