initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:fpdart/fpdart.dart';
|
||||
import 'package:kuwot/core/domain/no_params.dart';
|
||||
import 'package:kuwot/core/domain/use_case.dart';
|
||||
import 'package:kuwot/core/error/failure.dart';
|
||||
import 'package:kuwot/features/quote/domain/entities/background_image.dart';
|
||||
import 'package:kuwot/features/quote/domain/repositories/quote_repository.dart';
|
||||
|
||||
class GetBackgroundImages extends UseCase<List<BackgroundImage>, NoParams> {
|
||||
final QuoteRepository _repository;
|
||||
|
||||
GetBackgroundImages(QuoteRepository repository) : _repository = repository;
|
||||
|
||||
@override
|
||||
Future<Either<Failure, List<BackgroundImage>>> call(NoParams params) async {
|
||||
return await _repository.getBackgroundImages();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue