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 boolean startup() {
   return clientSocketThread.startup();
 }
Example #3
0
 public boolean handset() {
   return clientSocketThread.handset(false);
 }
Example #4
0
 public boolean isBindSuccess() {
   return clientSocketThread.isBindSuccess();
 }
Example #5
0
 public boolean unBind() {
   return clientSocketThread.unBind();
 }
Example #6
0
 public byte[] sendToServer(MessageBody message) {
   return clientSocketThread.sendAndWait(message);
 }
Example #7
0
 public boolean bind() {
   return clientSocketThread.bind();
 }
Example #8
0
 public int checkPrice(String phoneNumber, String productId, long operationType, String spId) {
   return clientSocketThread.checkPrice(phoneNumber, productId, operationType, spId);
 }
Example #9
0
 public CheckPriceMessage getBaseCheckPriceMessage(
     String spId, String phoneNumber, String productId, long operationType) {
   return clientSocketThread.getBaseCheckPriceMessage(spId, phoneNumber, productId, operationType);
 }
Example #10
0
 public int checkPriceConfirm(String phoneNumber, String productId) {
   return clientSocketThread.checkPriceConfirm(phoneNumber, productId);
 }
Example #11
0
 public boolean shutdown() {
   return clientSocketThread.shutdown();
 }
Example #12
0
 private ClientSocket() {
   clientSocketThread = new ClientSocketThread();
   clientSocketThread.start();
 }