public RESPONSE_MESSAGE CreateResponseMessage(RESPONSE_CODE responseCode)
{
RESPONSE_MESSAGE responseMessage;
// Size (4 bytes): Total message size in bytes, excluding this field.
// ResponseCode (1 byte): A code that indicates the server response to the client request message.
responseMessage.TransportHeader.Size = 1;
responseMessage.ResponseCode = responseCode;
if (this.logger != null)
{
this.logger.AddDebug(string.Format(
"Pchc response message is created with reposne code: {0}",
(RESPONSE_CODE)responseCode));
}
return responseMessage;
}