Local

Defines the Local 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 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 queryAll(): List<AiGenerationResult>

Executes the queryAll step in the SDAI domain layer.

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

Executes the queryById step in the SDAI domain layer.

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

Executes the queryByIdList step in the SDAI domain layer.

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

Executes the queryPage step in the SDAI domain layer.