Table of Contents

Class StatusChangedResponseHandler

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

Reads the Z21 status when requested via GetStatusCommand.

public class StatusChangedResponseHandler : IStatusChangedResponseHandler, IZ21ResponseHandler
Inheritance
StatusChangedResponseHandler
Implements
Inherited Members

Constructors

StatusChangedResponseHandler(ICentralStateResponseParser)

Reads the Z21 status when requested via GetStatusCommand.

public StatusChangedResponseHandler(ICentralStateResponseParser centralStateResponseParser)

Parameters

centralStateResponseParser ICentralStateResponseParser

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

OnStatusChangedReceived

public event EventHandler<StatusChangedReceivedEventArgs>? OnStatusChangedReceived

Event Type

EventHandler<StatusChangedReceivedEventArgs>