Files
immich/mobile-v2/lib/domain/interfaces/album.interface.dart
2025-02-26 08:58:19 +05:30

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();
}