2using System.Collections.Generic;
3using System.Threading.Tasks;
26 : base(
"Xmpp/SendPresenceUnsubscription",
27 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
47 string To = (string)Parameters[
"PTo"].AssociatedObjectValue;
49 if (
string.IsNullOrEmpty(To))
55 string Id = (string)Parameters[
"PId"]?.AssociatedObjectValue;
57 if (
string.IsNullOrEmpty(Id))
58 Id = Guid.NewGuid().ToString();
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
Static class managing the runtime environment of the IoT Gateway.
static XmppClient XmppClient
XMPP Client connection of gateway.
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
Represents an HTTP request.
Represets a response of an HTTP client request.
async Task Return(object Object)
Returns an object to the client. This method can only be called once per response,...
The server is currently unable to handle the request due to a temporary overloading or maintenance of...
Contains information about one XMPP address.
static readonly XmppAddress Empty
Empty address.
CaseInsensitiveString Domain
Domain name.
async Task< bool > Presence(string Type, string Id, XmppAddress From, string Language, Stanza Stanza, ISender Sender)
Presence stanza.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Task RequestPresenceUnsubscription(string BareJid)
Requests unssubscription of presence information from a contact.
Static class that dynamically manages types and interfaces available in the runtime environment.
static bool TryGetModuleParameter(string Name, out object Value)
Tries to get a module parameter value.
Class managing a script expression.
string UserName
User Name.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd
Abstract base class for XMPP resources.
static bool IsValidBareJID(string JID)
Checks if a string is a valid Bare JID.
Sends a presence unsubscription request to an XMPP account.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
SendPresenceUnsubscription()
Sends a presence unsubscription request to an XMPP account.
Service Module hosting the XMPP broker and its components.