CompletedTask
Data about an interactive user task with taskName, which has been completed.
taskData holds the result of the task, or null if no result is collected. Data type CarpDataTypes.COMPLETED_TASK. Two completed tasks are equivalentTo each other if they have the same taskName.
- Inheritance
-
- Object
- Serializable
- Data
- CompletedTask
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
CompletedTask.fromJson
CompletedTask
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
taskData
The result of the completed task, if any.
taskName
The name of the task which was completed. This is the name of the task as specified in the study protocol.
Methods
equivalentTo
Is this data equivalent to other?
This is a custom 'soft' equal (==) operator used to compare two data objects. Used in triggering when some data is collected. Returns false in this base class; override in subclasses to provide custom equivalence checking.
toJson
Return a JSON encoding of this object.