1using System.Collections.Generic;
2using System.Threading.Tasks;
27 [Page(2,
"XMPP", 100)]
29 [ToolTip(4,
"XMPP Address.")]
30 public string JID {
get;
set; }
59 return Task.FromResult(
false);
72 HasSubscription =
false;
83 HasSubscription =
true;
91 public override Task<IEnumerable<ICommand>>
Commands => this.GetCommands();
93 private async Task<IEnumerable<ICommand>> GetCommands()
95 List<ICommand> Result =
new List<ICommand>();
96 Result.AddRange(await base.Commands);
99 if (!(Client is
null))
101 this.
GetRemoteFullJid(Client, out
bool HasContact, out
bool HasSubscription);
103 if (!HasContact || !HasSubscription)
107 return Result.ToArray();
Maintains information about an item in the roster.
SubscriptionState State
roup Current subscription state.
string LastPresenceFullJid
Full JID of last resource sending online presence.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
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.
Class for the root node of the Metering topology.
Sends a presence subscription request.
Node representing an XMPP concentrator.
Node representing a device that is connected to XMPP.
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 ...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
ConnectedDevice()
Node representing a device that is connected to XMPP.
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< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
string GetRemoteFullJid(XmppClient Client, out bool HasContact, out bool HasSubscription)
Gets the Full JID of the connected device.
Abstract base class for devices on the XMPP network.
async Task< XmppClient > GetClient()
Gets the XMPP Client associated with node.
Interface for nodes that are published through the concentrator interface.
SubscriptionState
State of a presence subscription.