Table of Contents

Class SystemStateDataChangedResponseHandler

Namespace
Z21.Core.ResponseHandler.SystemState
Assembly
Z21.Client.dll

Reports a change in the system status from the Z21 to the client either automatically when SystemStateDataChangedMessages is set via SetBroadcastFlagsCommand or when requested via GetSystemStateDataCommand.

public class SystemStateDataChangedResponseHandler : ISystemStateDataChangedResponseHandler, IZ21ResponseHandler
Inheritance
SystemStateDataChangedResponseHandler
Implements
Inherited Members

Constructors

SystemStateDataChangedResponseHandler(ISystemStateResponseParser)

Reports a change in the system status from the Z21 to the client either automatically when SystemStateDataChangedMessages is set via SetBroadcastFlagsCommand or when requested via GetSystemStateDataCommand.

public SystemStateDataChangedResponseHandler(ISystemStateResponseParser systemStateResponseParser)

Parameters

systemStateResponseParser ISystemStateResponseParser

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

OnSystemStateDataChangedReceived

public event EventHandler<SystemStatusChangedReceivedEventArgs>? OnSystemStateDataChangedReceived

Event Type

EventHandler<SystemStatusChangedReceivedEventArgs>