Class Result
xAPI statement Result class. Optional.
Namespace: i5.Toolkit.Core.ExperienceAPI
Assembly: cs.temp.dll.dll
Syntax
public class Result
Constructors
Result()
Creates a new xAPI result instance
Declaration
public Result()
Fields
completion
Completion property of a Result. Indicates whether or not the Activity was completed.
Declaration
public bool? completion
Field Value
Type | Description |
---|---|
Nullable<Boolean> |
duration
Duration property of a Result. Period of time over which the Statement occurred. Must be ISO 8601 Duration compatible.
Declaration
public TimeSpan? duration
Field Value
Type | Description |
---|---|
Nullable<TimeSpan> |
extensions
Extensions property of a Result. Keys MUST be IRIs.
Declaration
public Dictionary<string, string> extensions
Field Value
Type | Description |
---|---|
Dictionary<String, String> |
response
Response property of a Result. A response appropriately formatted for the given Activity.
Declaration
public string response
Field Value
Type | Description |
---|---|
String |
success
Success property of a Result. Indicates whether or not the attempt on the Activity was successful.
Declaration
public bool? success
Field Value
Type | Description |
---|---|
Nullable<Boolean> |
Methods
AddMeasurementAttempt(String, String)
Adds a measurement attempt as a result of an activity. Realised as an extenstion of the Result field.
Declaration
public void AddMeasurementAttempt(string measurementIRI, string measuredValue)
Parameters
Type | Name | Description |
---|---|---|
String | measurementIRI | The IRI to be used to define the result extension. |
String | measuredValue | The value of the measurement. |