41 public string[]?
Fields {
get;
set; }
69 public override async Task
Open()
86 if (Fields is not
null)
107 SortedDictionary<string, bool>
Fields = [];
109 TaskCompletionSource<bool> Done =
new();
111 Request.OnFieldsReceived += (sender, NewFields) =>
116 return Task.CompletedTask;
119 Request.OnStateChanged += (Sender, NewState) =>
124 Done.TrySetResult(
true);
129 Done.TrySetResult(
false);
133 return Task.CompletedTask;
136 Task
_ = Task.Delay(30000).ContinueWith((
_) => Done.TrySetResult(
false));
140 string[] Fields2 =
new string[
Fields.Count];
141 Fields.Keys.CopyTo(Fields2, 0);
A strongly-typed resource class, for looking up localized strings, etc.
static string ReadoutRequestText
Looks up a localized string similar to {0} wants to read data from your device {1}....
Contains information about a request to read a thing.
CanReadNotificationEvent(CanReadEventArgs e)
Contains information about a request to read a thing.
string?[] AllFields
All fields available
CanReadNotificationEvent()
Contains information about a request to read a thing.
string?[] Fields
Fields requested
static async Task< string[]?> GetAvailableFieldNames(string BareJid, ThingReference Thing)
Gets available fields for a thing.
override async Task Open()
Opens the event.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
FieldType FieldTypes
Field types requested.
override async Task< string > GetDescription()
Gets a descriptive text for the event.
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-read provisioning question.
A page that asks the user if a remote entity is allowed to read the device.
Event arguments for CanRead events.
FieldType FieldTypes
Any field types available in the original request.
string[] Fields
Any field specifications of the original request. If null, all fields are requested.
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.
Manages a sensor data client request.
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.
Base class for all sensor data fields.
string Name
Unlocalized field name.
Contains a reference to a thing
SensorDataReadoutState
Sensor Data Readout States.
FieldType
Field Type flags