UserApiImpl class
Constructors
- UserApiImpl(MedTechApi api)
Properties
- api → MedTechApi
-
final
- apiClient → ApiClient
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → Uuid
-
final
Methods
-
checkTokenValidity(
String userId, String token) → Future< bool?> -
Check token validity for a user.
override
-
createOrModifyUser(
User user) → Future< User?> -
Create a new user or modify an existing one.
override
-
createToken(
String userId, {Duration validity = const Duration(days: 30)}) → Future< String?> -
Create a token for a user.
override
-
deleteUser(
String userId) → Future< String?> -
Delete an existing user.
override
-
filterUsers(
Filter< User> filter, {String? nextUserId, int? limit}) → Future<PaginatedListUser?> -
Load users from the database by filtering them using the provided Filter.
override
-
getLoggedUser(
) → Future< User?> -
Get the details of the logged User.
override
-
getUser(
String userId) → Future< User?> -
Get a User by id.
override
-
getUserByEmail(
String email) → Future< User?> -
Get a User by email.
override
-
matchUsers(
Filter filter) → Future< List< String> ?> -
Load user ids from the database by filtering them using the provided Filter.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited