GenerationResultRepository

Defines the GenerationResultRepository contract for the SDAI domain layer.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
abstract suspend fun deleteAll()

Performs the SDAI side effect handled by deleteAll.

Link copied to clipboard
abstract suspend fun deleteById(id: Long)

Performs the SDAI side effect handled by deleteById.

Link copied to clipboard
abstract suspend fun deleteByIdList(idList: List<Long>)

Performs the SDAI side effect handled by deleteByIdList.

Link copied to clipboard
abstract suspend fun getAll(): List<AiGenerationResult>

Loads SDAI data through getAll.

Link copied to clipboard
abstract suspend fun getById(id: Long): AiGenerationResult

Loads SDAI data through getById.

Link copied to clipboard
abstract suspend fun getByIds(idList: List<Long>): List<AiGenerationResult>

Loads SDAI data through getByIds.

Link copied to clipboard
abstract suspend fun getPage(limit: Int, offset: Int): List<AiGenerationResult>

Loads SDAI data through getPage.

Link copied to clipboard
abstract suspend fun insert(result: AiGenerationResult): Long

Performs the SDAI side effect handled by insert.

Link copied to clipboard
abstract fun observeCount(): Flow<Int>

Loads SDAI data through observeCount.

Link copied to clipboard
abstract fun observePage(limit: Int, offset: Int): Flow<List<AiGenerationResult>>

Loads SDAI data through observePage.

Link copied to clipboard
abstract suspend fun toggleVisibility(id: Long): Boolean

Converts SDAI data with toggleVisibility.