2using System.Collections.Generic;
3using System.Threading.Tasks;
15 private string afterNodeId =
string.Empty;
16 private string afterPartition =
string.Empty;
17 private string displayName =
string.Empty;
18 private string nodeType =
string.Empty;
19 private bool sniffable =
false;
52 List<Parameter>
Parameters =
new List<Parameter>();
54 foreach (
Parameter P
in await Node.GetDisplayableParametersAsync(
Language, Caller))
57 if (!(AdditionalParameters is
null))
59 foreach (
Parameter P
in AdditionalParameters)
74 ParentId = Node.Parent?.NodeId ??
string.Empty,
95 return Id1 == Id2 ? string.Empty : Id1;
101 [DefaultValueStringEmpty]
104 get => this.afterNodeId;
105 set => this.afterNodeId = value;
111 [DefaultValueStringEmpty]
114 get => this.afterPartition;
115 set => this.afterPartition = value;
121 [DefaultValueStringEmpty]
124 get => this.displayName;
125 set => this.displayName = value;
131 [DefaultValueStringEmpty]
134 get => this.nodeType;
135 set => this.nodeType = value;
141 [DefaultValue(
false)]
144 get => this.sniffable;
145 set => this.sniffable = value;
Contains information about a language.
Base class for all node parameters.
Tokens available in request.
NodeAdded()
Node added event.
static Task< NodeAdded > FromNode(INode Node, Language Language, RequestOrigin Caller, bool Sniffable)
Creates an event object from a node object.
string AfterNodeId
In an ordered set of nodes, the new node is added after this node, if provided.
override SourceEventType EventType
Type of data source event.
string AfterPartition
In an ordered set of nodes, the new node is added after the node defined by AfterNodeId,...
string DisplayName
Display name.
string NodeType
Type of node, at time of event.
bool Sniffable
If node was sniffable, at time of event.
static string EmptyIfSame(string Id1, string Id2)
Returns Id1 if different, string.Empty if the same.
static async Task< NodeAdded > FromNode(INode Node, Language Language, RequestOrigin Caller, bool Sniffable, params Parameter[] AdditionalParameters)
Creates an event object from a node object.
string NodeId
Node identity.
string LogId
Log identity, if different from NodeId.
string Partition
Optional partition.
string LocalId
Local identity, if different from NodeId.
Abstract base class for all node events with parameters.
string ParentPartition
Partition of parent of node, at time of event.
string ParentId
Parent identity of node, at time of event.
bool HasChildren
If node had children, at time of event.
bool ChildrenOrdered
If node children was ordered, at time of event.
bool IsControllable
If node was controllable, at time of event.
Parameter[] Parameters
Displayable parameters.
DateTime Updated
When node was last updated, at time of event.
bool HasCommands
If node had commands, at time of event.
bool IsReadable
If node was readable, at time of event.
NodeState State
State of node, at time of event.
string SourceId
Data source identity.
DateTime Timestamp
Timestamp of event.
Interface for nodes that are published through the concentrator interface.
SourceEventType
Data Source event types