UserModelDataService

interface UserModelDataService : IAppDatabase

Service part for work with model UserModel

Functions

clearCacheAfterLogout
Link copied to clipboard
open suspend override fun clearCacheAfterLogout()

Performed when the user logs out

clearUserModel
Link copied to clipboard
open suspend fun clearUserModel()

Remove all models

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

Get Flow model

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

Fun for insert models

Properties

dao
Link copied to clipboard
private val dao: UserModelDao

Doa model UserModel

db
Link copied to clipboard
abstract override val db: AppDatabase

Base room db

Inheritors

AppDataService
Link copied to clipboard