//interface/healthstack.backend.integration.task/TaskClient

TaskClient

[androidJvm]
interface TaskClient

Interface for get task from the backend and upload result to the backend.

Functions

Name Summary
getTasks [androidJvm]
abstract suspend fun getTasks(idToken: String, lastSyncTime: LocalDateTime, endTime: LocalDateTime = LocalDateTime.now(Clock.systemUTC())): List<TaskSpec>
Retrieves the task that has been published since the lastSyncTime the task was retrieved.
uploadTaskResult [androidJvm]
abstract suspend fun uploadTaskResult(idToken: String, result: TaskResult)
Uploads the user’s task execution result to Backend.
uploadTaskResultAsFile [androidJvm]
abstract suspend fun uploadTaskResultAsFile(idToken: String, sourcePath: String, targetPath: String)
Uploads the user’s task execution result as a file to Backend.

Inheritors

Name
BackendFacade