1import 'package:dartz/dartz.dart';
3import '../../../../core/common/use_case/use_case.dart';
4import '../../../../core/error/failures.dart';
5import '../../data/models/unloading_request_model.dart';
6import '../entities/collection_voucher_entity.dart';
7import '../repositories/unloading_repository.dart';
17 required this.warehouseResponsibleId,
18 required this.firstWeight,
20 required this.collectionVouchers,
31 return await
repository.sendUnloading(UnloadingRequestModel(
32 collectionVouchers: params.collectionVouchers,
33 firstWeight: params.firstWeight,
35 warehouseResponsibleId: params.warehouseResponsibleId,
sealed class CheckInOutEvent extends Equatable userId
final int warehouseResponsibleId
final List< CollectionVoucherEntity > collectionVouchers
SendUnloadingParams({ required this.warehouseResponsibleId, required this.firstWeight, required this.userId, required this.collectionVouchers, })
override Future< Either< Failure, List< VehicleEntity > > > call(GetAvailableVehiclesParams params) async
SendUnloadingUsecase({required this.repository})