62 public override async Task
Open()
80 if (Parameters is not
null)
101 TaskCompletionSource<DataForm?> FormTask =
new();
104 System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName,
108 FormTask.TrySetResult(e.Form);
110 FormTask.TrySetResult(
null);
112 return Task.CompletedTask;
115 Task
_ = Task.Delay(30000).ContinueWith((
_) => FormTask.TrySetResult(
null));
117 DataForm? Form = await FormTask.Task;
119 if (Form is not
null)
121 SortedDictionary<string, bool>
Parameters = [];
129 string[] Parameters2 =
new string[
Parameters.Count];
A strongly-typed resource class, for looking up localized strings, etc.
static string ControlRequestText
Looks up a localized string similar to {0} wants to control parameters on your device {1}....
Contains information about a request to read a thing.
string?[] AllParameters
All parameters available
CanControlNotificationEvent()
Contains information about a request to read a thing.
static async Task< string[]?> GetAvailableParameterNames(string BareJid, ThingReference Thing)
Gets available fields for a thing.
string?[] Parameters
Parameters requested
override async Task< string > GetDescription()
Gets a descriptive text for the event.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
override async Task Open()
Opens the event.
CanControlNotificationEvent(CanControlEventArgs e)
Contains information about a request to read a thing.
string? RemoteJid
JID of remote entity wishing to perform a task.
Abstract base class of thing notification events.
string? SourceId
Source ID of thing.
string? NodeId
Node ID of thing.
string? PartitionId
Partition ID of thing.
string BareJid
Bare JID of sender.
Base class that references services in the app.
static INavigationService NavigationService
The navigation service for navigating between pages.
static IReportingStringLocalizer Localizer
Localization service
static IXmppService XmppService
The XMPP service for XMPP communication.
Holds navigation parameters specific to displaying the can-control provisioning question.
A page that asks the user if a remote entity is allowed to control the device.
Event arguments for CanControl events.
string[] Parameters
Any parameter name specifications of the original request.
Maintains information about an item in the roster.
bool HasLastPresence
If the roster item has received presence from an online resource having the given bare JID.
string LastPresenceFullJid
Full JID of last resource sending online presence.
PresenceEventArgs LastPresence
Last presence received from a resource having this bare JID.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Update(object Object)
Updates an object in the database.
Contains a reference to a thing