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
centralStateResponseParserICentralStateResponseParser
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
OnStatusChangedReceived
public event EventHandler<StatusChangedReceivedEventArgs>? OnStatusChangedReceived