2using System.Collections.Generic;
3using System.Threading.Tasks;
44 return Task.FromResult(
false);
49 return Task.FromResult(
false);
54 throw new NotSupportedException();
59 return Task.FromResult(
false);
64 return Task.FromResult(
false);
69 return Task.FromResult(
false);
79 throw new NotSupportedException();
84 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
94 return Task.FromResult<IEnumerable<Message>>(
null);
104 return Task.FromResult(
false);
109 return Task.FromResult(
false);
114 return Task.CompletedTask;
119 return Task.FromResult(
false);
128 return Task.FromResult<IEnumerable<ICommand>>(
new ICommand[]
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 ...
bool HasCommands
If the node has registered commands or not.
NodeState State
Current overall state of the node.
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.
Task< IEnumerable< Message > > GetMessagesAsync(RequestOrigin Caller)
Gets messages logged on the node.
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...
Task< IEnumerable< INode > > ChildNodes
Child nodes. If no child nodes are available, null is returned.
bool ChildrenOrdered
If the children of the node have an intrinsic order (true), or if the order is not important (false).
string SourceId
Optional ID of source containing node.
string Partition
Optional partition in which the Node ID is unique.
Task< bool > MoveDownAsync(RequestOrigin Caller)
Tries to move the node down.
Task UpdateAsync()
Updates the node (in persisted storage).
Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
Task DestroyAsync()
Destroys the node. If it is a child to a parent node, it is removed from the parent first.
async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Task< bool > RemoveAsync(INode Child)
Removes a child from the node.
bool HasChildren
If the source has any child sources.
bool IsControllable
If the node can be controlled.
Task< bool > CanAddAsync(RequestOrigin Caller)
If the node can be added 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 ...
INode Parent
Parent Node, or null if a root node.
Task< bool > CanViewAsync(RequestOrigin Caller)
If the node is visible to the caller.
Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands 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.
Task< bool > MoveUpAsync(RequestOrigin Caller)
Tries to move the node up.
bool IsReadable
If the node can be read.
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.