Healthstack-Adapter > healthstack.backend.integration.adapter > HealthStackBackendAdapter

HealthStackBackendAdapter

[androidJvm]
class HealthStackBackendAdapter(networkClient: HealthStackBackendAPI, projectId: String) : BackendFacade

Constructors

HealthStackBackendAdapter

[androidJvm]
fun HealthStackBackendAdapter(networkClient: HealthStackBackendAPI, projectId: String)

Types

Name Summary
Companion

[androidJvm]
object Companion

Functions

Name Summary
getTasks

[androidJvm]
open suspend override fun getTasks(idToken: String, lastSyncTime: LocalDateTime, endTime: LocalDateTime): List<TaskSpec>

registerUser

[androidJvm]
open suspend override fun registerUser(idToken: String, user: User)

sync

[androidJvm]
open suspend override fun sync(idToken: String, healthData: HealthData)

updateUser

[androidJvm]
open suspend override fun updateUser(idToken: String, userId: String, userProfile: UserProfile)

uploadTaskResult

[androidJvm]
open suspend override fun uploadTaskResult(idToken: String, result: TaskResult)

uploadTaskResultAsFile

[androidJvm]
open suspend override fun uploadTaskResultAsFile(idToken: String, sourcePath: String, targetPath: String)