Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UnsubscribedEventArgs.cs
3
5{
10 {
16 : base(e)
17 {
18 if (e.Ok &&
19 !(e.FirstElement is null) &&
20 e.FirstElement.LocalName == "unsubscribed" &&
22 {
23 this.SubscriptionId = XML.Attribute(e.FirstElement, "id");
24 }
25 else
26 e.Ok = false;
27 }
28
32 public string SubscriptionId { get; }
33 }
34}
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 an unsubscription request.
UnsubscribedEventArgs(IqResultEventArgs e)
Event arguments for the result of an unsubscription request.
string SubscriptionId
Identifier of the subscription.