mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-30 13:18:19 +01:00
17 lines
522 B
Dart
17 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,
|
|
),
|
|
);
|
|
}
|
|
}
|