1using System.Collections.Generic;
2using System.Threading.Tasks;
13 [TypeAlias(
"Waher.Things.Xmpp.XmppNode")]
27 [Page(2,
"XMPP", 100)]
28 [Header(10,
"Node ID:")]
29 [ToolTip(11,
"Node ID in data source (and partition).")]
54 return Task.FromResult(
75 public override Task<IEnumerable<ICommand>>
Commands => this.GetCommands();
77 private async Task<IEnumerable<ICommand>> GetCommands()
79 List<ICommand> Result =
new List<ICommand>();
80 Result.AddRange(await base.Commands);
83 if (!(Concentrator is
null))
84 Result.Add(
new ScanNode(Concentrator,
this));
86 return Result.ToArray();
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
INode Parent
Parent Node, or null if a root node.
Scans a node on a concentrator node for its child nodes.
Node representing an XMPP concentrator.
Base class for nodes in a remote concentrator.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
string RemoteNodeID
Node ID
override string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
override Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
override Task< bool > AcceptsChildAsync(INode Child)
If the node accepts a presumptive child, i.e. can receive as a child (if that child accepts the node ...
ConcentratorNode()
Base class for nodes in a remote concentrator.
Node representing a partition in a data source in an XMPP concentrator.
Node representing a data source in an XMPP concentrator.
Node representing an XMPP broker.
Abstract base class for devices on the XMPP network.
Interface for nodes that are published through the concentrator interface.