App-Support > healthstack.app.task.repository > TaskRepository

TaskRepository

[androidJvm]
interface TaskRepository

Functions

Name Summary
getActiveTasks

[androidJvm]
abstract fun getActiveTasks(targetTime: LocalDateTime): Flow<List<Task>>

getCompletedTasks

[androidJvm]
abstract fun getCompletedTasks(targetDay: LocalDate): Flow<List<Task>>

getCompletedTasksToSync

[androidJvm]
abstract fun getCompletedTasksToSync(from: LocalDateTime, to: LocalDateTime): Flow<List<Task>>

getUpcomingTasks

[androidJvm]
abstract fun getUpcomingTasks(targetTime: LocalDateTime): Flow<List<Task>>

insertAll

[androidJvm]
abstract suspend fun insertAll(tasks: List<Task>)

updateResult

[androidJvm]
abstract suspend fun updateResult(task: Task)

Inheritors

Name
TaskRepositoryImpl