Class Statement
A statement for the xAPI
Inheritance
Namespace: i5.Toolkit.Core.ExperienceAPI
Assembly: cs.temp.dll.dll
Syntax
public class Statement
Constructors
Statement(Actor, Verb, XApiObject)
Creates a new instance of an xAPI Statement.
Declaration
public Statement(Actor actor, Verb verb, XApiObject xapiObject)
Parameters
Type | Name | Description |
---|---|---|
Actor | actor | The Actor object of the statement. |
Verb | verb | The Verb object of the statement. |
XApiObject | xapiObject | The XApiObject of the statement. |
Statement(string, string, string)
Creates a new instance of an xAPI statement
Declaration
public Statement(string actorMail, string verbUrl, string objectUrl)
Parameters
Type | Name | Description |
---|---|---|
string | actorMail | The mail address of the actor |
string | verbUrl | The id of the verb (should be a url) |
string | objectUrl | The id of the object (should be a url) |
Fields
actor
The actor of the xAPI statement
Declaration
public Actor actor
Field Value
Type | Description |
---|---|
Actor |
context
The context of the xAPI statement. An optional property that provides a place to add contextual information to a Statement.
Declaration
public Context context
Field Value
Type | Description |
---|---|
Context |
object
The object of the xAPI statement
Declaration
public XApiObject @object
Field Value
Type | Description |
---|---|
XApiObject |
result
The result of the xAPI statement. An optional property that represents a measured outcome related to the Statement in which it is included.
Declaration
public Result result
Field Value
Type | Description |
---|---|
Result |
timestamp
The time at which the experience occured. Optional, but if not provided will be given by the LRS upon receipt/storing.
Declaration
public DateTime? timestamp
Field Value
Type | Description |
---|---|
DateTime? |
verb
The verb of the xAPI statement
Declaration
public Verb verb
Field Value
Type | Description |
---|---|
Verb |
Methods
ToJSONString()
Declaration
public string ToJSONString()
Returns
Type | Description |
---|---|
string |