-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
done with getting specific data from folder's path in bloc and bloc's…
… state model
- Loading branch information
Showing
12 changed files
with
132 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/features/telegram_file_picker_feature/data/repo/telegram_file_picker_repo_impl.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/features/telegram_file_picker_feature/domain/repo/telegram_file_picker_repo.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
...telegram_file_picker_feature/domain/usecases/file_picker_usecase/file_picker_usecase.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
|
||
import 'package:yahay/features/telegram_file_picker_feature/domain/entities/telegram_file_image_with_compressed_and_original_path_entity.dart'; | ||
import 'package:yahay/features/telegram_file_picker_feature/domain/entities/telegram_path_folder_file.dart'; | ||
import 'package:yahay/features/telegram_file_picker_feature/domain/repo/telegram_file_picker_repo.dart'; | ||
|
||
class FilePickerUseCase { | ||
final TelegramFilePickerRepo _filePickerRepo; | ||
|
||
FilePickerUseCase(this._filePickerRepo); | ||
|
||
// | ||
// for getting recent files -> images and videos | ||
Stream<TelegramPathFolderFile?> getRecentImagesAndVideos() async* { | ||
yield* _filePickerRepo.getRecentImagesAndVideos(); | ||
} | ||
|
||
// | ||
// for getting all download's path files here | ||
Stream<TelegramPathFolderFile?> downloadsPathFilesData() async* { | ||
yield* _filePickerRepo.getRecentFiles(); | ||
} | ||
|
||
// | ||
// for getting specific app folder data, does not matter what | ||
Stream<TelegramPathFolderFile?> getSpecificFolderData(String path) => | ||
_filePickerRepo.getSpecificFolderData(path); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters