feat: home grid
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import 'package:immich_mobile/domain/models/asset/remote_asset.model.dart';
|
||||
|
||||
abstract class IRemoteAssetRepository {
|
||||
/// Batch insert asset
|
||||
Future<bool> addAll(Iterable<RemoteAsset> assets);
|
||||
}
|
||||
Reference in New Issue
Block a user