2using System.Threading.Tasks;
42 if (!(
Content is
string TextContent))
43 throw new Exception(
"Expected text content.");
46 if (!(this.Personal is
null))
48 if (await this.Personal.Evaluate(Arguments) is
bool b)
51 throw new Exception(
"Personal must be a boolean value.");
61 Timestamp = DateTime.UtcNow,
67 if (Arguments.
Token is
null)
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
A text note logged on the token.
Abstract base class for note actions.
Personal Personal
Personal value
Defines if a note is personal or not.
TextNote()
Adds a text note.
override IStateMachineNode Create()
Creates a new node of the corresponding type.
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
override string LocalName
Local name
Contains information required for evaluating script in a state-machine.
StateMachine Machine
Reference to state-machine definition.
Token Token
Reference to related token.
Task< object > Evaluate(EvaluationArguments Arguments)
Evaluates the value node.
Duration? ArchiveRequired
Duration after which token expires, the token is required to be archived.
CaseInsensitiveString StateMachineId
ID of State Machine.
Duration? ArchiveOptional
Duration after which token expires, and the required archiving time, the token can optionally be arch...
DateTime Expires
When state-machine expires
Interface for State-Machine nodes