mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 04:47:57 +03:00
18 lines
477 B
Dart
18 lines
477 B
Dart
import 'dart:async';
|
|
|
|
import 'package:immich_mobile/domain/models/album.model.dart';
|
|
|
|
abstract interface class IAlbumRepository {
|
|
/// Inserts a new album into the DB or updates if existing and returns the updated data
|
|
Future<Album?> upsert(Album album);
|
|
|
|
/// Fetch all albums
|
|
Future<List<Album>> getAll({bool localOnly, bool remoteOnly});
|
|
|
|
/// Removes album with the given [id]
|
|
Future<void> deleteId(int id);
|
|
|
|
/// Removes all albums
|
|
Future<void> deleteAll();
|
|
}
|