Class Statement
- Namespace
- Xapi
- Assembly
- Xapi.Core.dll
An xAPI Statement: an Actor, a Verb and an object, with optional result, context and attachments.
public sealed record Statement : IEquatable<Statement>
- Inheritance
-
Statement
- Implements
- Inherited Members
Remarks
IEEE 9274.1.1, 4.2.2. Stored and Authority are normally set by the LRS, and a Learning Record Provider should leave Version unset. Record equality is exact structural equality; use StatementEquivalence for the standard's immutability comparison.
Constructors
Statement(Actor, Verb, StatementObject)
Creates a Statement.
public Statement(Actor actor, Verb verb, StatementObject @object)
Parameters
actorActorWhom the Statement is about.
verbVerbThe action.
objectStatementObjectWhat the action was done to.
Properties
Actor
Whom the Statement is about.
public Actor Actor { get; init; }
Property Value
Attachments
Attachment headers.
public XapiList<Attachment> Attachments { get; init; }
Property Value
Authority
Who asserts the Statement is true. Normally set by the LRS from the credentials used.
public Actor? Authority { get; init; }
Property Value
Context
Contextual information.
public Context? Context { get; init; }
Property Value
Id
The Statement's id. Assigned by the LRS when absent; Learning Record Providers should set it.
public Guid? Id { get; init; }
Property Value
- Guid?
Object
What the action was done to.
public StatementObject Object { get; init; }
Property Value
Result
The measured outcome.
public Result? Result { get; init; }
Property Value
Stored
When the LRS recorded the Statement. Set by the LRS.
public DateTimeOffset? Stored { get; init; }
Property Value
Timestamp
When the described experience happened. The LRS sets it to Stored when absent.
public DateTimeOffset? Timestamp { get; init; }
Property Value
Verb
The action.
public Verb Verb { get; init; }
Property Value
Version
The xAPI version the Statement was accepted with, for example 1.0.3 or 2.0.0. Set by the LRS.
public string? Version { get; init; }