mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
* refactor: user entity * fix: add users to album & user profile url * chore: rebase fixes * generate files * fix(mobile): timeline not reset on login * fix: test stub * refactor: rename user model (#16813) * refactor: rename user model * simplify import --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * chore: generate files * fix: use getAllAccessible instead of getAll --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
36 lines
775 B
Dart
36 lines
775 B
Dart
import 'package:immich_mobile/domain/models/user.model.dart';
|
|
|
|
abstract final class UserStub {
|
|
const UserStub._();
|
|
|
|
static final admin = UserDto(
|
|
uid: "admin",
|
|
email: "admin@test.com",
|
|
name: "admin",
|
|
isAdmin: true,
|
|
updatedAt: DateTime(2021),
|
|
profileImagePath: null,
|
|
avatarColor: AvatarColor.green,
|
|
);
|
|
|
|
static final user1 = UserDto(
|
|
uid: "user1",
|
|
email: "user1@test.com",
|
|
name: "user1",
|
|
isAdmin: false,
|
|
updatedAt: DateTime(2022),
|
|
profileImagePath: null,
|
|
avatarColor: AvatarColor.red,
|
|
);
|
|
|
|
static final user2 = UserDto(
|
|
uid: "user2",
|
|
email: "user2@test.com",
|
|
name: "user2",
|
|
isAdmin: false,
|
|
updatedAt: DateTime(2023),
|
|
profileImagePath: null,
|
|
avatarColor: AvatarColor.primary,
|
|
);
|
|
}
|