KarlDao

interface KarlDao(source)

Functions

Link copied to clipboard
abstract suspend fun deleteAllUserInteractionData(userId: String)

Permanently removes all interaction data for a specific user.

Link copied to clipboard
abstract suspend fun deleteContainerState(userId: String)

Removes the container state for a specific user from the database.

Link copied to clipboard

Retrieves the complete interaction history for a specific user.

Link copied to clipboard
abstract suspend fun loadContainerState(userId: String): KarlContainerStateEntity?

Retrieves the persisted container state for a specific user.

Link copied to clipboard
abstract suspend fun loadInteractionDataInRange(userId: String, startTime: Long, endTime: Long): List<InteractionDataEntity>

Retrieves interaction data within a specific time range for temporal analysis.

Link copied to clipboard
abstract suspend fun loadRecentInteractionData(userId: String, limit: Int = 100): List<InteractionDataEntity>

Retrieves the most recent interaction data for a user with configurable pagination.

Link copied to clipboard
abstract suspend fun saveContainerState(stateEntity: KarlContainerStateEntity)

Persists the complete container state for a specific user to the database.

Link copied to clipboard
abstract suspend fun saveInteractionData(interactionData: InteractionDataEntity)

Persists a single user interaction data entry to the database.