1using System.Collections.Generic;
2using System.Threading.Tasks;
46 public override Task<IEnumerable<ICommand>>
Commands => this.GetCommands();
48 private async Task<IEnumerable<ICommand>> GetCommands()
50 List<ICommand> Result =
new List<ICommand>();
51 Result.AddRange(await base.Commands);
54 if (!(Client is
null))
56 this.
GetRemoteFullJid(Client, out
bool HasContact, out
bool HasSubscription);
58 if (HasContact && HasSubscription)
62 return Result.ToArray();
Implements an XMPP concentrator client interface.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
bool TryGetExtension(Type Type, out IXmppExtension Extension)
Tries to get a registered extension of a specific type from the client.
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 ...
Scans a concentrator node for its root sources.
Node representing an XMPP concentrator.
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 ...
async Task< ConcentratorClient > GetConcentratorClient()
Gets the concentrator client associated with the XMPP client associated with the node.
override Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
ConcentratorDevice()
Node representing an XMPP concentrator.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Base class for nodes in a remote concentrator.
Node representing a data source in an XMPP concentrator.
Node representing a device that is connected to XMPP.
string GetRemoteFullJid(XmppClient Client, out bool HasContact, out bool HasSubscription)
Gets the Full JID of the connected device.
async Task< XmppClient > GetClient()
Gets the XMPP Client associated with node.
Interface for nodes that are published through the concentrator interface.