UserModelDataService

interface UserModelDataService : IAppDatabase

Service part for work with model UserModel

Author

Vitaliy Zarubin

Functions

clearCacheAfterLogout
Link copied to clipboard
open override fun clearCacheAfterLogout()

Performed when the user logs out

clearUserModel
Link copied to clipboard
open suspend fun clearUserModel()

Remove all models

countUserModel
Link copied to clipboard
open suspend fun countUserModel(): Int

Get count models

getUserModel
Link copied to clipboard
open fun getUserModel(userId: String): Flow<UserModel>

Get Flow model

insertUserModel
Link copied to clipboard
open suspend fun insertUserModel(vararg models: UserModel)

Fun for insert models

pagingListUserModel
Link copied to clipboard
open fun pagingListUserModel(): PagingSource<Int, UserModel>

Get PagingSource for paging list

Properties

dao
Link copied to clipboard
private val dao: UserModelDao

Doa model UserModel

db
Link copied to clipboard
abstract override val db: UsersDatabase

Base room db

Inheritors

UsersDataService
Link copied to clipboard