Class TurnoutInfo
- Namespace
- CommandStation.Model
- Assembly
- CommandStation.Abstractions.dll
The reported state of a turnout/accessory. Output is null when the turnout has not yet been switched or was switched with an invalid combination.
public record TurnoutInfo : IEquatable<TurnoutInfo>
- Inheritance
-
TurnoutInfo
- Implements
- Inherited Members
Constructors
TurnoutInfo(ushort, AccessoryOutput?)
The reported state of a turnout/accessory. Output is null when the turnout has not yet been switched or was switched with an invalid combination.
public TurnoutInfo(ushort AccessoryAddress, AccessoryOutput? Output)
Parameters
AccessoryAddressushortOutputAccessoryOutput?
Properties
AccessoryAddress
public ushort AccessoryAddress { get; init; }
Property Value
Output
public AccessoryOutput? Output { get; init; }