26 lines
757 B
Dart
26 lines
757 B
Dart
/// "어디서 봤지?"의 한 가지 추측.
|
|
class Guess {
|
|
const Guess({
|
|
required this.relation,
|
|
required this.detail,
|
|
required this.confidence,
|
|
required this.reason,
|
|
});
|
|
|
|
final String relation; // 동창 | 동문 | 직장 동료 | 전 직장 동료 | 같은 모임 | 같은 여행 | 가족
|
|
final String detail; // 근거가 된 이름 (예: 가람초 2007)
|
|
final int confidence; // 0~100
|
|
final String reason; // 사용자에게 보여 줄 설명
|
|
|
|
@override
|
|
String toString() => '$relation($detail) $confidence%';
|
|
}
|
|
|
|
/// 이미 아는 사람 중 내 명함과 겹치는 사람 (자동 연동 추천).
|
|
class Recommendation {
|
|
const Recommendation(this.personId, this.guess);
|
|
|
|
final String personId;
|
|
final Guess guess;
|
|
}
|