Class Result
xAPI statement Result class. Optional.
Inheritance
object
Result
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 |
---|---|
bool? |
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 |
---|---|
TimeSpan? |
extensions
Extensions property of a Result. Keys MUST be IRIs.
Declaration
public Dictionary<string, string> extensions
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><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 |
---|---|
bool? |
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. |