mirror of
https://github.com/immich-app/immich.git
synced 2026-02-15 05:18:37 +03:00
23 lines
629 B
Dart
23 lines
629 B
Dart
import 'dart:async';
|
|
|
|
import 'package:immich_mobile/domain/models/album.model.dart';
|
|
import 'package:immich_mobile/domain/models/asset.model.dart';
|
|
|
|
abstract interface class IDeviceAlbumRepository {
|
|
/// Fetches all [Album] from device
|
|
Future<List<Album>> getAll();
|
|
|
|
/// Returns the number of asset in the album
|
|
Future<int> getAssetCount(String albumId);
|
|
|
|
/// Fetches assets belong to the albumId
|
|
Future<List<Asset>> getAssetsForAlbum(
|
|
String albumId, {
|
|
int start = 0,
|
|
int end = 0x7fffffffffffffff,
|
|
DateTime? modifiedFrom,
|
|
DateTime? modifiedUntil,
|
|
bool orderByModificationDate = false,
|
|
});
|
|
}
|