Class TrackPowerOffResponseHandler
- Namespace
- Z21.Core.ResponseHandler.SystemState.TrackPower
- Assembly
- Z21.Client.dll
The following packet is sent from the Z21 to the registered clients when a client has sent command SetTrackPowerOffCommand> or the track voltage has been switched off by some input device (multiMaus) and the relevant client has activated the corresponding broadcast LocoInfoChangedMessages via SetBroadcastFlagsCommand
public class TrackPowerOffResponseHandler : ITrackPowerOffResponseHandler, IZ21ResponseHandler
- Inheritance
-
TrackPowerOffResponseHandler
- Implements
- Inherited Members
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
OnTrackPowerOffReceived
public event EventHandler? OnTrackPowerOffReceived