Class Context
xAPI statement Context class. Optional.
Inheritance
object
Context
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 |
---|---|
System.Collections.Generic.List<T><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 |