mirror of
https://github.com/immich-app/immich.git
synced 2024-12-27 10:58:13 +02:00
15c04d3056
* refactor(mobile): DB repository for asset, backup, sync service * review feedback * fix bug found by Alex --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
17 lines
542 B
Dart
17 lines
542 B
Dart
import 'package:immich_mobile/entities/backup_album.entity.dart';
|
|
import 'package:immich_mobile/interfaces/database.interface.dart';
|
|
|
|
abstract interface class IBackupRepository implements IDatabaseRepository {
|
|
Future<List<BackupAlbum>> getAll({BackupAlbumSort? sort});
|
|
|
|
Future<List<String>> getIdsBySelection(BackupSelection backup);
|
|
|
|
Future<List<BackupAlbum>> getAllBySelection(BackupSelection backup);
|
|
|
|
Future<void> updateAll(List<BackupAlbum> backupAlbums);
|
|
|
|
Future<void> deleteAll(List<int> ids);
|
|
}
|
|
|
|
enum BackupAlbumSort { id }
|