Example #1
0
 public CheckPriceResp checkPriceResp(CheckPriceMessage message) {
   byte[] resp = clientSocketThread.sendAndWait(message);
   if (resp != null) {
     MessageHeader header = new MessageHeader(resp);
     if (header.getCommandId() == Command.CMDID_CheckPriceResp) {
       return new CheckPriceResp(resp);
     }
   }
   return null;
 }
Example #2
0
 public byte[] sendToServer(MessageBody message) {
   return clientSocketThread.sendAndWait(message);
 }