library / io.getstream.chat.android.livedata.repository / UserRepository

UserRepository

class UserRepository

Constructors

<init>

UserRepository(userDao: UserDao, cacheSize: Int = 100, currentUser: User?)

Properties

cacheSize

var cacheSize: Int

currentUser

var currentUser: User?

userCache

var userCache: LruCache<String, UserEntity>

userDao

var userDao: UserDao

Functions

insert

suspend fun insert(userEntities: List<UserEntity>): Unit

insertManyUsers

suspend fun insertManyUsers(users: List<User>): Unit

insertMe

suspend fun insertMe(user: User): Unit

insertUser

suspend fun insertUser(user: User): Unit

select

suspend fun select(userId: String): UserEntity?
suspend fun select(userIds: List<String>): List<UserEntity>

selectMe

suspend fun selectMe(): User?

selectUserMap

suspend fun selectUserMap(userIds: List<String>): MutableMap<String, User>