Table of Contents

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

AccessoryAddress ushort
Output AccessoryOutput?

Properties

AccessoryAddress

public ushort AccessoryAddress { get; init; }

Property Value

ushort

Output

public AccessoryOutput? Output { get; init; }

Property Value

AccessoryOutput?