Class Context
xAPI statement Context class. Optional.
Namespace: i5.Toolkit.Core.ExperienceAPI
Assembly: cs.temp.dll.dll
Syntax
public class Context
Constructors
Context()
Creates a new context instance
Declaration
public Context()
Properties
ParentActivityIDs
A list holding the IDs of activities that serve as context-parent to this statement. There is usually just one parent activity, but the standard allows for more. The IDs need to be IRIs, the same ones used in xAPI Object IDs.
Declaration
public List<string> ParentActivityIDs { get; set; }
Property Value
Type | Description |
---|---|
List<String> |
Methods
AddParentActivity(String)
Adds parent activity to the context.
Declaration
public void AddParentActivity(string parentActivityId)
Parameters
Type | Name | Description |
---|---|---|
String | parentActivityId | The ID of the parent activity |