2using System.Collections.Generic;
3using System.Threading.Tasks;
26 : base(
"Xmpp/RemoveRosterItem",
27 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
46 string BareJid = (string)Parameters[
"PBareJid"].AssociatedObjectValue;
48 if (
string.IsNullOrEmpty(BareJid))
74 {
"bareJid", Item.BareJid },
75 {
"pendingSubscription", Item.PendingSubscription == PendingSubscription.Subscribe },
76 {
"status", Item.State },
77 {
"name", Item.Name },
78 {
"Groups", Item.Groups }
91 {
"bareJid", Item.BareJid.Value },
92 {
"pendingSubscription", Item.PendingSubscription },
93 {
"status", Item.Subscription },
94 {
"name", Item.Name },
95 {
"Groups", Item.Groups }
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 has not found anything matching the Request-URI. No indication is given of whether the con...
The server is currently unable to handle the request due to a temporary overloading or maintenance of...
Maintains information about an item in the roster.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Task RemoveRosterItem(string BareJID)
Removes an item from the roster.
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.
async Task< IRosterItem > GetRosterItem(CaseInsensitiveString UserName, CaseInsensitiveString Jid)
Gets a roster item for an account.
async Task< bool > RemoveRosterItem(CaseInsensitiveString UserName, CaseInsensitiveString Jid)
Removes a roster item.
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.
Removes a specific item from the account's roster.
RemoveRosterItem()
Removes a specific item from the account's roster.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
Service Module hosting the XMPP broker and its components.
Interface for roster items.