Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
get_collection_contact_list_usecase.dart
Go to the documentation of this file.
1import 'package:dartz/dartz.dart';
2import '../../../../core/common/use_case/use_case.dart';
3import '../../../../core/error/failures.dart';
4import '../entities/res/res_collection_contact_entity.dart';
5import '../repositories/collection_repository.dart';
6
8 final int restaurantId;
9
10 GetCollectionContactListParams({required this.restaurantId});
11}
12
13class GetCollectionContactListUseCase implements UseCase<List<ResCollectionContactEntity>, GetCollectionContactListParams> {
15
16 GetCollectionContactListUseCase({required this.repository});
17
18 @override
19 Future<Either<Failure, List<ResCollectionContactEntity>>> call(GetCollectionContactListParams params) async {
20 return await repository.getCollectionContactList(restaurantId: params.restaurantId);
21 }
22}
GetCollectionContactListParams({required this.restaurantId})
final int restaurantId
override Future< Either< Failure, List< VehicleEntity > > > call(GetAvailableVehiclesParams params) async
GetCollectionContactListUseCase({required this.repository})
class GetCollectionContactListParams repository