Example #1
0
        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));
            }
        }
Example #2
0
 public abstract void ValidateResponse(HJ212Message response);
Example #3
0
 public override void ValidateResponse(HJ212Message response)
 {
     throw new NotImplementedException();
 }