Table of Contents

Struct RuleAction

Namespace
Pamoja.Profile
Assembly
Pamoja.Profile.dll

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

Kind RuleActionKind

Whether to switch an output or publish a message.

Actuator string

The output to switch, for a drive.

On bool?

The setting to switch it to, for a drive.

Topic string

The topic to publish to, for a publish.

Payload string

The 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

string

Kind

Whether to switch an output or publish a message.

public RuleActionKind Kind { get; init; }

Property Value

RuleActionKind

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

string

Topic

The topic to publish to, for a publish.

public string? Topic { get; init; }

Property Value

string