commonMain.dk.cachet.carp.common.application.data.CompletedTask.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 kotlinx.serialization.*
import kotlin.js.JsExport
/**
* Indicates the task with [taskName] was completed.
* [taskData] holds the result of a completed interactive task, or null if no result is expected.
*/
@Serializable
@SerialName( CarpDataTypes.COMPLETED_TASK_TYPE_NAME )
@JsExport
data class CompletedTask( val taskName: String, val taskData: Data? = null ) : Data