mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: asset face sync (#20048)
* chore: remove thumbnailPath from person sync dto * feat: asset face sync
This commit is contained in:
parent
826eaedae6
commit
df318ac641
26 changed files with 699 additions and 20 deletions
10
mobile/openapi/lib/model/sync_person_v1.dart
generated
10
mobile/openapi/lib/model/sync_person_v1.dart
generated
|
|
@ -22,7 +22,6 @@ class SyncPersonV1 {
|
|||
required this.isHidden,
|
||||
required this.name,
|
||||
required this.ownerId,
|
||||
required this.thumbnailPath,
|
||||
required this.updatedAt,
|
||||
});
|
||||
|
||||
|
|
@ -44,8 +43,6 @@ class SyncPersonV1 {
|
|||
|
||||
String ownerId;
|
||||
|
||||
String thumbnailPath;
|
||||
|
||||
DateTime updatedAt;
|
||||
|
||||
@override
|
||||
|
|
@ -59,7 +56,6 @@ class SyncPersonV1 {
|
|||
other.isHidden == isHidden &&
|
||||
other.name == name &&
|
||||
other.ownerId == ownerId &&
|
||||
other.thumbnailPath == thumbnailPath &&
|
||||
other.updatedAt == updatedAt;
|
||||
|
||||
@override
|
||||
|
|
@ -74,11 +70,10 @@ class SyncPersonV1 {
|
|||
(isHidden.hashCode) +
|
||||
(name.hashCode) +
|
||||
(ownerId.hashCode) +
|
||||
(thumbnailPath.hashCode) +
|
||||
(updatedAt.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'SyncPersonV1[birthDate=$birthDate, color=$color, createdAt=$createdAt, faceAssetId=$faceAssetId, id=$id, isFavorite=$isFavorite, isHidden=$isHidden, name=$name, ownerId=$ownerId, thumbnailPath=$thumbnailPath, updatedAt=$updatedAt]';
|
||||
String toString() => 'SyncPersonV1[birthDate=$birthDate, color=$color, createdAt=$createdAt, faceAssetId=$faceAssetId, id=$id, isFavorite=$isFavorite, isHidden=$isHidden, name=$name, ownerId=$ownerId, updatedAt=$updatedAt]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -103,7 +98,6 @@ class SyncPersonV1 {
|
|||
json[r'isHidden'] = this.isHidden;
|
||||
json[r'name'] = this.name;
|
||||
json[r'ownerId'] = this.ownerId;
|
||||
json[r'thumbnailPath'] = this.thumbnailPath;
|
||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
||||
return json;
|
||||
}
|
||||
|
|
@ -126,7 +120,6 @@ class SyncPersonV1 {
|
|||
isHidden: mapValueOfType<bool>(json, r'isHidden')!,
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
||||
thumbnailPath: mapValueOfType<String>(json, r'thumbnailPath')!,
|
||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
||||
);
|
||||
}
|
||||
|
|
@ -184,7 +177,6 @@ class SyncPersonV1 {
|
|||
'isHidden',
|
||||
'name',
|
||||
'ownerId',
|
||||
'thumbnailPath',
|
||||
'updatedAt',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue