2using System.Collections.Generic;
3using System.Threading.Tasks;
30 : base(
"Xmpp/RegisterEventHandler",
31 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
50 string LocalName = (string)Parameters[
"PLocalName"]?.AssociatedObjectValue;
51 string Namespace = (string)Parameters[
"PNamespace"]?.AssociatedObjectValue;
52 string Type = (string)Parameters[
"PType"]?.AssociatedObjectValue;
53 string Function = (string)Parameters[
"PFunction"]?.AssociatedObjectValue;
54 string TabId = (string)Parameters[
"PTabId"].AssociatedObjectValue;
55 string BareJid = User.UserName +
"@" + (
Gateway.
Domain?.Value ??
string.Empty);
57 if (
string.IsNullOrEmpty(LocalName))
60 if (
string.IsNullOrEmpty(Namespace))
63 PersistenceLayer.RegisterEventsTab(BareJid, Type, LocalName, Namespace, Function, TabId);
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 CaseInsensitiveString Domain
Domain name.
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,...
Class managing a script expression.
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.
Performs a presence probe on one of the contacts to which the account has an approved presence subscr...
Registers an event handler for a specific type of message. If such an XMPP message is received,...
override Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
RegisterEventHandler()
Registers an event handler for a specific type of message. If such an XMPP message is received,...