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

15 lines
479 B
Dart

import 'dart:async';
import 'package:immich_mobile/domain/models/device_asset_hash.model.dart';
abstract interface class IDeviceAssetToHashRepository {
/// Add a new device asset to hash entry
Future<bool> upsertAll(Iterable<DeviceAssetToHash> assetHash);
// Gets the asset with the local ID from the device
Future<List<DeviceAssetToHash>> getForIds(Iterable<String> localIds);
/// Removes assets with the given [ids]
Future<void> deleteIds(Iterable<int> ids);
}