Interface > healthstack.backend.integration.task

Package healthstack.backend.integration.task

Types

Name Summary
ChoiceProperties

[androidJvm]
class ChoiceProperties(val tag: String, val skipLogic: List<SkipLogic>? = null, val options: List<Option>) : ItemProperties
Item properties for the choice question.

Contents

[androidJvm]
data class Contents(val type: String, val required: Boolean, val title: String? = null, val explanation: String? = null, val itemProperties: ItemProperties? = null, val completionTitle: String? = null, val completionDescription: String? = null)
Stores the information of the contents received from backend.

DateTimeProperties

[androidJvm]
class DateTimeProperties(val tag: String, val skipLogic: List<SkipLogic>? = null, val isTime: Boolean, val isDate: Boolean, val isRange: Boolean) : ItemProperties
Item properties for the date/time question.

Item

[androidJvm]
data class Item(val name: String, val type: String, val contents: Contents, val sequence: Int)
Stores the information of the item received from backend.

ItemProperties

[androidJvm]
open class ItemProperties(val tag: String, val skipLogic: List<SkipLogic>?)
System distinguishes the UI component based on the tag.

ItemResult

[androidJvm]
data class ItemResult(val itemName: String, val result: String)
Data Transfer Object for uploading the result of each item.

Option

[androidJvm]
data class Option(val value: String, val label: String? = null)
Stores the option.

PropertyDeserializer

[androidJvm]
class PropertyDeserializer : JsonDeserializer<ItemProperties>

RankingProperties

[androidJvm]
class RankingProperties(val tag: String, val skipLogic: List<SkipLogic>? = null, val options: List<Option>) : ItemProperties
Item properties for the ranking question.

ScaleProperties

[androidJvm]
class ScaleProperties(val tag: String, val skipLogic: List<SkipLogic>? = null, val low: Int, val high: Int, val lowLabel: String?, val highLabel: String?) : ItemProperties
Item properties for the scale question.

SkipLogic

[androidJvm]
data class SkipLogic(val condition: String, val goToItemSequence: Int)

TaskClient

[androidJvm]
interface TaskClient
Interface for get task from the backend and upload result to the backend.

TaskResult

[androidJvm]
data class TaskResult(val userId: String, val taskId: String, val revisionId: Int, val startedAt: String, val submittedAt: String, val itemResults: List<ItemResult>)
Data Transfer Object for uploading the result of the task.

TaskSpec

[androidJvm]
data class TaskSpec(val revisionId: Int, val taskId: String, val title: String, val type: String, val description: String?, val schedule: String, val startTime: String, val endTime: String, val validTime: Long, val items: List<Item>)
Stores the information of the task received from backend.

TextProperties

[androidJvm]
class TextProperties(val tag: String, val skipLogic: List<SkipLogic>? = null) : ItemProperties
System distinguishes the UI component based on the tag.