mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04:00
* fix: deep links when using the beta timeline * Update remote_asset.repository.dart * Update mobile/lib/domain/services/asset.service.dart Co-authored-by: Alex <alex.tran1502@gmail.com> * return optional from album get * do not include trashed assets in album asset count Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> * formatting --------- Co-authored-by: Alex <alex.tran1502@gmail.com> Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
24 lines
606 B
Dart
24 lines
606 B
Dart
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);
|
|
}
|
|
|
|
Future<DriftMemory?> get(String memoryId) {
|
|
return _repository.get(memoryId);
|
|
}
|
|
|
|
Future<int> getCount() {
|
|
return _repository.getCount();
|
|
}
|
|
}
|