ActionTrigger
Record in Oadm.Sdk.Actions · Oadm.Sdk.dll
What happened, handed to an action run.
public sealed record ActionTrigger(string EventTypeId, string EventName, Guid? DeviceId, string? DeviceAddress, string? DeviceModel, bool? State, DateTimeOffset TimeUtc, IReadOnlyDictionary<string, string> Data)Parameters
EventTypeId: The event type.EventName: Its name (“Input 1 active”).DeviceId: The device of the event; null for server events.DeviceAddress: Its address.DeviceModel: Its model.State: On or off for events that turn on and off; null for one-shot events.TimeUtc: When it happened.Data: The event’s values by name; also placeholders ({port}).
Properties
Section titled “Properties”IReadOnlyDictionary<string, string> Data { get; init; }The event’s values by name; also placeholders ({port}).
DeviceAddress
Section titled “DeviceAddress”string? DeviceAddress { get; init; }Its address.
DeviceId
Section titled “DeviceId”Guid? DeviceId { get; init; }The device of the event; null for server events.
DeviceModel
Section titled “DeviceModel”string? DeviceModel { get; init; }Its model.
EventName
Section titled “EventName”string EventName { get; init; }Its name (“Input 1 active”).
EventTypeId
Section titled “EventTypeId”string EventTypeId { get; init; }The event type.
bool? State { get; init; }On or off for events that turn on and off; null for one-shot events.
TimeUtc
Section titled “TimeUtc”DateTimeOffset TimeUtc { get; init; }When it happened.