RPActivityResult
The result a RPActivityStep creates, populated with results, steptimes and interactions.
- Inheritance
-
- Object
- Serializable
- RPResult
- RPActivityResult
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPActivityResult.fromJson
RPActivityResult
- required String identifier,
Create a RPActivityResult.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
interactions
The list of Interactions used to store all relevant UI interaction from the testee.
results
The map of results with a String as identifier and generic type as value
stepTimes
The StepTimes class which holds all the times starting and ending of each stage in a test.
Methods
getResultForIdentifier
- String identifier
Returns result value for the given identifier from the results map Used if additional results were added.
setFinalResult
- dynamic result
Creates an entry for the results map with the default key.
Usually it's used when there's only one result produced by the Question Body
setResultForIdentifier
- String identifier,
- dynamic result
Adds a result to the result map with the given identifier.
Used when the result is not a traditional answer result (e.g. signature result). Also used at Form Steps where there are multiple questions asked during a single step.
toJson
Return a JSON encoding of this object.