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