App-Support > healthstack.app.task.entity > Task

Task

[androidJvm]
data class Task(val id: Int? = null, val revisionId: Int, val taskId: String, val type: String, val properties: Task.Properties, val result: List<Task.Result>? = null, val createdAt: LocalDateTime = LocalDateTime.now(), val scheduledAt: LocalDateTime, val validUntil: LocalDateTime, val submittedAt: LocalDateTime? = null, val startedAt: LocalDateTime? = null)

Constructors

Task

[androidJvm]
fun Task(id: Int? = null, revisionId: Int, taskId: String, type: String, properties: Task.Properties, result: List<Task.Result>? = null, createdAt: LocalDateTime = LocalDateTime.now(), scheduledAt: LocalDateTime, validUntil: LocalDateTime, submittedAt: LocalDateTime? = null, startedAt: LocalDateTime? = null)

Types

Name Summary
Properties

[androidJvm]
data class Properties(val title: String, val description: String?, val items: List<Item>)

Result

[androidJvm]
data class Result(val questionId: String, val response: String)

Functions

Name Summary
toViewTask

[androidJvm]
fun toViewTask(): Task

Properties

Name Summary
createdAt

[androidJvm]
val createdAt: LocalDateTime

id

[androidJvm]
val id: Int? = null

properties

[androidJvm]
val properties: Task.Properties

result

[androidJvm]
val result: List<Task.Result>? = null

revisionId

[androidJvm]
val revisionId: Int

scheduledAt

[androidJvm]
val scheduledAt: LocalDateTime

startedAt

[androidJvm]
val startedAt: LocalDateTime? = null

submittedAt

[androidJvm]
val submittedAt: LocalDateTime? = null

taskId

[androidJvm]
val taskId: String

type

[androidJvm]
val type: String

validUntil

[androidJvm]
val validUntil: LocalDateTime