Show / Hide Table of Contents

    Class Statement

    A statement for the xAPI

    Inheritance
    Object
    Statement
    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
    Nullable<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
    Back to top i5 Toolkit Documentation