Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UnsubscribedEventArgs.cs
1
using
Waher.Content.Xml
;
2
using
Waher.Networking.XMPP.Events
;
3
4
namespace
Waher.Networking.XMPP.Geo
5
{
9
public
class
UnsubscribedEventArgs
:
IqResultEventArgs
10
{
15
public
UnsubscribedEventArgs
(
IqResultEventArgs
e)
16
: base(e)
17
{
18
if
(e.
Ok
&&
19
!(e.
FirstElement
is
null
) &&
20
e.
FirstElement
.LocalName ==
"unsubscribed"
&&
21
GeoClient
.
IsNamespaceGeoSpatial
(e.
FirstElement
.NamespaceURI))
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
}
Waher.Content.Xml.XML
Helps with common XML-related tasks.
Definition:
XML.cs:21
Waher.Content.Xml.XML.Attribute
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition:
XML.cs:1062
Waher.Networking.XMPP.Events.IqResultEventArgs
Event arguments for responses to IQ queries.
Definition:
IqResultEventArgs.cs:11
Waher.Networking.XMPP.Events.IqResultEventArgs.Ok
bool Ok
If the response is an OK result response (true), or an error response (false).
Definition:
IqResultEventArgs.cs:189
Waher.Networking.XMPP.Events.IqResultEventArgs.FirstElement
XmlElement FirstElement
First child element of the Response element.
Definition:
IqResultEventArgs.cs:145
Waher.Networking.XMPP.Geo.GeoClient
Adds support for geo-spatial publish/subscribe communication pattern to an XMPP client.
Definition:
GeoClient.cs:20
Waher.Networking.XMPP.Geo.GeoClient.IsNamespaceGeoSpatial
static bool IsNamespaceGeoSpatial(string Namespace)
If a namespace corresponds to a geo-spatial namespace.
Definition:
GeoClient.cs:41
Waher.Networking.XMPP.Geo.UnsubscribedEventArgs
Event arguments for the result of an unsubscription request.
Definition:
UnsubscribedEventArgs.cs:10
Waher.Networking.XMPP.Geo.UnsubscribedEventArgs.UnsubscribedEventArgs
UnsubscribedEventArgs(IqResultEventArgs e)
Event arguments for the result of an unsubscription request.
Definition:
UnsubscribedEventArgs.cs:15
Waher.Networking.XMPP.Geo.UnsubscribedEventArgs.SubscriptionId
string SubscriptionId
Identifier of the subscription.
Definition:
UnsubscribedEventArgs.cs:32
Waher.Content.Xml
Definition:
Attribute.cs:7
Waher.Networking.XMPP.Events
Definition:
AuthorityEventArgs.cs:4
Waher.Networking.XMPP.Geo
Definition:
GeoClient.cs:12
IoTGateway
Networking
Waher.Networking.XMPP.Geo
UnsubscribedEventArgs.cs
Generated by
1.9.5