TasksRepo

interface TasksRepo

Interface representing a repository for managing tasks.

Functions

Link copied to clipboard
abstract suspend fun add(task: Task)

Adds a new task to the repository.

Link copied to clipboard
abstract suspend fun get(planId: UUID): List<Task>

Retrieves all tasks for a specific plan.

abstract suspend fun get(request: GetTasksRequest): Task?

Retrieves a task based on the specified request parameters.

Link copied to clipboard
abstract suspend fun getLatest(planId: UUID): Task?

Retrieves the latest task for a specific plan.

Link copied to clipboard
abstract suspend fun update(task: Task)

Updates an existing task in the repository.

Link copied to clipboard
abstract suspend fun updateStatus(id: UUID, status: TaskStatus)

Updates the status of a task.

abstract suspend fun updateStatus(id: UUID, status: TaskStatus, executedAt: Instant)

Updates the status and execution time of a task.