2025-07-04 13:49:15 -05:00
|
|
|
import 'package:immich_mobile/domain/models/memory.model.dart';
|
|
|
|
|
import 'package:immich_mobile/infrastructure/repositories/memory.repository.dart';
|
|
|
|
|
import 'package:logging/logging.dart';
|
|
|
|
|
|
|
|
|
|
class DriftMemoryService {
|
|
|
|
|
final log = Logger("DriftMemoryService");
|
|
|
|
|
|
|
|
|
|
final DriftMemoryRepository _repository;
|
|
|
|
|
|
|
|
|
|
DriftMemoryService(this._repository);
|
|
|
|
|
|
|
|
|
|
Future<List<DriftMemory>> getMemoryLane(String ownerId) {
|
|
|
|
|
return _repository.getAll(ownerId);
|
|
|
|
|
}
|
2025-07-22 11:24:32 -05:00
|
|
|
|
2025-07-25 12:02:49 -05:00
|
|
|
Future<DriftMemory?> get(String memoryId) {
|
|
|
|
|
return _repository.get(memoryId);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-22 11:24:32 -05:00
|
|
|
Future<int> getCount() {
|
|
|
|
|
return _repository.getCount();
|
|
|
|
|
}
|
2025-07-04 13:49:15 -05:00
|
|
|
}
|