mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 09:38:43 +03:00
* Change path prefix from '/memories/' to '/people/' Updated the AndroidManifest.xml to change the path prefix from '/memories/' to '/people/'. Memories is anyway wrong and was replaced by /memory and now the people path completes the known deeplinks. * Add regex for people deep link handling Add regex for people deep link handling * Add deep link handling for 'people' route * fix: missing person route builder method --------- Co-authored-by: bwees <brandonwees@gmail.com>
35 lines
1.1 KiB
Dart
35 lines
1.1 KiB
Dart
import 'dart:async';
|
|
|
|
import 'package:immich_mobile/domain/models/person.model.dart';
|
|
import 'package:immich_mobile/infrastructure/repositories/people.repository.dart';
|
|
import 'package:immich_mobile/repositories/person_api.repository.dart';
|
|
|
|
class DriftPeopleService {
|
|
final DriftPeopleRepository _repository;
|
|
final PersonApiRepository _personApiRepository;
|
|
|
|
const DriftPeopleService(this._repository, this._personApiRepository);
|
|
|
|
Future<DriftPerson?> get(String personId) {
|
|
return _repository.get(personId);
|
|
}
|
|
|
|
Future<List<DriftPerson>> getAssetPeople(String assetId) {
|
|
return _repository.getAssetPeople(assetId);
|
|
}
|
|
|
|
Future<List<DriftPerson>> getAllPeople() {
|
|
return _repository.getAllPeople();
|
|
}
|
|
|
|
Future<int> updateName(String personId, String name) async {
|
|
await _personApiRepository.update(personId, name: name);
|
|
return _repository.updateName(personId, name);
|
|
}
|
|
|
|
Future<int> updateBrithday(String personId, DateTime birthday) async {
|
|
await _personApiRepository.update(personId, birthday: birthday);
|
|
return _repository.updateBirthday(personId, birthday);
|
|
}
|
|
}
|