32 this.Parameters = e.Parameters;
55 return ServiceRef.
Localizer[nameof(AppResources.ControlRequestText), RemoteName, ThingName];
61 public override async Task
Open()
79 if (Parameters is not
null)
100 TaskCompletionSource<DataForm?> FormTask =
new();
103 System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName,
107 FormTask.TrySetResult(e.Form);
109 FormTask.TrySetResult(
null);
111 return Task.CompletedTask;
114 Task _ = Task.Delay(30000).ContinueWith((_) => FormTask.TrySetResult(
null));
116 DataForm? Form = await FormTask.Task;
118 if (Form is not
null)
120 SortedDictionary<string, bool>
Parameters = [];
128 string[] Parameters2 =
new string[
Parameters.Count];
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 IUiService UiService
Service serializing and managing UI-related tasks.
static IStringLocalizer 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.
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