HomeRepository

Interface defining operations for interacting with the home repository.

Functions

Link copied to clipboard
abstract suspend fun createOrUpdateJetpack(jetpack: Jetpack): Result<Unit>

Creates or updates a jetpack in the repository.

Link copied to clipboard
abstract fun getJetpack(id: String): Flow<Jetpack>

Retrieves a specific jetpack by its ID.

Link copied to clipboard
abstract fun getJetpacks(): Flow<List<Jetpack>>

Retrieves a list of all jetpacks.

Link copied to clipboard
abstract suspend fun markJetpackAsDeleted(jetpack: Jetpack): Result<Unit>

Marks a jetpack as deleted in the repository.

Link copied to clipboard
abstract suspend fun sync(): Flow<SyncProgress>

Synchronizes data and returns a Flow emitting the progress of the sync operation.