33 this.Fields = e.Fields;
34 this.FieldTypes = e.FieldTypes;
40 public string[]?
Fields {
get;
set; }
62 return ServiceRef.
Localizer[nameof(AppResources.ReadoutRequestText), RemoteName, ThingName];
68 public override async Task
Open()
85 if (Fields is not
null)
106 SortedDictionary<string, bool>
Fields = [];
108 TaskCompletionSource<bool> Done =
new();
110 Request.OnFieldsReceived += (sender, NewFields) =>
115 return Task.CompletedTask;
118 Request.OnStateChanged += (Sender, NewState) =>
123 Done.TrySetResult(
true);
128 Done.TrySetResult(
false);
132 return Task.CompletedTask;
135 Task _ = Task.Delay(30000).ContinueWith((_) => Done.TrySetResult(
false));
139 string[] Fields2 =
new string[
Fields.Count];
140 Fields.Keys.CopyTo(Fields2, 0);
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 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-read provisioning question.
A page that asks the user if a remote entity is allowed to read 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.
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