Table of Contents

Class DigitalInputStateMessage

Namespace
Loehnert.Lisrt.IO
Assembly
Loehnert.Lisrt.IO.dll

Represents a state message which is active depending on the state of a digital input.

public class DigitalInputStateMessage : MessageBase, INotifyPropertyChangedEx, IStateMessage, IMessage, ITranslatableText, INotifyPropertyChanged
Inheritance
PropertyChangedBase
DigitalInputStateMessage
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

DigitalInputStateMessage(IDigitalInput, ITranslation, bool, int?)

Initializes a new instance of the DigitalInputStateMessage class.

public DigitalInputStateMessage(IDigitalInput digitalInput, ITranslation translation, bool isActiveValue = true, int? id = null)

Parameters

digitalInput IDigitalInput

Input the IsActive state depends on. The input type must implement INotifyPropertyChanged.

translation ITranslation

The message.

isActiveValue bool

Value of the input for which the message is active.

id int?

Message ID.

Exceptions

ArgumentNullException

Thrown when digitalInput or translation is null.

ArgumentException

Thrown when digitalInput does not implement INotifyPropertyChanged.

Properties

IsActive

public bool IsActive { get; }

Property Value

bool