Table of Contents

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 SetBroadcastFlagsCommand
public class TurnoutInfoResponseHandler : ITurnoutInfoResponseHandler, IZ21ResponseHandler
Inheritance
TurnoutInfoResponseHandler
Implements
Inherited Members

Constructors

TurnoutInfoResponseHandler(IAddressCodec, ILogger<TurnoutInfoResponseHandler>?)

public TurnoutInfoResponseHandler(IAddressCodec addressCodec, ILogger<TurnoutInfoResponseHandler>? logger = null)

Parameters

addressCodec IAddressCodec
logger ILogger<TurnoutInfoResponseHandler>

Properties

Name

Human-readable command according to the specification.

public string Name { get; }

Property Value

string

Methods

CanHandle(byte[])

Returns true if this response handler can handle the response. False otherwise.

public bool CanHandle(byte[] response)

Parameters

response byte[]

Returns

bool

Handle(byte[])

public void Handle(byte[] response)

Parameters

response byte[]

Events

OnTurnoutInfoReceived

public event EventHandler<TurnoutInfoReceivedEventArgs>? OnTurnoutInfoReceived

Event Type

EventHandler<TurnoutInfoReceivedEventArgs>