public override void ValidateResponse(HJ212Message response) { if (response.CN != ResponseCN) { throw new IOException(String.Format(CultureInfo.InvariantCulture, "Unexpected CN in response. Expected {0}, received {1}.", ResponseCN, response.CN)); } if (response.ST != ResponseST) { throw new IOException(String.Format(CultureInfo.InvariantCulture, "Unexpected ST in response. Expected {0}, received {1}.", ResponseST, response.ST)); } if (response.QN != QN) { throw new IOException(String.Format(CultureInfo.InvariantCulture, "Mismatched QN in response. Expected {0}, received {1}.", QN, response.QN)); } }
public abstract void ValidateResponse(HJ212Message response);
public override void ValidateResponse(HJ212Message response) { throw new NotImplementedException(); }