/// <summary> /// Creates a new property editor binding instance /// </summary> /// <param name="deviceInstance">The device instance of the source property</param> /// <param name="reference">The source property reference</param> /// <param name="client">The client to use for reading property values</param> /// <param name="editor">The editor to bind to</param> public PropertyEditorBinding(uint deviceInstance, ObjectPropertyReference reference, Client.Client client, IEditor <TProp> editor) { this.DeviceInstance = deviceInstance; this.Reference = reference; this.Client = client; this.Editor = editor; }
/// <summary> /// Constructs a new property request /// </summary> public PropertyRequest(uint deviceInstance, ObjectPropertyReference reference, Action <T> onValue, Action <Error> onError = null) { this.DeviceInstance = deviceInstance; this.Reference = reference; this.OnValue = onValue; this.OnError = onError; }
/// <summary> /// Enqueues a new property to be read /// </summary> /// <typeparam name="TProp">The type of the property</typeparam> /// <param name="deviceInstance">The device instance of the object</param> /// <param name="reference">The reference to the property</param> /// <param name="onValue">The value handler for when the property is read</param> /// <param name="onError">The error handler for when an error occurs</param> public void Enqueue <TProp>(uint deviceInstance, ObjectPropertyReference reference, Action <TProp> onValue, Action <Error> onError = null) { PropertyRequest <TProp> request = new PropertyRequest <TProp>( deviceInstance, reference, onValue, onError); _requests.Add(request); }
public WritePropertyMultipleError(byte choice, BACnetError error, ObjectPropertyReference firstFailedWriteAttempt) : base(choice, error) { this.firstFailedWriteAttempt = firstFailedWriteAttempt; }
internal WritePropertyMultipleError(byte choice, ByteStream queue) : base(choice, queue, 0) { firstFailedWriteAttempt = (ObjectPropertyReference)read(queue, typeof(ObjectPropertyReference), 1); }