Class TurnoutInfoResponseHandler
- Namespace
- Z21.Core.ResponseHandler.Switching
- Assembly
- Z21.Client.dll
This message is sent from the Z21 to the clients in response to the command GetTurnoutInfoCommand.
It is also sent to an associated client unsolicitedly if the function status has been changed by one of the (other) clients or a handset controller and the associated client has activated the corresponding broadcast LocoInfoChangedMessages via SetBroadcastFlagsCommandpublic class TurnoutInfoResponseHandler : ITurnoutInfoResponseHandler, IZ21ResponseHandler
- Inheritance
-
TurnoutInfoResponseHandler
- Implements
- Inherited Members
Constructors
TurnoutInfoResponseHandler(IAddressCodec, ILogger<TurnoutInfoResponseHandler>?)
public TurnoutInfoResponseHandler(IAddressCodec addressCodec, ILogger<TurnoutInfoResponseHandler>? logger = null)
Parameters
addressCodecIAddressCodecloggerILogger<TurnoutInfoResponseHandler>
Properties
Name
Human-readable command according to the specification.
public string Name { get; }
Property Value
Methods
CanHandle(byte[])
Returns true if this response handler can handle the response. False otherwise.
public bool CanHandle(byte[] response)
Parameters
responsebyte[]
Returns
Handle(byte[])
public void Handle(byte[] response)
Parameters
responsebyte[]
Events
OnTurnoutInfoReceived
public event EventHandler<TurnoutInfoReceivedEventArgs>? OnTurnoutInfoReceived