2using System.Collections.Generic;
3using System.Threading.Tasks;
27 public Task<IEnumerable<ICommand>>
Commands =>
null;
44 return Task.FromResult(
false);
49 throw new NotSupportedException();
54 return Task.FromResult(
false);
59 return Task.FromResult(
false);
64 return Task.FromResult(
false);
74 throw new NotSupportedException();
79 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
86 public bool HasChildren => XmppServerModule.Server.NrClientConnections > 0;
92 Networking.XMPP.Server.IClientConnection[] Connections =
XmppServerModule.Server.GetClientConnections();
93 int i, c = Connections.Length;
96 for (i = 0; i < c; i++)
99 return Task.FromResult<IEnumerable<INode>>(Result);
105 return Task.FromResult<IEnumerable<Message>>(
null);
115 return Task.FromResult(
false);
120 return Task.FromResult(
false);
125 return Task.CompletedTask;
130 return Task.FromResult(
false);
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 ...
Task< bool > CanAddAsync(RequestOrigin Caller)
If the node can be added to by the caller.
Task< bool > MoveDownAsync(RequestOrigin Caller)
Tries to move the node down.
Task< bool > CanViewAsync(RequestOrigin Caller)
If the node is visible to the caller.
string Partition
Optional partition in which the Node ID is unique.
bool HasCommands
If the node has registered commands or not.
string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
bool IsReadable
If the node can be read.
Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
NodeState State
Current overall state of the node.
Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
Task DestroyAsync()
Destroys the node. If it is a child to a parent node, it is removed from the parent first.
bool ChildrenOrdered
If the children of the node have an intrinsic order (true), or if the order is not important (false).
Task< bool > MoveUpAsync(RequestOrigin Caller)
Tries to move the node up.
Task< IEnumerable< INode > > ChildNodes
Child nodes. If no child nodes are available, null is returned.
DateTime LastChanged
When the node was last updated.
Task< bool > CanEditAsync(RequestOrigin Caller)
If the node can be edited by the caller.
bool HasChildren
If the source has any child sources.
Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
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 ...
Task< bool > RemoveAsync(INode Child)
Removes a child from the node.
Task< IEnumerable< Message > > GetMessagesAsync(RequestOrigin Caller)
Gets messages logged on the node.
Task UpdateAsync()
Updates the node (in persisted storage).
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...
string SourceId
Optional ID of source containing node.
INode Parent
Parent Node, or null if a root node.
bool IsControllable
If the node can be controlled.
async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
string LogId
If provided, an ID for the node, as it would appear or be used in system logs. Can be null,...
Task AddAsync(INode Child)
Adds a new child to the node.
Service Module hosting the XMPP broker and its components.
Tokens available in request.
string From
Address of caller.
Interface for nodes that are published through the concentrator interface.
NodeState
State of a node.