mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
* refactor: partner-page * cleanup --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
19 lines
483 B
Dart
19 lines
483 B
Dart
import 'package:immich_mobile/domain/models/user.model.dart';
|
|
|
|
import '../../utils.dart';
|
|
|
|
class PartnerFactory {
|
|
const PartnerFactory();
|
|
|
|
static Partner create({String? id, String? email, String? name, bool? inTimeline}) {
|
|
id = TestUtils.uuid(id);
|
|
return Partner(
|
|
id: id,
|
|
email: email ?? '$id@test.com',
|
|
name: name ?? 'user_$id',
|
|
inTimeline: inTimeline ?? false,
|
|
hasProfileImage: false,
|
|
profileChangedAt: DateTime.now(),
|
|
);
|
|
}
|
|
}
|