2024-09-16 22:26:14 +02:00
|
|
|
import 'package:immich_mobile/entities/backup_album.entity.dart';
|
2024-09-30 16:37:30 +02:00
|
|
|
import 'package:immich_mobile/interfaces/database.interface.dart';
|
|
|
|
|
|
|
|
abstract interface class IBackupRepository implements IDatabaseRepository {
|
|
|
|
Future<List<BackupAlbum>> getAll({BackupAlbumSort? sort});
|
2024-09-16 22:26:14 +02:00
|
|
|
|
|
|
|
Future<List<String>> getIdsBySelection(BackupSelection backup);
|
2024-09-30 16:37:30 +02:00
|
|
|
|
|
|
|
Future<List<BackupAlbum>> getAllBySelection(BackupSelection backup);
|
|
|
|
|
|
|
|
Future<void> updateAll(List<BackupAlbum> backupAlbums);
|
|
|
|
|
|
|
|
Future<void> deleteAll(List<int> ids);
|
2024-09-16 22:26:14 +02:00
|
|
|
}
|
2024-09-30 16:37:30 +02:00
|
|
|
|
|
|
|
enum BackupAlbumSort { id }
|