Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SubscribedEventArgs.cs
3
5{
10 {
16 : base(e)
17 {
18 if (e.Ok &&
19 !(e.FirstElement is null) &&
20 e.FirstElement.LocalName == "subscribed" &&
22 {
23 this.SubscriptionId = XML.Attribute(e.FirstElement, "id");
24 this.Ttl = XML.Attribute(e.FirstElement, "ttl", 0);
25 }
26 else
27 e.Ok = false;
28 }
29
33 public string SubscriptionId { get; }
34
38 public int Ttl { get; }
39 }
40}
Helps with common XML-related tasks.
Definition: XML.cs:21
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:1062
Event arguments for responses to IQ queries.
bool Ok
If the response is an OK result response (true), or an error response (false).
XmlElement FirstElement
First child element of the Response element.
Adds support for geo-spatial publish/subscribe communication pattern to an XMPP client.
Definition: GeoClient.cs:20
static bool IsNamespaceGeoSpatial(string Namespace)
If a namespace corresponds to a geo-spatial namespace.
Definition: GeoClient.cs:41
Event arguments for the result of a subscription request.
SubscribedEventArgs(IqResultEventArgs e)
Event arguments for the result of a subscription request.
int Ttl
Number of seconds before the subscription gets automatically unsubscribed, unless updated.
string SubscriptionId
Identifier of the subscription.