2using System.Threading.Tasks;
19 private readonly
bool isSensor;
20 private readonly
bool suportsEvents;
23 : base(
Parent, Client, BareJid, SupportsRdp)
25 this.isSensor = IsSensor;
26 this.suportsEvents = SupportsEventSubscripton;
29 public override string TypeName
31 get {
return "Actuator"; }
34 public override bool CanReadSensorData => this.isSensor;
35 public override bool CanSubscribeToSensorData => this.suportsEvents;
50 throw new NotSupportedException();
66 throw new NotSupportedException();
85 throw new NotSupportedException();
88 public override bool CanConfigure =>
true;
95 protected override bool UseActuatorControl =>
true;
97 public override async Task
GetConfigurationForm(EventHandlerAsync<DataFormEventArgs> Callback,
object State)
105 throw new NotSupportedException();
Represents a simple XMPP actuator.
override async Task< SensorDataSubscriptionRequest > SubscribeSensorDataMomentaryReadout(FieldSubscriptionRule[] Rules)
Starts subscription of momentary sensor data values.
override async Task GetConfigurationForm(EventHandlerAsync< DataFormEventArgs > Callback, object State)
Gets the configuration form for the node.
override void Configure()
Starts configuration of the node.
override async Task< SensorDataClientRequest > StartSensorDataFullReadout()
Starts readout of all sensor data values.
override async Task< SensorDataClientRequest > StartSensorDataMomentaryReadout()
Starts readout of momentary sensor data values.
Abstract base class for tree nodes in the connection view.
TreeNode Parent
Parent node. May be null if a root node.
Class representing a normal XMPP account.
Implements an XMPP control client interface.
Task GetForm(string To, string Language, params ThingReference[] Nodes)
Gets a control form.
Maintains information about an item in the roster.
string LastPresenceFullJid
Full JID of last resource sending online presence.
Maintains the status of a field subscription rule.
Implements an XMPP sensor client interface.
Task< SensorDataClientRequest > RequestReadout(string Destination, FieldType Types)
Requests a sensor data readout.
Task< SensorDataSubscriptionRequest > Subscribe(string Destination, FieldType Types, FieldSubscriptionRule[] Fields, bool ImmediateReadout)
Subscribes to sensor data readout.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
FieldType
Field Type flags
Represents a duration value, as defined by the xsd:duration data type: http://www....
static Duration FromMinutes(int Minutes)
Creates a Duration object from a given number of minutes.
static Duration FromSeconds(int Seconds)
Creates a Duration object from a given number of seconds.