App-Support > healthstack.app.task.dao > TaskDao

TaskDao

[androidJvm]
interface TaskDao

Functions

Name Summary
findById

[androidJvm]
abstract suspend fun findById(id: String): Task?

getActiveTasks

[androidJvm]
abstract fun getActiveTasks(now: String): Flow<List<Task>>

getCompletedTasks

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

getUpcomingTasks

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

insertAll

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

removeAll

[androidJvm]
abstract suspend fun removeAll()

setResult

[androidJvm]
abstract suspend fun setResult(id: String, result: List<Task.Result>, startedAt: String, submittedAt: String)

setSubmittedAt

[androidJvm]
abstract suspend fun setSubmittedAt(id: String, submittedAt: String)