mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
202082f62e
* UserService * PartnerService * HashService * MemoryService * PersonService * SearchService * StackService
22 lines
469 B
Dart
22 lines
469 B
Dart
abstract interface class IPersonApiRepository {
|
|
Future<List<Person>> getAll();
|
|
Future<Person> update(String id, {String? name});
|
|
}
|
|
|
|
class Person {
|
|
Person({
|
|
required this.id,
|
|
required this.isHidden,
|
|
required this.name,
|
|
required this.thumbnailPath,
|
|
this.birthDate,
|
|
this.updatedAt,
|
|
});
|
|
|
|
final String id;
|
|
final DateTime? birthDate;
|
|
final bool isHidden;
|
|
final String name;
|
|
final String thumbnailPath;
|
|
final DateTime? updatedAt;
|
|
}
|