2using System.Collections.Generic;
3using System.Threading.Tasks;
Base class for all sensor data fields.
Contains information about an error on a thing
Interface for classes managing sensor data readouts.
Task Start()
Report that readout has started. Can optionally be used to report feedback to end-user when readout i...
string ServiceToken
Optional service token.
bool IsIncluded(string FieldName)
Checks if a field with the given parameters is included in the readout.
string Actor
Actor making the request.
DateTime When
When the readout is to be made. Use DateTime.MinValue to start the readout immediately.
string[] FieldNames
Names of fields to read.
Task ReportErrors(bool Done, params ThingError[] Errors)
Report error states to the client.
Task ReportErrors(bool Done, IEnumerable< ThingError > Errors)
Report error states to the client.
FieldType Types
Field Types to read.
DateTime To
To what time readout is to be made. Use DateTime.MaxValue to specify no upper limit.
string DeviceToken
Optional device token.
Task ReportFields(bool Done, params Field[] Fields)
Report read fields to the client.
bool IsIncluded(FieldType Type)
Checks if a field with the given parameters is included in the readout.
IThingReference[] Nodes
Array of nodes to read. Can be null or empty, if reading a sensor that is not a concentrator.
DateTime From
From what time readout is to be made. Use DateTime.MinValue to specify no lower limit.
bool IsIncluded(DateTime Timestamp)
Checks if a field with the given parameters is included in the readout.
bool IsIncluded(string FieldName, DateTime Timestamp, FieldType Type)
Checks if a field with the given parameters is included in the readout.
string UserToken
Optional user token.
Task ReportFields(bool Done, IEnumerable< Field > Fields)
Report read fields to the client.
bool IsIncluded(string FieldName, FieldType Type)
Checks if a field with the given parameters is included in the readout.
Interface for thing references.
FieldType
Field Type flags