2020-10-16 10:58:31 +06:30
|
|
|
import 'package:fcs/data/provider/shipment_data_provider.dart';
|
|
|
|
|
import 'package:fcs/data/services/shipment_service.dart';
|
|
|
|
|
import 'package:fcs/domain/entities/connectivity.dart';
|
|
|
|
|
import 'package:fcs/domain/entities/shipment.dart';
|
|
|
|
|
|
|
|
|
|
class ShipmentServiceImp implements ShipmentService {
|
|
|
|
|
ShipmentServiceImp({
|
2021-09-10 14:27:38 +06:30
|
|
|
required this.shipmentDataProvider,
|
|
|
|
|
required this.connectivity,
|
2020-10-16 10:58:31 +06:30
|
|
|
});
|
|
|
|
|
|
2021-09-10 14:27:38 +06:30
|
|
|
final Connectivity? connectivity;
|
2020-10-16 10:58:31 +06:30
|
|
|
final ShipmentDataProvider shipmentDataProvider;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> cancelShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.cancelShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> confirmShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.confirmShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> createShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.createShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> pickupShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.pickupShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> receiveShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.receiveShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> updateShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.updateShipment(shipment);
|
|
|
|
|
}
|
2020-10-19 05:13:49 +06:30
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> assignShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.assignShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> completeAssignShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.completeAssignShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> completePickupShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.completePickupShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> completePackShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.completePackShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> packShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.packShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> completeConfirmShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.completeConfirmShipment(shipment);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> completeReceiveShipment(Shipment shipment) {
|
|
|
|
|
return shipmentDataProvider.completeReceiveShipment(shipment);
|
|
|
|
|
}
|
2020-10-16 10:58:31 +06:30
|
|
|
}
|