Class DigitalInputStateMessage
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
-
PropertyChangedBaseDigitalInputStateMessage
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
digitalInputIDigitalInputInput the IsActive state depends on. The input type must implement INotifyPropertyChanged.
translationITranslationThe message.
isActiveValueboolValue of the input for which the message is active.
idint?Message ID.
Exceptions
- ArgumentNullException
Thrown when
digitalInputortranslationis null.- ArgumentException
Thrown when
digitalInputdoes not implement INotifyPropertyChanged.
Properties
IsActive
public bool IsActive { get; }