mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-29 04:36:43 +01:00
18 lines
522 B
Dart
18 lines
522 B
Dart
|
import 'package:nc_photos/account.dart';
|
||
|
import 'package:nc_photos/entity/face_recognition_person.dart';
|
||
|
import 'package:nc_photos/entity/person.dart';
|
||
|
import 'package:nc_photos/entity/person/content_provider/face_recognition.dart';
|
||
|
|
||
|
class PersonBuilder {
|
||
|
static Person byFaceRecognitionPerson(
|
||
|
Account account, FaceRecognitionPerson person) {
|
||
|
return Person(
|
||
|
name: person.name,
|
||
|
contentProvider: PersonFaceRecognitionProvider(
|
||
|
account: account,
|
||
|
person: person,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|