UserRepository

interface UserRepository

Repository to read and write data about users.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clear()

Clear users of this repository.

Link copied to clipboard
abstract suspend fun insertCurrentUser(user: User)

Inserts the current user of the SDK.

Link copied to clipboard
abstract suspend fun insertUser(user: User)

Inserts a users.

Link copied to clipboard
abstract suspend fun insertUsers(users: Collection<User>)

Insert many users.

Link copied to clipboard
abstract fun observeLatestUsers(): StateFlow<Map<String, User>>

Returns flow of latest updated users.

Link copied to clipboard
abstract suspend fun selectUser(userId: String): User?

Selects a user by id.

Link copied to clipboard
abstract suspend fun selectUsers(ids: List<String>): List<User>