1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-14 07:04:24 +02:00

refactor(mobile): trash provider (#16219)

* refactor(mobile): trash provider

* refactor(mobile): trash provider

* pr feedback
This commit is contained in:
Alex
2025-02-20 22:14:41 -06:00
committed by GitHub
parent 34b88bb47a
commit 17a2043e76
8 changed files with 115 additions and 164 deletions

View File

@ -2,6 +2,7 @@ import 'package:immich_mobile/entities/album.entity.dart';
import 'package:immich_mobile/entities/asset.entity.dart';
import 'package:immich_mobile/entities/device_asset.entity.dart';
import 'package:immich_mobile/interfaces/database.interface.dart';
import 'package:immich_mobile/widgets/asset_grid/asset_grid_data_structure.dart';
abstract interface class IAssetRepository implements IDatabaseRepository {
Future<Asset?> getByRemoteId(String id);
@ -63,6 +64,10 @@ abstract interface class IAssetRepository implements IDatabaseRepository {
Future<void> clearTable();
Stream<Asset?> watchAsset(int id, {bool fireImmediately = false});
Future<List<Asset>> getTrashAssets(int userId);
Stream<RenderList> getTrashRenderListStream(int userId);
}
enum AssetSort { checksum, ownerIdChecksum }