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