1using System.Globalization;
14 private readonly
string bareJid;
15 private readonly
string remoteJid;
24 this.bareJid = BareJid.ToLower(CultureInfo.InvariantCulture);
25 this.remoteJid = RemoteJid.ToLower(CultureInfo.InvariantCulture);
35 this.bareJid = BareJid.ToLower(CultureInfo.InvariantCulture);
36 this.remoteJid = RemoteJid.ToLower(CultureInfo.InvariantCulture);
54 if (this.token is
null)
56 return this.range
switch
58 RuleRange.All =>
true,
66 return this.token.Type
switch
83 if (Token.
Token ==
this.token?.Token)
Contains information about a request to read a thing.
string? RemoteJid
JID of remote entity wishing to perform a task.
A record of a token used in provisioning.
ProvisioningToken?[] DeviceTokens
Device tokens
ProvisioningToken?[] UserTokens
User tokens
ProvisioningToken?[] ServiceTokens
Service tokens
string BareJid
Bare JID of sender.
Resolves pending readout requests
ReadoutRequestResolver(string BareJid, string RemoteJid, RuleRange Range)
Resolves pending readout requests
bool Resolves(NotificationEvent Event)
If the resolver resolves an event.
ReadoutRequestResolver(string BareJid, string RemoteJid, ProvisioningToken Token)
Resolves pending readout requests
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
static string GetDomain(string JID)
Gets the domain part of a JID.
Interface for event resolvers. Such can be used to resolve multiple pending notifications at once.
abstract class NotificationEvent()
Abstract base class of notification events.
NotificationEventType
Button on which event is to be displayed.
RuleRange
Range of a rule change