public bool IsMatch(EzspFrameResponse response) { if (response.GetType() == _requiredResponse && _request.GetSequenceNumber() == response.GetSequenceNumber()) { this._response = response; return(true); } else { return(false); } }
public bool TransactionEvent(EzspFrameResponse ezspResponse) { // Check if this response completes our transaction if (ezspResponse.GetType() != _eventClass) { return(false); } _receivedEvent = ezspResponse; TransactionComplete(); return(true); }
public bool IsMatch(EzspFrameResponse response) { // Check if this response is related to this transaction if (_relatedResponses.Contains(response.GetType())) { // TODO: Check for a failure // Add the response to our responses received list _responses.Add(response); return(false); } // Check if this response completes the transaction if (response.GetType() == _requiredResponse) { _responses.Add(response); return(true); } else { return(false); } }