RepoModelDataService

interface RepoModelDataService : IAppDatabase

Service part for work with model RepoModel

Functions

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

Performed when the user logs out

clearRepoModel
Link copied to clipboard
open suspend fun clearRepoModel()

Remove all models

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

Count all models

getRepoModelById
Link copied to clipboard
open fun getRepoModelById(id: String): Flow<RepoModel>

Get Flow model by id

insertRepoModel
Link copied to clipboard
open suspend fun insertRepoModel(vararg models: RepoModel)

Fun for insert models

pagingSourceRepoModels
Link copied to clipboard
open fun pagingSourceRepoModels(): PagingSource<Int, RepoModel>

Get PagingSource for paging list

updateRepoModel
Link copied to clipboard
open suspend fun updateRepoModel(model: RepoModel)

Fun for update model

Properties

dao
Link copied to clipboard
private val dao: RepoModelDao

Doa model RepoModel

db
Link copied to clipboard
abstract override val db: AppDatabase

Base room db

Inheritors

AppDataService
Link copied to clipboard