Struct RuleAction
One thing a rule calls for, as the rule file writes it.
public readonly record struct RuleAction : IEquatable<RuleAction>
- Implements
- Inherited Members
Remarks
Only the values belonging to Kind are set.
Constructors
RuleAction(RuleActionKind, string?, bool?, string?, string?)
One thing a rule calls for, as the rule file writes it.
public RuleAction(RuleActionKind Kind, string? Actuator, bool? On, string? Topic, string? Payload)
Parameters
KindRuleActionKindWhether to switch an output or publish a message.
ActuatorstringThe output to switch, for a drive.
Onbool?The setting to switch it to, for a drive.
TopicstringThe topic to publish to, for a publish.
PayloadstringThe text to publish, for a publish.
Remarks
Only the values belonging to Kind are set.
Properties
Actuator
The output to switch, for a drive.
public string? Actuator { get; init; }
Property Value
Kind
Whether to switch an output or publish a message.
public RuleActionKind Kind { get; init; }
Property Value
On
The setting to switch it to, for a drive.
public bool? On { get; init; }
Property Value
- bool?
Payload
The text to publish, for a publish.
public string? Payload { get; init; }
Property Value
Topic
The topic to publish to, for a publish.
public string? Topic { get; init; }