All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dk.cachet.carp.common.application.data.TriggeredTask.kt Maven / Gradle / Ivy

Go to download

Helper classes and base types relied upon by all subsystems. This library does not contain any domain logic.

The newest version!
package dk.cachet.carp.common.application.data

import dk.cachet.carp.common.application.triggers.TaskControl
import kotlinx.serialization.*
import kotlin.js.JsExport


/**
 * Indicates the task with [taskName] was started or stopped ([control]) by the trigger with [triggerId]
 * on the device with [destinationDeviceRoleName], referring to identifiers in the study protocol.
 * [triggerData] may contain additional information related to the circumstances which caused the trigger to fire.
 */
@Serializable
@SerialName( CarpDataTypes.TRIGGERED_TASK_TYPE_NAME )
@JsExport
data class TriggeredTask(
    val triggerId: Int,
    val taskName: String,
    val destinationDeviceRoleName: String,
    val control: TaskControl.Control,
    val triggerData: Data? = null
) : Data




© 2015 - 2024 Weber Informatics LLC | Privacy Policy