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

17 lines
514 B
Dart

import 'package:immich_mobile/domain/models/asset.model.dart';
import 'package:immich_mobile/domain/models/render_list.model.dart';
abstract class IAssetRepository {
/// Batch insert asset
Future<bool> addAll(Iterable<Asset> assets);
/// Removes all assets
Future<bool> clearAll();
/// Fetch assets from the [offset] with the [limit]
Future<List<Asset>> fetchAssets({int? offset, int? limit});
/// Streams assets as groups grouped by the group type passed
Stream<RenderList> getRenderList();
}