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
digitalInput
IDigitalInputInput the IsActive state depends on. The input type must implement INotifyPropertyChanged.
translation
ITranslationThe message.
isActiveValue
boolValue of the input for which the message is active.
id
int?Message ID.
Exceptions
- ArgumentNullException
Thrown when
digitalInput
ortranslation
is null.- ArgumentException
Thrown when
digitalInput
does not implement INotifyPropertyChanged.
Properties
IsActive
public bool IsActive { get; }