2using System.Collections.Generic;
3using System.Threading.Tasks;
29 public Task<IEnumerable<ICommand>>
Commands =>
null;
46 return Task.FromResult(
false);
51 throw new NotSupportedException();
56 return Task.FromResult(
false);
61 return Task.FromResult(
false);
66 return Task.FromResult(
false);
76 throw new NotSupportedException();
81 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
88 public bool HasChildren => XmppServerModule.Server.NrServerConnections > 0;
95 int i, c = Statistics.Length;
98 for (i = 0; i < c; i++)
108 return Task.FromResult<IEnumerable<INode>>(Result);
114 return Task.FromResult<IEnumerable<Message>>(
null);
124 return Task.FromResult(
false);
129 return Task.FromResult(
false);
134 return Task.CompletedTask;
139 return Task.FromResult(
false);
string Name
Name of Endpoint
Mainstains information about connectivity from a specific s2s endpoint.
int NrServerConnections
Number of server connections.
bool TryGetS2sEndpoint(string RemoteDomain, out IS2SEndpoint Endpoint)
Tries to get a server-to-server connection state object.
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 > MoveUpAsync(RequestOrigin Caller)
Tries to move the node up.
string LogId
If provided, an ID for the node, as it would appear or be used in system logs. Can be null,...
bool HasChildren
If the source has any child sources.
Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
string SourceId
Optional ID of source containing node.
Task< IEnumerable< Message > > GetMessagesAsync(RequestOrigin Caller)
Gets messages logged on the node.
bool IsControllable
If the node can be controlled.
NodeState State
Current overall state of the node.
Task< bool > CanViewAsync(RequestOrigin Caller)
If the node is visible to the caller.
bool ChildrenOrdered
If the children of the node have an intrinsic order (true), or if the order is not important (false).
string Partition
Optional partition in which the Node ID is unique.
Task< bool > RemoveAsync(INode Child)
Removes a child from the node.
Task< bool > CanAddAsync(RequestOrigin Caller)
If the node can be added to by the caller.
INode Parent
Parent Node, or null if a root node.
async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
Task< IEnumerable< INode > > ChildNodes
Child nodes. If no child nodes are available, null is returned.
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 > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
Task< bool > MoveDownAsync(RequestOrigin Caller)
Tries to move the node down.
Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
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,...
Task AddAsync(INode Child)
Adds a new child to the node.
bool IsReadable
If the node can be read.
DateTime LastChanged
When the node was last updated.
Task DestroyAsync()
Destroys the node. If it is a child to a parent node, it is removed from the parent first.
Task< bool > CanEditAsync(RequestOrigin Caller)
If the node can be edited by the caller.
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 UpdateAsync()
Updates the node (in persisted storage).
Service Module hosting the XMPP broker and its components.
Tokens available in request.
string From
Address of caller.
Interface for XMPP S2S endpoints
Interface for nodes that are published through the concentrator interface.
NodeState
State of a node.