Class SubStatement
- Namespace
- Xapi
- Assembly
- Xapi.Core.dll
A Statement used as the object of another Statement, for example to record something an Actor plans to do. It has no id, stored, version or authority, and its object cannot be another SubStatement.
public sealed record SubStatement : StatementObject, IEquatable<StatementObject>, IEquatable<SubStatement>
- Inheritance
-
SubStatement
- Implements
- Inherited Members
Remarks
IEEE 9274.1.1, 4.2.2.3 "Object As Sub-Statement Table".
Constructors
SubStatement(Actor, Verb, StatementObject)
Creates a SubStatement.
public SubStatement(Actor actor, Verb verb, StatementObject @object)
Parameters
actorActorWhom the SubStatement is about.
verbVerbThe action.
objectStatementObjectWhat the action was done to.
Properties
Actor
Whom the SubStatement is about.
public Actor Actor { get; init; }
Property Value
Attachments
Attachment headers.
public XapiList<Attachment> Attachments { get; init; }
Property Value
Context
Contextual information.
public Context? Context { get; init; }
Property Value
Object
What the action was done to. Must not be another SubStatement.
public StatementObject Object { get; init; }
Property Value
Result
The measured outcome.
public Result? Result { get; init; }
Property Value
Timestamp
When the described experience happened (may be in the future for a SubStatement).
public DateTimeOffset? Timestamp { get; init; }
Property Value
Verb
The action.
public Verb Verb { get; init; }