Subversion Repositories SmartDukaan

Rev

Rev 13276 | Rev 13941 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13276 Rev 13691
Line 1109... Line 1109...
1109
 
1109
 
1110
    public boolean addBillingDetailsForGrouppedOrders(List<Long> order_ids, String invoice_number, Map<Long,List<String>> itemNumbersMap, Map<Long,List<String>> serialNumbersMap, Map<Long,List<Long>> freebieWarehouseIdMap, String billed_by, long jacketNumber, long billingType, boolean authorize, String invoiceType) throws TransactionServiceException, org.apache.thrift.TException;
1110
    public boolean addBillingDetailsForGrouppedOrders(List<Long> order_ids, String invoice_number, Map<Long,List<String>> itemNumbersMap, Map<Long,List<String>> serialNumbersMap, Map<Long,List<Long>> freebieWarehouseIdMap, String billed_by, long jacketNumber, long billingType, boolean authorize, String invoiceType) throws TransactionServiceException, org.apache.thrift.TException;
1111
 
1111
 
1112
    public String getInvoiceFormatLogisticsTxnId(long transactionId, long shipementSeq) throws TransactionServiceException, org.apache.thrift.TException;
1112
    public String getInvoiceFormatLogisticsTxnId(long transactionId, long shipementSeq) throws TransactionServiceException, org.apache.thrift.TException;
1113
 
1113
 
-
 
1114
    public void createHomeShopOrder(HsOrder snapdealOrder) throws org.apache.thrift.TException;
-
 
1115
 
-
 
1116
    public List<HsOrder> getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
-
 
1117
 
-
 
1118
    public boolean homeShopOrderExists(String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
-
 
1119
 
1114
  }
1120
  }
1115
 
1121
 
1116
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1122
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1117
 
1123
 
1118
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1124
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1603... Line 1609...
1603
 
1609
 
1604
    public void addBillingDetailsForGrouppedOrders(List<Long> order_ids, String invoice_number, Map<Long,List<String>> itemNumbersMap, Map<Long,List<String>> serialNumbersMap, Map<Long,List<Long>> freebieWarehouseIdMap, String billed_by, long jacketNumber, long billingType, boolean authorize, String invoiceType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetailsForGrouppedOrders_call> resultHandler) throws org.apache.thrift.TException;
1610
    public void addBillingDetailsForGrouppedOrders(List<Long> order_ids, String invoice_number, Map<Long,List<String>> itemNumbersMap, Map<Long,List<String>> serialNumbersMap, Map<Long,List<Long>> freebieWarehouseIdMap, String billed_by, long jacketNumber, long billingType, boolean authorize, String invoiceType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetailsForGrouppedOrders_call> resultHandler) throws org.apache.thrift.TException;
1605
 
1611
 
1606
    public void getInvoiceFormatLogisticsTxnId(long transactionId, long shipementSeq, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoiceFormatLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
1612
    public void getInvoiceFormatLogisticsTxnId(long transactionId, long shipementSeq, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoiceFormatLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
1607
 
1613
 
-
 
1614
    public void createHomeShopOrder(HsOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1615
 
-
 
1616
    public void getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1617
 
-
 
1618
    public void homeShopOrderExists(String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.homeShopOrderExists_call> resultHandler) throws org.apache.thrift.TException;
-
 
1619
 
1608
  }
1620
  }
1609
 
1621
 
1610
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1622
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1611
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1623
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1612
      public Factory() {}
1624
      public Factory() {}
Line 7677... Line 7689...
7677
        throw result.ex;
7689
        throw result.ex;
7678
      }
7690
      }
7679
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoiceFormatLogisticsTxnId failed: unknown result");
7691
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoiceFormatLogisticsTxnId failed: unknown result");
7680
    }
7692
    }
7681
 
7693
 
-
 
7694
    public void createHomeShopOrder(HsOrder snapdealOrder) throws org.apache.thrift.TException
-
 
7695
    {
-
 
7696
      send_createHomeShopOrder(snapdealOrder);
-
 
7697
      recv_createHomeShopOrder();
-
 
7698
    }
-
 
7699
 
-
 
7700
    public void send_createHomeShopOrder(HsOrder snapdealOrder) throws org.apache.thrift.TException
-
 
7701
    {
-
 
7702
      createHomeShopOrder_args args = new createHomeShopOrder_args();
-
 
7703
      args.setSnapdealOrder(snapdealOrder);
-
 
7704
      sendBase("createHomeShopOrder", args);
-
 
7705
    }
-
 
7706
 
-
 
7707
    public void recv_createHomeShopOrder() throws org.apache.thrift.TException
-
 
7708
    {
-
 
7709
      createHomeShopOrder_result result = new createHomeShopOrder_result();
-
 
7710
      receiveBase(result, "createHomeShopOrder");
-
 
7711
      return;
-
 
7712
    }
-
 
7713
 
-
 
7714
    public List<HsOrder> getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException
-
 
7715
    {
-
 
7716
      send_getHomeShopOrder(orderId, hsOrderNo, hsSubOrderNo);
-
 
7717
      return recv_getHomeShopOrder();
-
 
7718
    }
-
 
7719
 
-
 
7720
    public void send_getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException
-
 
7721
    {
-
 
7722
      getHomeShopOrder_args args = new getHomeShopOrder_args();
-
 
7723
      args.setOrderId(orderId);
-
 
7724
      args.setHsOrderNo(hsOrderNo);
-
 
7725
      args.setHsSubOrderNo(hsSubOrderNo);
-
 
7726
      sendBase("getHomeShopOrder", args);
-
 
7727
    }
-
 
7728
 
-
 
7729
    public List<HsOrder> recv_getHomeShopOrder() throws org.apache.thrift.TException
-
 
7730
    {
-
 
7731
      getHomeShopOrder_result result = new getHomeShopOrder_result();
-
 
7732
      receiveBase(result, "getHomeShopOrder");
-
 
7733
      if (result.isSetSuccess()) {
-
 
7734
        return result.success;
-
 
7735
      }
-
 
7736
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHomeShopOrder failed: unknown result");
-
 
7737
    }
-
 
7738
 
-
 
7739
    public boolean homeShopOrderExists(String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException
-
 
7740
    {
-
 
7741
      send_homeShopOrderExists(hsOrderNo, hsSubOrderNo);
-
 
7742
      return recv_homeShopOrderExists();
-
 
7743
    }
-
 
7744
 
-
 
7745
    public void send_homeShopOrderExists(String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException
-
 
7746
    {
-
 
7747
      homeShopOrderExists_args args = new homeShopOrderExists_args();
-
 
7748
      args.setHsOrderNo(hsOrderNo);
-
 
7749
      args.setHsSubOrderNo(hsSubOrderNo);
-
 
7750
      sendBase("homeShopOrderExists", args);
-
 
7751
    }
-
 
7752
 
-
 
7753
    public boolean recv_homeShopOrderExists() throws org.apache.thrift.TException
-
 
7754
    {
-
 
7755
      homeShopOrderExists_result result = new homeShopOrderExists_result();
-
 
7756
      receiveBase(result, "homeShopOrderExists");
-
 
7757
      if (result.isSetSuccess()) {
-
 
7758
        return result.success;
-
 
7759
      }
-
 
7760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "homeShopOrderExists failed: unknown result");
-
 
7761
    }
-
 
7762
 
7682
  }
7763
  }
7683
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7764
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7684
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7765
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7685
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7766
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7686
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7767
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 16219... Line 16300...
16219
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
16300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
16220
        return (new Client(prot)).recv_getInvoiceFormatLogisticsTxnId();
16301
        return (new Client(prot)).recv_getInvoiceFormatLogisticsTxnId();
16221
      }
16302
      }
16222
    }
16303
    }
16223
 
16304
 
-
 
16305
    public void createHomeShopOrder(HsOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<createHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
16306
      checkReady();
-
 
16307
      createHomeShopOrder_call method_call = new createHomeShopOrder_call(snapdealOrder, resultHandler, this, ___protocolFactory, ___transport);
-
 
16308
      this.___currentMethod = method_call;
-
 
16309
      ___manager.call(method_call);
-
 
16310
    }
-
 
16311
 
-
 
16312
    public static class createHomeShopOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
16313
      private HsOrder snapdealOrder;
-
 
16314
      public createHomeShopOrder_call(HsOrder snapdealOrder, org.apache.thrift.async.AsyncMethodCallback<createHomeShopOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
16315
        super(client, protocolFactory, transport, resultHandler, false);
-
 
16316
        this.snapdealOrder = snapdealOrder;
-
 
16317
      }
-
 
16318
 
-
 
16319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
16320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createHomeShopOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
16321
        createHomeShopOrder_args args = new createHomeShopOrder_args();
-
 
16322
        args.setSnapdealOrder(snapdealOrder);
-
 
16323
        args.write(prot);
-
 
16324
        prot.writeMessageEnd();
-
 
16325
      }
-
 
16326
 
-
 
16327
      public void getResult() throws org.apache.thrift.TException {
-
 
16328
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
16329
          throw new IllegalStateException("Method call not finished!");
-
 
16330
        }
-
 
16331
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
16332
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
16333
        (new Client(prot)).recv_createHomeShopOrder();
-
 
16334
      }
-
 
16335
    }
-
 
16336
 
-
 
16337
    public void getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<getHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
16338
      checkReady();
-
 
16339
      getHomeShopOrder_call method_call = new getHomeShopOrder_call(orderId, hsOrderNo, hsSubOrderNo, resultHandler, this, ___protocolFactory, ___transport);
-
 
16340
      this.___currentMethod = method_call;
-
 
16341
      ___manager.call(method_call);
-
 
16342
    }
-
 
16343
 
-
 
16344
    public static class getHomeShopOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
16345
      private long orderId;
-
 
16346
      private String hsOrderNo;
-
 
16347
      private String hsSubOrderNo;
-
 
16348
      public getHomeShopOrder_call(long orderId, String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<getHomeShopOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
16349
        super(client, protocolFactory, transport, resultHandler, false);
-
 
16350
        this.orderId = orderId;
-
 
16351
        this.hsOrderNo = hsOrderNo;
-
 
16352
        this.hsSubOrderNo = hsSubOrderNo;
-
 
16353
      }
-
 
16354
 
-
 
16355
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
16356
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHomeShopOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
16357
        getHomeShopOrder_args args = new getHomeShopOrder_args();
-
 
16358
        args.setOrderId(orderId);
-
 
16359
        args.setHsOrderNo(hsOrderNo);
-
 
16360
        args.setHsSubOrderNo(hsSubOrderNo);
-
 
16361
        args.write(prot);
-
 
16362
        prot.writeMessageEnd();
-
 
16363
      }
-
 
16364
 
-
 
16365
      public List<HsOrder> getResult() throws org.apache.thrift.TException {
-
 
16366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
16367
          throw new IllegalStateException("Method call not finished!");
-
 
16368
        }
-
 
16369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
16370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
16371
        return (new Client(prot)).recv_getHomeShopOrder();
-
 
16372
      }
-
 
16373
    }
-
 
16374
 
-
 
16375
    public void homeShopOrderExists(String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<homeShopOrderExists_call> resultHandler) throws org.apache.thrift.TException {
-
 
16376
      checkReady();
-
 
16377
      homeShopOrderExists_call method_call = new homeShopOrderExists_call(hsOrderNo, hsSubOrderNo, resultHandler, this, ___protocolFactory, ___transport);
-
 
16378
      this.___currentMethod = method_call;
-
 
16379
      ___manager.call(method_call);
-
 
16380
    }
-
 
16381
 
-
 
16382
    public static class homeShopOrderExists_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
16383
      private String hsOrderNo;
-
 
16384
      private String hsSubOrderNo;
-
 
16385
      public homeShopOrderExists_call(String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<homeShopOrderExists_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
16386
        super(client, protocolFactory, transport, resultHandler, false);
-
 
16387
        this.hsOrderNo = hsOrderNo;
-
 
16388
        this.hsSubOrderNo = hsSubOrderNo;
-
 
16389
      }
-
 
16390
 
-
 
16391
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
16392
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("homeShopOrderExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
16393
        homeShopOrderExists_args args = new homeShopOrderExists_args();
-
 
16394
        args.setHsOrderNo(hsOrderNo);
-
 
16395
        args.setHsSubOrderNo(hsSubOrderNo);
-
 
16396
        args.write(prot);
-
 
16397
        prot.writeMessageEnd();
-
 
16398
      }
-
 
16399
 
-
 
16400
      public boolean getResult() throws org.apache.thrift.TException {
-
 
16401
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
16402
          throw new IllegalStateException("Method call not finished!");
-
 
16403
        }
-
 
16404
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
16405
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
16406
        return (new Client(prot)).recv_homeShopOrderExists();
-
 
16407
      }
-
 
16408
    }
-
 
16409
 
16224
  }
16410
  }
16225
 
16411
 
16226
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
16412
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
16227
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
16413
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
16228
    public Processor(I iface) {
16414
    public Processor(I iface) {
Line 16477... Line 16663...
16477
      processMap.put("getFlipkartFaSalesSnapshotBySkuAndSaleDate", new getFlipkartFaSalesSnapshotBySkuAndSaleDate());
16663
      processMap.put("getFlipkartFaSalesSnapshotBySkuAndSaleDate", new getFlipkartFaSalesSnapshotBySkuAndSaleDate());
16478
      processMap.put("acceptPackageOrders", new acceptPackageOrders());
16664
      processMap.put("acceptPackageOrders", new acceptPackageOrders());
16479
      processMap.put("getGroupOrdersByLogisticsTxnId", new getGroupOrdersByLogisticsTxnId());
16665
      processMap.put("getGroupOrdersByLogisticsTxnId", new getGroupOrdersByLogisticsTxnId());
16480
      processMap.put("addBillingDetailsForGrouppedOrders", new addBillingDetailsForGrouppedOrders());
16666
      processMap.put("addBillingDetailsForGrouppedOrders", new addBillingDetailsForGrouppedOrders());
16481
      processMap.put("getInvoiceFormatLogisticsTxnId", new getInvoiceFormatLogisticsTxnId());
16667
      processMap.put("getInvoiceFormatLogisticsTxnId", new getInvoiceFormatLogisticsTxnId());
-
 
16668
      processMap.put("createHomeShopOrder", new createHomeShopOrder());
-
 
16669
      processMap.put("getHomeShopOrder", new getHomeShopOrder());
-
 
16670
      processMap.put("homeShopOrderExists", new homeShopOrderExists());
16482
      return processMap;
16671
      return processMap;
16483
    }
16672
    }
16484
 
16673
 
16485
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
16674
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
16486
      public createTransaction() {
16675
      public createTransaction() {
Line 20925... Line 21114...
20925
        }
21114
        }
20926
        return result;
21115
        return result;
20927
      }
21116
      }
20928
    }
21117
    }
20929
 
21118
 
-
 
21119
    private static class createHomeShopOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createHomeShopOrder_args> {
-
 
21120
      public createHomeShopOrder() {
-
 
21121
        super("createHomeShopOrder");
-
 
21122
      }
-
 
21123
 
-
 
21124
      protected createHomeShopOrder_args getEmptyArgsInstance() {
-
 
21125
        return new createHomeShopOrder_args();
-
 
21126
      }
-
 
21127
 
-
 
21128
      protected createHomeShopOrder_result getResult(I iface, createHomeShopOrder_args args) throws org.apache.thrift.TException {
-
 
21129
        createHomeShopOrder_result result = new createHomeShopOrder_result();
-
 
21130
        iface.createHomeShopOrder(args.snapdealOrder);
-
 
21131
        return result;
-
 
21132
      }
-
 
21133
    }
-
 
21134
 
-
 
21135
    private static class getHomeShopOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHomeShopOrder_args> {
-
 
21136
      public getHomeShopOrder() {
-
 
21137
        super("getHomeShopOrder");
-
 
21138
      }
-
 
21139
 
-
 
21140
      protected getHomeShopOrder_args getEmptyArgsInstance() {
-
 
21141
        return new getHomeShopOrder_args();
-
 
21142
      }
-
 
21143
 
-
 
21144
      protected getHomeShopOrder_result getResult(I iface, getHomeShopOrder_args args) throws org.apache.thrift.TException {
-
 
21145
        getHomeShopOrder_result result = new getHomeShopOrder_result();
-
 
21146
        result.success = iface.getHomeShopOrder(args.orderId, args.hsOrderNo, args.hsSubOrderNo);
-
 
21147
        return result;
-
 
21148
      }
-
 
21149
    }
-
 
21150
 
-
 
21151
    private static class homeShopOrderExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, homeShopOrderExists_args> {
-
 
21152
      public homeShopOrderExists() {
-
 
21153
        super("homeShopOrderExists");
-
 
21154
      }
-
 
21155
 
-
 
21156
      protected homeShopOrderExists_args getEmptyArgsInstance() {
-
 
21157
        return new homeShopOrderExists_args();
-
 
21158
      }
-
 
21159
 
-
 
21160
      protected homeShopOrderExists_result getResult(I iface, homeShopOrderExists_args args) throws org.apache.thrift.TException {
-
 
21161
        homeShopOrderExists_result result = new homeShopOrderExists_result();
-
 
21162
        result.success = iface.homeShopOrderExists(args.hsOrderNo, args.hsSubOrderNo);
-
 
21163
        result.setSuccessIsSet(true);
-
 
21164
        return result;
-
 
21165
      }
-
 
21166
    }
-
 
21167
 
20930
  }
21168
  }
20931
 
21169
 
20932
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
21170
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
20933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
21171
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
20934
 
21172
 
Line 194957... Line 195195...
194957
      first = false;
195195
      first = false;
194958
      sb.append(")");
195196
      sb.append(")");
194959
      return sb.toString();
195197
      return sb.toString();
194960
    }
195198
    }
194961
 
195199
 
-
 
195200
    public void validate() throws org.apache.thrift.TException {
-
 
195201
      // check for required fields
-
 
195202
    }
-
 
195203
 
-
 
195204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
195205
      try {
-
 
195206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
195207
      } catch (org.apache.thrift.TException te) {
-
 
195208
        throw new java.io.IOException(te);
-
 
195209
      }
-
 
195210
    }
-
 
195211
 
-
 
195212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
195213
      try {
-
 
195214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
195215
      } catch (org.apache.thrift.TException te) {
-
 
195216
        throw new java.io.IOException(te);
-
 
195217
      }
-
 
195218
    }
-
 
195219
 
-
 
195220
  }
-
 
195221
 
-
 
195222
  public static class createHomeShopOrder_args implements org.apache.thrift.TBase<createHomeShopOrder_args, createHomeShopOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
195223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createHomeShopOrder_args");
-
 
195224
 
-
 
195225
    private static final org.apache.thrift.protocol.TField SNAPDEAL_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
195226
 
-
 
195227
    private HsOrder snapdealOrder; // required
-
 
195228
 
-
 
195229
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
195230
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
195231
      SNAPDEAL_ORDER((short)1, "snapdealOrder");
-
 
195232
 
-
 
195233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
195234
 
-
 
195235
      static {
-
 
195236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
195237
          byName.put(field.getFieldName(), field);
-
 
195238
        }
-
 
195239
      }
-
 
195240
 
-
 
195241
      /**
-
 
195242
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
195243
       */
-
 
195244
      public static _Fields findByThriftId(int fieldId) {
-
 
195245
        switch(fieldId) {
-
 
195246
          case 1: // SNAPDEAL_ORDER
-
 
195247
            return SNAPDEAL_ORDER;
-
 
195248
          default:
-
 
195249
            return null;
-
 
195250
        }
-
 
195251
      }
-
 
195252
 
-
 
195253
      /**
-
 
195254
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
195255
       * if it is not found.
-
 
195256
       */
-
 
195257
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
195258
        _Fields fields = findByThriftId(fieldId);
-
 
195259
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
195260
        return fields;
-
 
195261
      }
-
 
195262
 
-
 
195263
      /**
-
 
195264
       * Find the _Fields constant that matches name, or null if its not found.
-
 
195265
       */
-
 
195266
      public static _Fields findByName(String name) {
-
 
195267
        return byName.get(name);
-
 
195268
      }
-
 
195269
 
-
 
195270
      private final short _thriftId;
-
 
195271
      private final String _fieldName;
-
 
195272
 
-
 
195273
      _Fields(short thriftId, String fieldName) {
-
 
195274
        _thriftId = thriftId;
-
 
195275
        _fieldName = fieldName;
-
 
195276
      }
-
 
195277
 
-
 
195278
      public short getThriftFieldId() {
-
 
195279
        return _thriftId;
-
 
195280
      }
-
 
195281
 
-
 
195282
      public String getFieldName() {
-
 
195283
        return _fieldName;
-
 
195284
      }
-
 
195285
    }
-
 
195286
 
-
 
195287
    // isset id assignments
-
 
195288
 
-
 
195289
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
195290
    static {
-
 
195291
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
195292
      tmpMap.put(_Fields.SNAPDEAL_ORDER, new org.apache.thrift.meta_data.FieldMetaData("snapdealOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195293
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsOrder.class)));
-
 
195294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
195295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createHomeShopOrder_args.class, metaDataMap);
-
 
195296
    }
-
 
195297
 
-
 
195298
    public createHomeShopOrder_args() {
-
 
195299
    }
-
 
195300
 
-
 
195301
    public createHomeShopOrder_args(
-
 
195302
      HsOrder snapdealOrder)
-
 
195303
    {
-
 
195304
      this();
-
 
195305
      this.snapdealOrder = snapdealOrder;
-
 
195306
    }
-
 
195307
 
-
 
195308
    /**
-
 
195309
     * Performs a deep copy on <i>other</i>.
-
 
195310
     */
-
 
195311
    public createHomeShopOrder_args(createHomeShopOrder_args other) {
-
 
195312
      if (other.isSetSnapdealOrder()) {
-
 
195313
        this.snapdealOrder = new HsOrder(other.snapdealOrder);
-
 
195314
      }
-
 
195315
    }
-
 
195316
 
-
 
195317
    public createHomeShopOrder_args deepCopy() {
-
 
195318
      return new createHomeShopOrder_args(this);
-
 
195319
    }
-
 
195320
 
-
 
195321
    @Override
-
 
195322
    public void clear() {
-
 
195323
      this.snapdealOrder = null;
-
 
195324
    }
-
 
195325
 
-
 
195326
    public HsOrder getSnapdealOrder() {
-
 
195327
      return this.snapdealOrder;
-
 
195328
    }
-
 
195329
 
-
 
195330
    public void setSnapdealOrder(HsOrder snapdealOrder) {
-
 
195331
      this.snapdealOrder = snapdealOrder;
-
 
195332
    }
-
 
195333
 
-
 
195334
    public void unsetSnapdealOrder() {
-
 
195335
      this.snapdealOrder = null;
-
 
195336
    }
-
 
195337
 
-
 
195338
    /** Returns true if field snapdealOrder is set (has been assigned a value) and false otherwise */
-
 
195339
    public boolean isSetSnapdealOrder() {
-
 
195340
      return this.snapdealOrder != null;
-
 
195341
    }
-
 
195342
 
-
 
195343
    public void setSnapdealOrderIsSet(boolean value) {
-
 
195344
      if (!value) {
-
 
195345
        this.snapdealOrder = null;
-
 
195346
      }
-
 
195347
    }
-
 
195348
 
-
 
195349
    public void setFieldValue(_Fields field, Object value) {
-
 
195350
      switch (field) {
-
 
195351
      case SNAPDEAL_ORDER:
-
 
195352
        if (value == null) {
-
 
195353
          unsetSnapdealOrder();
-
 
195354
        } else {
-
 
195355
          setSnapdealOrder((HsOrder)value);
-
 
195356
        }
-
 
195357
        break;
-
 
195358
 
-
 
195359
      }
-
 
195360
    }
-
 
195361
 
-
 
195362
    public Object getFieldValue(_Fields field) {
-
 
195363
      switch (field) {
-
 
195364
      case SNAPDEAL_ORDER:
-
 
195365
        return getSnapdealOrder();
-
 
195366
 
-
 
195367
      }
-
 
195368
      throw new IllegalStateException();
-
 
195369
    }
-
 
195370
 
-
 
195371
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
195372
    public boolean isSet(_Fields field) {
-
 
195373
      if (field == null) {
-
 
195374
        throw new IllegalArgumentException();
-
 
195375
      }
-
 
195376
 
-
 
195377
      switch (field) {
-
 
195378
      case SNAPDEAL_ORDER:
-
 
195379
        return isSetSnapdealOrder();
-
 
195380
      }
-
 
195381
      throw new IllegalStateException();
-
 
195382
    }
-
 
195383
 
-
 
195384
    @Override
-
 
195385
    public boolean equals(Object that) {
-
 
195386
      if (that == null)
-
 
195387
        return false;
-
 
195388
      if (that instanceof createHomeShopOrder_args)
-
 
195389
        return this.equals((createHomeShopOrder_args)that);
-
 
195390
      return false;
-
 
195391
    }
-
 
195392
 
-
 
195393
    public boolean equals(createHomeShopOrder_args that) {
-
 
195394
      if (that == null)
-
 
195395
        return false;
-
 
195396
 
-
 
195397
      boolean this_present_snapdealOrder = true && this.isSetSnapdealOrder();
-
 
195398
      boolean that_present_snapdealOrder = true && that.isSetSnapdealOrder();
-
 
195399
      if (this_present_snapdealOrder || that_present_snapdealOrder) {
-
 
195400
        if (!(this_present_snapdealOrder && that_present_snapdealOrder))
-
 
195401
          return false;
-
 
195402
        if (!this.snapdealOrder.equals(that.snapdealOrder))
-
 
195403
          return false;
-
 
195404
      }
-
 
195405
 
-
 
195406
      return true;
-
 
195407
    }
-
 
195408
 
-
 
195409
    @Override
-
 
195410
    public int hashCode() {
-
 
195411
      return 0;
-
 
195412
    }
-
 
195413
 
-
 
195414
    public int compareTo(createHomeShopOrder_args other) {
-
 
195415
      if (!getClass().equals(other.getClass())) {
-
 
195416
        return getClass().getName().compareTo(other.getClass().getName());
-
 
195417
      }
-
 
195418
 
-
 
195419
      int lastComparison = 0;
-
 
195420
      createHomeShopOrder_args typedOther = (createHomeShopOrder_args)other;
-
 
195421
 
-
 
195422
      lastComparison = Boolean.valueOf(isSetSnapdealOrder()).compareTo(typedOther.isSetSnapdealOrder());
-
 
195423
      if (lastComparison != 0) {
-
 
195424
        return lastComparison;
-
 
195425
      }
-
 
195426
      if (isSetSnapdealOrder()) {
-
 
195427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealOrder, typedOther.snapdealOrder);
-
 
195428
        if (lastComparison != 0) {
-
 
195429
          return lastComparison;
-
 
195430
        }
-
 
195431
      }
-
 
195432
      return 0;
-
 
195433
    }
-
 
195434
 
-
 
195435
    public _Fields fieldForId(int fieldId) {
-
 
195436
      return _Fields.findByThriftId(fieldId);
-
 
195437
    }
-
 
195438
 
-
 
195439
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
195440
      org.apache.thrift.protocol.TField field;
-
 
195441
      iprot.readStructBegin();
-
 
195442
      while (true)
-
 
195443
      {
-
 
195444
        field = iprot.readFieldBegin();
-
 
195445
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
195446
          break;
-
 
195447
        }
-
 
195448
        switch (field.id) {
-
 
195449
          case 1: // SNAPDEAL_ORDER
-
 
195450
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
195451
              this.snapdealOrder = new HsOrder();
-
 
195452
              this.snapdealOrder.read(iprot);
-
 
195453
            } else { 
-
 
195454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
195455
            }
-
 
195456
            break;
-
 
195457
          default:
-
 
195458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
195459
        }
-
 
195460
        iprot.readFieldEnd();
-
 
195461
      }
-
 
195462
      iprot.readStructEnd();
-
 
195463
      validate();
-
 
195464
    }
-
 
195465
 
-
 
195466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
195467
      validate();
-
 
195468
 
-
 
195469
      oprot.writeStructBegin(STRUCT_DESC);
-
 
195470
      if (this.snapdealOrder != null) {
-
 
195471
        oprot.writeFieldBegin(SNAPDEAL_ORDER_FIELD_DESC);
-
 
195472
        this.snapdealOrder.write(oprot);
-
 
195473
        oprot.writeFieldEnd();
-
 
195474
      }
-
 
195475
      oprot.writeFieldStop();
-
 
195476
      oprot.writeStructEnd();
-
 
195477
    }
-
 
195478
 
-
 
195479
    @Override
-
 
195480
    public String toString() {
-
 
195481
      StringBuilder sb = new StringBuilder("createHomeShopOrder_args(");
-
 
195482
      boolean first = true;
-
 
195483
 
-
 
195484
      sb.append("snapdealOrder:");
-
 
195485
      if (this.snapdealOrder == null) {
-
 
195486
        sb.append("null");
-
 
195487
      } else {
-
 
195488
        sb.append(this.snapdealOrder);
-
 
195489
      }
-
 
195490
      first = false;
-
 
195491
      sb.append(")");
-
 
195492
      return sb.toString();
-
 
195493
    }
-
 
195494
 
-
 
195495
    public void validate() throws org.apache.thrift.TException {
-
 
195496
      // check for required fields
-
 
195497
    }
-
 
195498
 
-
 
195499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
195500
      try {
-
 
195501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
195502
      } catch (org.apache.thrift.TException te) {
-
 
195503
        throw new java.io.IOException(te);
-
 
195504
      }
-
 
195505
    }
-
 
195506
 
-
 
195507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
195508
      try {
-
 
195509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
195510
      } catch (org.apache.thrift.TException te) {
-
 
195511
        throw new java.io.IOException(te);
-
 
195512
      }
-
 
195513
    }
-
 
195514
 
-
 
195515
  }
-
 
195516
 
-
 
195517
  public static class createHomeShopOrder_result implements org.apache.thrift.TBase<createHomeShopOrder_result, createHomeShopOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
195518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createHomeShopOrder_result");
-
 
195519
 
-
 
195520
 
-
 
195521
 
-
 
195522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
195523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
195524
;
-
 
195525
 
-
 
195526
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
195527
 
-
 
195528
      static {
-
 
195529
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
195530
          byName.put(field.getFieldName(), field);
-
 
195531
        }
-
 
195532
      }
-
 
195533
 
-
 
195534
      /**
-
 
195535
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
195536
       */
-
 
195537
      public static _Fields findByThriftId(int fieldId) {
-
 
195538
        switch(fieldId) {
-
 
195539
          default:
-
 
195540
            return null;
-
 
195541
        }
-
 
195542
      }
-
 
195543
 
-
 
195544
      /**
-
 
195545
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
195546
       * if it is not found.
-
 
195547
       */
-
 
195548
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
195549
        _Fields fields = findByThriftId(fieldId);
-
 
195550
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
195551
        return fields;
-
 
195552
      }
-
 
195553
 
-
 
195554
      /**
-
 
195555
       * Find the _Fields constant that matches name, or null if its not found.
-
 
195556
       */
-
 
195557
      public static _Fields findByName(String name) {
-
 
195558
        return byName.get(name);
-
 
195559
      }
-
 
195560
 
-
 
195561
      private final short _thriftId;
-
 
195562
      private final String _fieldName;
-
 
195563
 
-
 
195564
      _Fields(short thriftId, String fieldName) {
-
 
195565
        _thriftId = thriftId;
-
 
195566
        _fieldName = fieldName;
-
 
195567
      }
-
 
195568
 
-
 
195569
      public short getThriftFieldId() {
-
 
195570
        return _thriftId;
-
 
195571
      }
-
 
195572
 
-
 
195573
      public String getFieldName() {
-
 
195574
        return _fieldName;
-
 
195575
      }
-
 
195576
    }
-
 
195577
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
195578
    static {
-
 
195579
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
195580
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
195581
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createHomeShopOrder_result.class, metaDataMap);
-
 
195582
    }
-
 
195583
 
-
 
195584
    public createHomeShopOrder_result() {
-
 
195585
    }
-
 
195586
 
-
 
195587
    /**
-
 
195588
     * Performs a deep copy on <i>other</i>.
-
 
195589
     */
-
 
195590
    public createHomeShopOrder_result(createHomeShopOrder_result other) {
-
 
195591
    }
-
 
195592
 
-
 
195593
    public createHomeShopOrder_result deepCopy() {
-
 
195594
      return new createHomeShopOrder_result(this);
-
 
195595
    }
-
 
195596
 
-
 
195597
    @Override
-
 
195598
    public void clear() {
-
 
195599
    }
-
 
195600
 
-
 
195601
    public void setFieldValue(_Fields field, Object value) {
-
 
195602
      switch (field) {
-
 
195603
      }
-
 
195604
    }
-
 
195605
 
-
 
195606
    public Object getFieldValue(_Fields field) {
-
 
195607
      switch (field) {
-
 
195608
      }
-
 
195609
      throw new IllegalStateException();
-
 
195610
    }
-
 
195611
 
-
 
195612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
195613
    public boolean isSet(_Fields field) {
-
 
195614
      if (field == null) {
-
 
195615
        throw new IllegalArgumentException();
-
 
195616
      }
-
 
195617
 
-
 
195618
      switch (field) {
-
 
195619
      }
-
 
195620
      throw new IllegalStateException();
-
 
195621
    }
-
 
195622
 
-
 
195623
    @Override
-
 
195624
    public boolean equals(Object that) {
-
 
195625
      if (that == null)
-
 
195626
        return false;
-
 
195627
      if (that instanceof createHomeShopOrder_result)
-
 
195628
        return this.equals((createHomeShopOrder_result)that);
-
 
195629
      return false;
-
 
195630
    }
-
 
195631
 
-
 
195632
    public boolean equals(createHomeShopOrder_result that) {
-
 
195633
      if (that == null)
-
 
195634
        return false;
-
 
195635
 
-
 
195636
      return true;
-
 
195637
    }
-
 
195638
 
-
 
195639
    @Override
-
 
195640
    public int hashCode() {
-
 
195641
      return 0;
-
 
195642
    }
-
 
195643
 
-
 
195644
    public int compareTo(createHomeShopOrder_result other) {
-
 
195645
      if (!getClass().equals(other.getClass())) {
-
 
195646
        return getClass().getName().compareTo(other.getClass().getName());
-
 
195647
      }
-
 
195648
 
-
 
195649
      int lastComparison = 0;
-
 
195650
      createHomeShopOrder_result typedOther = (createHomeShopOrder_result)other;
-
 
195651
 
-
 
195652
      return 0;
-
 
195653
    }
-
 
195654
 
-
 
195655
    public _Fields fieldForId(int fieldId) {
-
 
195656
      return _Fields.findByThriftId(fieldId);
-
 
195657
    }
-
 
195658
 
-
 
195659
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
195660
      org.apache.thrift.protocol.TField field;
-
 
195661
      iprot.readStructBegin();
-
 
195662
      while (true)
-
 
195663
      {
-
 
195664
        field = iprot.readFieldBegin();
-
 
195665
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
195666
          break;
-
 
195667
        }
-
 
195668
        switch (field.id) {
-
 
195669
          default:
-
 
195670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
195671
        }
-
 
195672
        iprot.readFieldEnd();
-
 
195673
      }
-
 
195674
      iprot.readStructEnd();
-
 
195675
      validate();
-
 
195676
    }
-
 
195677
 
-
 
195678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
195679
      oprot.writeStructBegin(STRUCT_DESC);
-
 
195680
 
-
 
195681
      oprot.writeFieldStop();
-
 
195682
      oprot.writeStructEnd();
-
 
195683
    }
-
 
195684
 
-
 
195685
    @Override
-
 
195686
    public String toString() {
-
 
195687
      StringBuilder sb = new StringBuilder("createHomeShopOrder_result(");
-
 
195688
      boolean first = true;
-
 
195689
 
-
 
195690
      sb.append(")");
-
 
195691
      return sb.toString();
-
 
195692
    }
-
 
195693
 
-
 
195694
    public void validate() throws org.apache.thrift.TException {
-
 
195695
      // check for required fields
-
 
195696
    }
-
 
195697
 
-
 
195698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
195699
      try {
-
 
195700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
195701
      } catch (org.apache.thrift.TException te) {
-
 
195702
        throw new java.io.IOException(te);
-
 
195703
      }
-
 
195704
    }
-
 
195705
 
-
 
195706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
195707
      try {
-
 
195708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
195709
      } catch (org.apache.thrift.TException te) {
-
 
195710
        throw new java.io.IOException(te);
-
 
195711
      }
-
 
195712
    }
-
 
195713
 
-
 
195714
  }
-
 
195715
 
-
 
195716
  public static class getHomeShopOrder_args implements org.apache.thrift.TBase<getHomeShopOrder_args, getHomeShopOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
195717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHomeShopOrder_args");
-
 
195718
 
-
 
195719
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
195720
    private static final org.apache.thrift.protocol.TField HS_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderNo", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
195721
    private static final org.apache.thrift.protocol.TField HS_SUB_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsSubOrderNo", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
195722
 
-
 
195723
    private long orderId; // required
-
 
195724
    private String hsOrderNo; // required
-
 
195725
    private String hsSubOrderNo; // required
-
 
195726
 
-
 
195727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
195728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
195729
      ORDER_ID((short)1, "orderId"),
-
 
195730
      HS_ORDER_NO((short)2, "hsOrderNo"),
-
 
195731
      HS_SUB_ORDER_NO((short)3, "hsSubOrderNo");
-
 
195732
 
-
 
195733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
195734
 
-
 
195735
      static {
-
 
195736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
195737
          byName.put(field.getFieldName(), field);
-
 
195738
        }
-
 
195739
      }
-
 
195740
 
-
 
195741
      /**
-
 
195742
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
195743
       */
-
 
195744
      public static _Fields findByThriftId(int fieldId) {
-
 
195745
        switch(fieldId) {
-
 
195746
          case 1: // ORDER_ID
-
 
195747
            return ORDER_ID;
-
 
195748
          case 2: // HS_ORDER_NO
-
 
195749
            return HS_ORDER_NO;
-
 
195750
          case 3: // HS_SUB_ORDER_NO
-
 
195751
            return HS_SUB_ORDER_NO;
-
 
195752
          default:
-
 
195753
            return null;
-
 
195754
        }
-
 
195755
      }
-
 
195756
 
-
 
195757
      /**
-
 
195758
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
195759
       * if it is not found.
-
 
195760
       */
-
 
195761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
195762
        _Fields fields = findByThriftId(fieldId);
-
 
195763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
195764
        return fields;
-
 
195765
      }
-
 
195766
 
-
 
195767
      /**
-
 
195768
       * Find the _Fields constant that matches name, or null if its not found.
-
 
195769
       */
-
 
195770
      public static _Fields findByName(String name) {
-
 
195771
        return byName.get(name);
-
 
195772
      }
-
 
195773
 
-
 
195774
      private final short _thriftId;
-
 
195775
      private final String _fieldName;
-
 
195776
 
-
 
195777
      _Fields(short thriftId, String fieldName) {
-
 
195778
        _thriftId = thriftId;
-
 
195779
        _fieldName = fieldName;
-
 
195780
      }
-
 
195781
 
-
 
195782
      public short getThriftFieldId() {
-
 
195783
        return _thriftId;
-
 
195784
      }
-
 
195785
 
-
 
195786
      public String getFieldName() {
-
 
195787
        return _fieldName;
-
 
195788
      }
-
 
195789
    }
-
 
195790
 
-
 
195791
    // isset id assignments
-
 
195792
    private static final int __ORDERID_ISSET_ID = 0;
-
 
195793
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
195794
 
-
 
195795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
195796
    static {
-
 
195797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
195798
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
195800
      tmpMap.put(_Fields.HS_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
195802
      tmpMap.put(_Fields.HS_SUB_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsSubOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
195804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
195805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHomeShopOrder_args.class, metaDataMap);
-
 
195806
    }
-
 
195807
 
-
 
195808
    public getHomeShopOrder_args() {
-
 
195809
    }
-
 
195810
 
-
 
195811
    public getHomeShopOrder_args(
-
 
195812
      long orderId,
-
 
195813
      String hsOrderNo,
-
 
195814
      String hsSubOrderNo)
-
 
195815
    {
-
 
195816
      this();
-
 
195817
      this.orderId = orderId;
-
 
195818
      setOrderIdIsSet(true);
-
 
195819
      this.hsOrderNo = hsOrderNo;
-
 
195820
      this.hsSubOrderNo = hsSubOrderNo;
-
 
195821
    }
-
 
195822
 
-
 
195823
    /**
-
 
195824
     * Performs a deep copy on <i>other</i>.
-
 
195825
     */
-
 
195826
    public getHomeShopOrder_args(getHomeShopOrder_args other) {
-
 
195827
      __isset_bit_vector.clear();
-
 
195828
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
195829
      this.orderId = other.orderId;
-
 
195830
      if (other.isSetHsOrderNo()) {
-
 
195831
        this.hsOrderNo = other.hsOrderNo;
-
 
195832
      }
-
 
195833
      if (other.isSetHsSubOrderNo()) {
-
 
195834
        this.hsSubOrderNo = other.hsSubOrderNo;
-
 
195835
      }
-
 
195836
    }
-
 
195837
 
-
 
195838
    public getHomeShopOrder_args deepCopy() {
-
 
195839
      return new getHomeShopOrder_args(this);
-
 
195840
    }
-
 
195841
 
-
 
195842
    @Override
-
 
195843
    public void clear() {
-
 
195844
      setOrderIdIsSet(false);
-
 
195845
      this.orderId = 0;
-
 
195846
      this.hsOrderNo = null;
-
 
195847
      this.hsSubOrderNo = null;
-
 
195848
    }
-
 
195849
 
-
 
195850
    public long getOrderId() {
-
 
195851
      return this.orderId;
-
 
195852
    }
-
 
195853
 
-
 
195854
    public void setOrderId(long orderId) {
-
 
195855
      this.orderId = orderId;
-
 
195856
      setOrderIdIsSet(true);
-
 
195857
    }
-
 
195858
 
-
 
195859
    public void unsetOrderId() {
-
 
195860
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
195861
    }
-
 
195862
 
-
 
195863
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
195864
    public boolean isSetOrderId() {
-
 
195865
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
195866
    }
-
 
195867
 
-
 
195868
    public void setOrderIdIsSet(boolean value) {
-
 
195869
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
195870
    }
-
 
195871
 
-
 
195872
    public String getHsOrderNo() {
-
 
195873
      return this.hsOrderNo;
-
 
195874
    }
-
 
195875
 
-
 
195876
    public void setHsOrderNo(String hsOrderNo) {
-
 
195877
      this.hsOrderNo = hsOrderNo;
-
 
195878
    }
-
 
195879
 
-
 
195880
    public void unsetHsOrderNo() {
-
 
195881
      this.hsOrderNo = null;
-
 
195882
    }
-
 
195883
 
-
 
195884
    /** Returns true if field hsOrderNo is set (has been assigned a value) and false otherwise */
-
 
195885
    public boolean isSetHsOrderNo() {
-
 
195886
      return this.hsOrderNo != null;
-
 
195887
    }
-
 
195888
 
-
 
195889
    public void setHsOrderNoIsSet(boolean value) {
-
 
195890
      if (!value) {
-
 
195891
        this.hsOrderNo = null;
-
 
195892
      }
-
 
195893
    }
-
 
195894
 
-
 
195895
    public String getHsSubOrderNo() {
-
 
195896
      return this.hsSubOrderNo;
-
 
195897
    }
-
 
195898
 
-
 
195899
    public void setHsSubOrderNo(String hsSubOrderNo) {
-
 
195900
      this.hsSubOrderNo = hsSubOrderNo;
-
 
195901
    }
-
 
195902
 
-
 
195903
    public void unsetHsSubOrderNo() {
-
 
195904
      this.hsSubOrderNo = null;
-
 
195905
    }
-
 
195906
 
-
 
195907
    /** Returns true if field hsSubOrderNo is set (has been assigned a value) and false otherwise */
-
 
195908
    public boolean isSetHsSubOrderNo() {
-
 
195909
      return this.hsSubOrderNo != null;
-
 
195910
    }
-
 
195911
 
-
 
195912
    public void setHsSubOrderNoIsSet(boolean value) {
-
 
195913
      if (!value) {
-
 
195914
        this.hsSubOrderNo = null;
-
 
195915
      }
-
 
195916
    }
-
 
195917
 
-
 
195918
    public void setFieldValue(_Fields field, Object value) {
-
 
195919
      switch (field) {
-
 
195920
      case ORDER_ID:
-
 
195921
        if (value == null) {
-
 
195922
          unsetOrderId();
-
 
195923
        } else {
-
 
195924
          setOrderId((Long)value);
-
 
195925
        }
-
 
195926
        break;
-
 
195927
 
-
 
195928
      case HS_ORDER_NO:
-
 
195929
        if (value == null) {
-
 
195930
          unsetHsOrderNo();
-
 
195931
        } else {
-
 
195932
          setHsOrderNo((String)value);
-
 
195933
        }
-
 
195934
        break;
-
 
195935
 
-
 
195936
      case HS_SUB_ORDER_NO:
-
 
195937
        if (value == null) {
-
 
195938
          unsetHsSubOrderNo();
-
 
195939
        } else {
-
 
195940
          setHsSubOrderNo((String)value);
-
 
195941
        }
-
 
195942
        break;
-
 
195943
 
-
 
195944
      }
-
 
195945
    }
-
 
195946
 
-
 
195947
    public Object getFieldValue(_Fields field) {
-
 
195948
      switch (field) {
-
 
195949
      case ORDER_ID:
-
 
195950
        return Long.valueOf(getOrderId());
-
 
195951
 
-
 
195952
      case HS_ORDER_NO:
-
 
195953
        return getHsOrderNo();
-
 
195954
 
-
 
195955
      case HS_SUB_ORDER_NO:
-
 
195956
        return getHsSubOrderNo();
-
 
195957
 
-
 
195958
      }
-
 
195959
      throw new IllegalStateException();
-
 
195960
    }
-
 
195961
 
-
 
195962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
195963
    public boolean isSet(_Fields field) {
-
 
195964
      if (field == null) {
-
 
195965
        throw new IllegalArgumentException();
-
 
195966
      }
-
 
195967
 
-
 
195968
      switch (field) {
-
 
195969
      case ORDER_ID:
-
 
195970
        return isSetOrderId();
-
 
195971
      case HS_ORDER_NO:
-
 
195972
        return isSetHsOrderNo();
-
 
195973
      case HS_SUB_ORDER_NO:
-
 
195974
        return isSetHsSubOrderNo();
-
 
195975
      }
-
 
195976
      throw new IllegalStateException();
-
 
195977
    }
-
 
195978
 
-
 
195979
    @Override
-
 
195980
    public boolean equals(Object that) {
-
 
195981
      if (that == null)
-
 
195982
        return false;
-
 
195983
      if (that instanceof getHomeShopOrder_args)
-
 
195984
        return this.equals((getHomeShopOrder_args)that);
-
 
195985
      return false;
-
 
195986
    }
-
 
195987
 
-
 
195988
    public boolean equals(getHomeShopOrder_args that) {
-
 
195989
      if (that == null)
-
 
195990
        return false;
-
 
195991
 
-
 
195992
      boolean this_present_orderId = true;
-
 
195993
      boolean that_present_orderId = true;
-
 
195994
      if (this_present_orderId || that_present_orderId) {
-
 
195995
        if (!(this_present_orderId && that_present_orderId))
-
 
195996
          return false;
-
 
195997
        if (this.orderId != that.orderId)
-
 
195998
          return false;
-
 
195999
      }
-
 
196000
 
-
 
196001
      boolean this_present_hsOrderNo = true && this.isSetHsOrderNo();
-
 
196002
      boolean that_present_hsOrderNo = true && that.isSetHsOrderNo();
-
 
196003
      if (this_present_hsOrderNo || that_present_hsOrderNo) {
-
 
196004
        if (!(this_present_hsOrderNo && that_present_hsOrderNo))
-
 
196005
          return false;
-
 
196006
        if (!this.hsOrderNo.equals(that.hsOrderNo))
-
 
196007
          return false;
-
 
196008
      }
-
 
196009
 
-
 
196010
      boolean this_present_hsSubOrderNo = true && this.isSetHsSubOrderNo();
-
 
196011
      boolean that_present_hsSubOrderNo = true && that.isSetHsSubOrderNo();
-
 
196012
      if (this_present_hsSubOrderNo || that_present_hsSubOrderNo) {
-
 
196013
        if (!(this_present_hsSubOrderNo && that_present_hsSubOrderNo))
-
 
196014
          return false;
-
 
196015
        if (!this.hsSubOrderNo.equals(that.hsSubOrderNo))
-
 
196016
          return false;
-
 
196017
      }
-
 
196018
 
-
 
196019
      return true;
-
 
196020
    }
-
 
196021
 
-
 
196022
    @Override
-
 
196023
    public int hashCode() {
-
 
196024
      return 0;
-
 
196025
    }
-
 
196026
 
-
 
196027
    public int compareTo(getHomeShopOrder_args other) {
-
 
196028
      if (!getClass().equals(other.getClass())) {
-
 
196029
        return getClass().getName().compareTo(other.getClass().getName());
-
 
196030
      }
-
 
196031
 
-
 
196032
      int lastComparison = 0;
-
 
196033
      getHomeShopOrder_args typedOther = (getHomeShopOrder_args)other;
-
 
196034
 
-
 
196035
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
196036
      if (lastComparison != 0) {
-
 
196037
        return lastComparison;
-
 
196038
      }
-
 
196039
      if (isSetOrderId()) {
-
 
196040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
196041
        if (lastComparison != 0) {
-
 
196042
          return lastComparison;
-
 
196043
        }
-
 
196044
      }
-
 
196045
      lastComparison = Boolean.valueOf(isSetHsOrderNo()).compareTo(typedOther.isSetHsOrderNo());
-
 
196046
      if (lastComparison != 0) {
-
 
196047
        return lastComparison;
-
 
196048
      }
-
 
196049
      if (isSetHsOrderNo()) {
-
 
196050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderNo, typedOther.hsOrderNo);
-
 
196051
        if (lastComparison != 0) {
-
 
196052
          return lastComparison;
-
 
196053
        }
-
 
196054
      }
-
 
196055
      lastComparison = Boolean.valueOf(isSetHsSubOrderNo()).compareTo(typedOther.isSetHsSubOrderNo());
-
 
196056
      if (lastComparison != 0) {
-
 
196057
        return lastComparison;
-
 
196058
      }
-
 
196059
      if (isSetHsSubOrderNo()) {
-
 
196060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsSubOrderNo, typedOther.hsSubOrderNo);
-
 
196061
        if (lastComparison != 0) {
-
 
196062
          return lastComparison;
-
 
196063
        }
-
 
196064
      }
-
 
196065
      return 0;
-
 
196066
    }
-
 
196067
 
-
 
196068
    public _Fields fieldForId(int fieldId) {
-
 
196069
      return _Fields.findByThriftId(fieldId);
-
 
196070
    }
-
 
196071
 
-
 
196072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
196073
      org.apache.thrift.protocol.TField field;
-
 
196074
      iprot.readStructBegin();
-
 
196075
      while (true)
-
 
196076
      {
-
 
196077
        field = iprot.readFieldBegin();
-
 
196078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
196079
          break;
-
 
196080
        }
-
 
196081
        switch (field.id) {
-
 
196082
          case 1: // ORDER_ID
-
 
196083
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
196084
              this.orderId = iprot.readI64();
-
 
196085
              setOrderIdIsSet(true);
-
 
196086
            } else { 
-
 
196087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196088
            }
-
 
196089
            break;
-
 
196090
          case 2: // HS_ORDER_NO
-
 
196091
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
196092
              this.hsOrderNo = iprot.readString();
-
 
196093
            } else { 
-
 
196094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196095
            }
-
 
196096
            break;
-
 
196097
          case 3: // HS_SUB_ORDER_NO
-
 
196098
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
196099
              this.hsSubOrderNo = iprot.readString();
-
 
196100
            } else { 
-
 
196101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196102
            }
-
 
196103
            break;
-
 
196104
          default:
-
 
196105
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196106
        }
-
 
196107
        iprot.readFieldEnd();
-
 
196108
      }
-
 
196109
      iprot.readStructEnd();
-
 
196110
      validate();
-
 
196111
    }
-
 
196112
 
-
 
196113
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
196114
      validate();
-
 
196115
 
-
 
196116
      oprot.writeStructBegin(STRUCT_DESC);
-
 
196117
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
196118
      oprot.writeI64(this.orderId);
-
 
196119
      oprot.writeFieldEnd();
-
 
196120
      if (this.hsOrderNo != null) {
-
 
196121
        oprot.writeFieldBegin(HS_ORDER_NO_FIELD_DESC);
-
 
196122
        oprot.writeString(this.hsOrderNo);
-
 
196123
        oprot.writeFieldEnd();
-
 
196124
      }
-
 
196125
      if (this.hsSubOrderNo != null) {
-
 
196126
        oprot.writeFieldBegin(HS_SUB_ORDER_NO_FIELD_DESC);
-
 
196127
        oprot.writeString(this.hsSubOrderNo);
-
 
196128
        oprot.writeFieldEnd();
-
 
196129
      }
-
 
196130
      oprot.writeFieldStop();
-
 
196131
      oprot.writeStructEnd();
-
 
196132
    }
-
 
196133
 
-
 
196134
    @Override
-
 
196135
    public String toString() {
-
 
196136
      StringBuilder sb = new StringBuilder("getHomeShopOrder_args(");
-
 
196137
      boolean first = true;
-
 
196138
 
-
 
196139
      sb.append("orderId:");
-
 
196140
      sb.append(this.orderId);
-
 
196141
      first = false;
-
 
196142
      if (!first) sb.append(", ");
-
 
196143
      sb.append("hsOrderNo:");
-
 
196144
      if (this.hsOrderNo == null) {
-
 
196145
        sb.append("null");
-
 
196146
      } else {
-
 
196147
        sb.append(this.hsOrderNo);
-
 
196148
      }
-
 
196149
      first = false;
-
 
196150
      if (!first) sb.append(", ");
-
 
196151
      sb.append("hsSubOrderNo:");
-
 
196152
      if (this.hsSubOrderNo == null) {
-
 
196153
        sb.append("null");
-
 
196154
      } else {
-
 
196155
        sb.append(this.hsSubOrderNo);
-
 
196156
      }
-
 
196157
      first = false;
-
 
196158
      sb.append(")");
-
 
196159
      return sb.toString();
-
 
196160
    }
-
 
196161
 
-
 
196162
    public void validate() throws org.apache.thrift.TException {
-
 
196163
      // check for required fields
-
 
196164
    }
-
 
196165
 
-
 
196166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
196167
      try {
-
 
196168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
196169
      } catch (org.apache.thrift.TException te) {
-
 
196170
        throw new java.io.IOException(te);
-
 
196171
      }
-
 
196172
    }
-
 
196173
 
-
 
196174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
196175
      try {
-
 
196176
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
196177
        __isset_bit_vector = new BitSet(1);
-
 
196178
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
196179
      } catch (org.apache.thrift.TException te) {
-
 
196180
        throw new java.io.IOException(te);
-
 
196181
      }
-
 
196182
    }
-
 
196183
 
-
 
196184
  }
-
 
196185
 
-
 
196186
  public static class getHomeShopOrder_result implements org.apache.thrift.TBase<getHomeShopOrder_result, getHomeShopOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
196187
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHomeShopOrder_result");
-
 
196188
 
-
 
196189
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
196190
 
-
 
196191
    private List<HsOrder> success; // required
-
 
196192
 
-
 
196193
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
196194
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
196195
      SUCCESS((short)0, "success");
-
 
196196
 
-
 
196197
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
196198
 
-
 
196199
      static {
-
 
196200
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
196201
          byName.put(field.getFieldName(), field);
-
 
196202
        }
-
 
196203
      }
-
 
196204
 
-
 
196205
      /**
-
 
196206
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
196207
       */
-
 
196208
      public static _Fields findByThriftId(int fieldId) {
-
 
196209
        switch(fieldId) {
-
 
196210
          case 0: // SUCCESS
-
 
196211
            return SUCCESS;
-
 
196212
          default:
-
 
196213
            return null;
-
 
196214
        }
-
 
196215
      }
-
 
196216
 
-
 
196217
      /**
-
 
196218
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
196219
       * if it is not found.
-
 
196220
       */
-
 
196221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
196222
        _Fields fields = findByThriftId(fieldId);
-
 
196223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
196224
        return fields;
-
 
196225
      }
-
 
196226
 
-
 
196227
      /**
-
 
196228
       * Find the _Fields constant that matches name, or null if its not found.
-
 
196229
       */
-
 
196230
      public static _Fields findByName(String name) {
-
 
196231
        return byName.get(name);
-
 
196232
      }
-
 
196233
 
-
 
196234
      private final short _thriftId;
-
 
196235
      private final String _fieldName;
-
 
196236
 
-
 
196237
      _Fields(short thriftId, String fieldName) {
-
 
196238
        _thriftId = thriftId;
-
 
196239
        _fieldName = fieldName;
-
 
196240
      }
-
 
196241
 
-
 
196242
      public short getThriftFieldId() {
-
 
196243
        return _thriftId;
-
 
196244
      }
-
 
196245
 
-
 
196246
      public String getFieldName() {
-
 
196247
        return _fieldName;
-
 
196248
      }
-
 
196249
    }
-
 
196250
 
-
 
196251
    // isset id assignments
-
 
196252
 
-
 
196253
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
196254
    static {
-
 
196255
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
196256
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
196257
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
196258
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsOrder.class))));
-
 
196259
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
196260
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHomeShopOrder_result.class, metaDataMap);
-
 
196261
    }
-
 
196262
 
-
 
196263
    public getHomeShopOrder_result() {
-
 
196264
    }
-
 
196265
 
-
 
196266
    public getHomeShopOrder_result(
-
 
196267
      List<HsOrder> success)
-
 
196268
    {
-
 
196269
      this();
-
 
196270
      this.success = success;
-
 
196271
    }
-
 
196272
 
-
 
196273
    /**
-
 
196274
     * Performs a deep copy on <i>other</i>.
-
 
196275
     */
-
 
196276
    public getHomeShopOrder_result(getHomeShopOrder_result other) {
-
 
196277
      if (other.isSetSuccess()) {
-
 
196278
        List<HsOrder> __this__success = new ArrayList<HsOrder>();
-
 
196279
        for (HsOrder other_element : other.success) {
-
 
196280
          __this__success.add(new HsOrder(other_element));
-
 
196281
        }
-
 
196282
        this.success = __this__success;
-
 
196283
      }
-
 
196284
    }
-
 
196285
 
-
 
196286
    public getHomeShopOrder_result deepCopy() {
-
 
196287
      return new getHomeShopOrder_result(this);
-
 
196288
    }
-
 
196289
 
-
 
196290
    @Override
-
 
196291
    public void clear() {
-
 
196292
      this.success = null;
-
 
196293
    }
-
 
196294
 
-
 
196295
    public int getSuccessSize() {
-
 
196296
      return (this.success == null) ? 0 : this.success.size();
-
 
196297
    }
-
 
196298
 
-
 
196299
    public java.util.Iterator<HsOrder> getSuccessIterator() {
-
 
196300
      return (this.success == null) ? null : this.success.iterator();
-
 
196301
    }
-
 
196302
 
-
 
196303
    public void addToSuccess(HsOrder elem) {
-
 
196304
      if (this.success == null) {
-
 
196305
        this.success = new ArrayList<HsOrder>();
-
 
196306
      }
-
 
196307
      this.success.add(elem);
-
 
196308
    }
-
 
196309
 
-
 
196310
    public List<HsOrder> getSuccess() {
-
 
196311
      return this.success;
-
 
196312
    }
-
 
196313
 
-
 
196314
    public void setSuccess(List<HsOrder> success) {
-
 
196315
      this.success = success;
-
 
196316
    }
-
 
196317
 
-
 
196318
    public void unsetSuccess() {
-
 
196319
      this.success = null;
-
 
196320
    }
-
 
196321
 
-
 
196322
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
196323
    public boolean isSetSuccess() {
-
 
196324
      return this.success != null;
-
 
196325
    }
-
 
196326
 
-
 
196327
    public void setSuccessIsSet(boolean value) {
-
 
196328
      if (!value) {
-
 
196329
        this.success = null;
-
 
196330
      }
-
 
196331
    }
-
 
196332
 
-
 
196333
    public void setFieldValue(_Fields field, Object value) {
-
 
196334
      switch (field) {
-
 
196335
      case SUCCESS:
-
 
196336
        if (value == null) {
-
 
196337
          unsetSuccess();
-
 
196338
        } else {
-
 
196339
          setSuccess((List<HsOrder>)value);
-
 
196340
        }
-
 
196341
        break;
-
 
196342
 
-
 
196343
      }
-
 
196344
    }
-
 
196345
 
-
 
196346
    public Object getFieldValue(_Fields field) {
-
 
196347
      switch (field) {
-
 
196348
      case SUCCESS:
-
 
196349
        return getSuccess();
-
 
196350
 
-
 
196351
      }
-
 
196352
      throw new IllegalStateException();
-
 
196353
    }
-
 
196354
 
-
 
196355
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
196356
    public boolean isSet(_Fields field) {
-
 
196357
      if (field == null) {
-
 
196358
        throw new IllegalArgumentException();
-
 
196359
      }
-
 
196360
 
-
 
196361
      switch (field) {
-
 
196362
      case SUCCESS:
-
 
196363
        return isSetSuccess();
-
 
196364
      }
-
 
196365
      throw new IllegalStateException();
-
 
196366
    }
-
 
196367
 
-
 
196368
    @Override
-
 
196369
    public boolean equals(Object that) {
-
 
196370
      if (that == null)
-
 
196371
        return false;
-
 
196372
      if (that instanceof getHomeShopOrder_result)
-
 
196373
        return this.equals((getHomeShopOrder_result)that);
-
 
196374
      return false;
-
 
196375
    }
-
 
196376
 
-
 
196377
    public boolean equals(getHomeShopOrder_result that) {
-
 
196378
      if (that == null)
-
 
196379
        return false;
-
 
196380
 
-
 
196381
      boolean this_present_success = true && this.isSetSuccess();
-
 
196382
      boolean that_present_success = true && that.isSetSuccess();
-
 
196383
      if (this_present_success || that_present_success) {
-
 
196384
        if (!(this_present_success && that_present_success))
-
 
196385
          return false;
-
 
196386
        if (!this.success.equals(that.success))
-
 
196387
          return false;
-
 
196388
      }
-
 
196389
 
-
 
196390
      return true;
-
 
196391
    }
-
 
196392
 
-
 
196393
    @Override
-
 
196394
    public int hashCode() {
-
 
196395
      return 0;
-
 
196396
    }
-
 
196397
 
-
 
196398
    public int compareTo(getHomeShopOrder_result other) {
-
 
196399
      if (!getClass().equals(other.getClass())) {
-
 
196400
        return getClass().getName().compareTo(other.getClass().getName());
-
 
196401
      }
-
 
196402
 
-
 
196403
      int lastComparison = 0;
-
 
196404
      getHomeShopOrder_result typedOther = (getHomeShopOrder_result)other;
-
 
196405
 
-
 
196406
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
196407
      if (lastComparison != 0) {
-
 
196408
        return lastComparison;
-
 
196409
      }
-
 
196410
      if (isSetSuccess()) {
-
 
196411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
196412
        if (lastComparison != 0) {
-
 
196413
          return lastComparison;
-
 
196414
        }
-
 
196415
      }
-
 
196416
      return 0;
-
 
196417
    }
-
 
196418
 
-
 
196419
    public _Fields fieldForId(int fieldId) {
-
 
196420
      return _Fields.findByThriftId(fieldId);
-
 
196421
    }
-
 
196422
 
-
 
196423
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
196424
      org.apache.thrift.protocol.TField field;
-
 
196425
      iprot.readStructBegin();
-
 
196426
      while (true)
-
 
196427
      {
-
 
196428
        field = iprot.readFieldBegin();
-
 
196429
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
196430
          break;
-
 
196431
        }
-
 
196432
        switch (field.id) {
-
 
196433
          case 0: // SUCCESS
-
 
196434
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
196435
              {
-
 
196436
                org.apache.thrift.protocol.TList _list644 = iprot.readListBegin();
-
 
196437
                this.success = new ArrayList<HsOrder>(_list644.size);
-
 
196438
                for (int _i645 = 0; _i645 < _list644.size; ++_i645)
-
 
196439
                {
-
 
196440
                  HsOrder _elem646; // required
-
 
196441
                  _elem646 = new HsOrder();
-
 
196442
                  _elem646.read(iprot);
-
 
196443
                  this.success.add(_elem646);
-
 
196444
                }
-
 
196445
                iprot.readListEnd();
-
 
196446
              }
-
 
196447
            } else { 
-
 
196448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196449
            }
-
 
196450
            break;
-
 
196451
          default:
-
 
196452
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196453
        }
-
 
196454
        iprot.readFieldEnd();
-
 
196455
      }
-
 
196456
      iprot.readStructEnd();
-
 
196457
      validate();
-
 
196458
    }
-
 
196459
 
-
 
196460
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
196461
      oprot.writeStructBegin(STRUCT_DESC);
-
 
196462
 
-
 
196463
      if (this.isSetSuccess()) {
-
 
196464
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
196465
        {
-
 
196466
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
196467
          for (HsOrder _iter647 : this.success)
-
 
196468
          {
-
 
196469
            _iter647.write(oprot);
-
 
196470
          }
-
 
196471
          oprot.writeListEnd();
-
 
196472
        }
-
 
196473
        oprot.writeFieldEnd();
-
 
196474
      }
-
 
196475
      oprot.writeFieldStop();
-
 
196476
      oprot.writeStructEnd();
-
 
196477
    }
-
 
196478
 
-
 
196479
    @Override
-
 
196480
    public String toString() {
-
 
196481
      StringBuilder sb = new StringBuilder("getHomeShopOrder_result(");
-
 
196482
      boolean first = true;
-
 
196483
 
-
 
196484
      sb.append("success:");
-
 
196485
      if (this.success == null) {
-
 
196486
        sb.append("null");
-
 
196487
      } else {
-
 
196488
        sb.append(this.success);
-
 
196489
      }
-
 
196490
      first = false;
-
 
196491
      sb.append(")");
-
 
196492
      return sb.toString();
-
 
196493
    }
-
 
196494
 
-
 
196495
    public void validate() throws org.apache.thrift.TException {
-
 
196496
      // check for required fields
-
 
196497
    }
-
 
196498
 
-
 
196499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
196500
      try {
-
 
196501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
196502
      } catch (org.apache.thrift.TException te) {
-
 
196503
        throw new java.io.IOException(te);
-
 
196504
      }
-
 
196505
    }
-
 
196506
 
-
 
196507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
196508
      try {
-
 
196509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
196510
      } catch (org.apache.thrift.TException te) {
-
 
196511
        throw new java.io.IOException(te);
-
 
196512
      }
-
 
196513
    }
-
 
196514
 
-
 
196515
  }
-
 
196516
 
-
 
196517
  public static class homeShopOrderExists_args implements org.apache.thrift.TBase<homeShopOrderExists_args, homeShopOrderExists_args._Fields>, java.io.Serializable, Cloneable   {
-
 
196518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("homeShopOrderExists_args");
-
 
196519
 
-
 
196520
    private static final org.apache.thrift.protocol.TField HS_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderNo", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
196521
    private static final org.apache.thrift.protocol.TField HS_SUB_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsSubOrderNo", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
196522
 
-
 
196523
    private String hsOrderNo; // required
-
 
196524
    private String hsSubOrderNo; // required
-
 
196525
 
-
 
196526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
196527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
196528
      HS_ORDER_NO((short)1, "hsOrderNo"),
-
 
196529
      HS_SUB_ORDER_NO((short)2, "hsSubOrderNo");
-
 
196530
 
-
 
196531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
196532
 
-
 
196533
      static {
-
 
196534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
196535
          byName.put(field.getFieldName(), field);
-
 
196536
        }
-
 
196537
      }
-
 
196538
 
-
 
196539
      /**
-
 
196540
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
196541
       */
-
 
196542
      public static _Fields findByThriftId(int fieldId) {
-
 
196543
        switch(fieldId) {
-
 
196544
          case 1: // HS_ORDER_NO
-
 
196545
            return HS_ORDER_NO;
-
 
196546
          case 2: // HS_SUB_ORDER_NO
-
 
196547
            return HS_SUB_ORDER_NO;
-
 
196548
          default:
-
 
196549
            return null;
-
 
196550
        }
-
 
196551
      }
-
 
196552
 
-
 
196553
      /**
-
 
196554
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
196555
       * if it is not found.
-
 
196556
       */
-
 
196557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
196558
        _Fields fields = findByThriftId(fieldId);
-
 
196559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
196560
        return fields;
-
 
196561
      }
-
 
196562
 
-
 
196563
      /**
-
 
196564
       * Find the _Fields constant that matches name, or null if its not found.
-
 
196565
       */
-
 
196566
      public static _Fields findByName(String name) {
-
 
196567
        return byName.get(name);
-
 
196568
      }
-
 
196569
 
-
 
196570
      private final short _thriftId;
-
 
196571
      private final String _fieldName;
-
 
196572
 
-
 
196573
      _Fields(short thriftId, String fieldName) {
-
 
196574
        _thriftId = thriftId;
-
 
196575
        _fieldName = fieldName;
-
 
196576
      }
-
 
196577
 
-
 
196578
      public short getThriftFieldId() {
-
 
196579
        return _thriftId;
-
 
196580
      }
-
 
196581
 
-
 
196582
      public String getFieldName() {
-
 
196583
        return _fieldName;
-
 
196584
      }
-
 
196585
    }
-
 
196586
 
-
 
196587
    // isset id assignments
-
 
196588
 
-
 
196589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
196590
    static {
-
 
196591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
196592
      tmpMap.put(_Fields.HS_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
196593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
196594
      tmpMap.put(_Fields.HS_SUB_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsSubOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
196595
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
196596
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
196597
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(homeShopOrderExists_args.class, metaDataMap);
-
 
196598
    }
-
 
196599
 
-
 
196600
    public homeShopOrderExists_args() {
-
 
196601
    }
-
 
196602
 
-
 
196603
    public homeShopOrderExists_args(
-
 
196604
      String hsOrderNo,
-
 
196605
      String hsSubOrderNo)
-
 
196606
    {
-
 
196607
      this();
-
 
196608
      this.hsOrderNo = hsOrderNo;
-
 
196609
      this.hsSubOrderNo = hsSubOrderNo;
-
 
196610
    }
-
 
196611
 
-
 
196612
    /**
-
 
196613
     * Performs a deep copy on <i>other</i>.
-
 
196614
     */
-
 
196615
    public homeShopOrderExists_args(homeShopOrderExists_args other) {
-
 
196616
      if (other.isSetHsOrderNo()) {
-
 
196617
        this.hsOrderNo = other.hsOrderNo;
-
 
196618
      }
-
 
196619
      if (other.isSetHsSubOrderNo()) {
-
 
196620
        this.hsSubOrderNo = other.hsSubOrderNo;
-
 
196621
      }
-
 
196622
    }
-
 
196623
 
-
 
196624
    public homeShopOrderExists_args deepCopy() {
-
 
196625
      return new homeShopOrderExists_args(this);
-
 
196626
    }
-
 
196627
 
-
 
196628
    @Override
-
 
196629
    public void clear() {
-
 
196630
      this.hsOrderNo = null;
-
 
196631
      this.hsSubOrderNo = null;
-
 
196632
    }
-
 
196633
 
-
 
196634
    public String getHsOrderNo() {
-
 
196635
      return this.hsOrderNo;
-
 
196636
    }
-
 
196637
 
-
 
196638
    public void setHsOrderNo(String hsOrderNo) {
-
 
196639
      this.hsOrderNo = hsOrderNo;
-
 
196640
    }
-
 
196641
 
-
 
196642
    public void unsetHsOrderNo() {
-
 
196643
      this.hsOrderNo = null;
-
 
196644
    }
-
 
196645
 
-
 
196646
    /** Returns true if field hsOrderNo is set (has been assigned a value) and false otherwise */
-
 
196647
    public boolean isSetHsOrderNo() {
-
 
196648
      return this.hsOrderNo != null;
-
 
196649
    }
-
 
196650
 
-
 
196651
    public void setHsOrderNoIsSet(boolean value) {
-
 
196652
      if (!value) {
-
 
196653
        this.hsOrderNo = null;
-
 
196654
      }
-
 
196655
    }
-
 
196656
 
-
 
196657
    public String getHsSubOrderNo() {
-
 
196658
      return this.hsSubOrderNo;
-
 
196659
    }
-
 
196660
 
-
 
196661
    public void setHsSubOrderNo(String hsSubOrderNo) {
-
 
196662
      this.hsSubOrderNo = hsSubOrderNo;
-
 
196663
    }
-
 
196664
 
-
 
196665
    public void unsetHsSubOrderNo() {
-
 
196666
      this.hsSubOrderNo = null;
-
 
196667
    }
-
 
196668
 
-
 
196669
    /** Returns true if field hsSubOrderNo is set (has been assigned a value) and false otherwise */
-
 
196670
    public boolean isSetHsSubOrderNo() {
-
 
196671
      return this.hsSubOrderNo != null;
-
 
196672
    }
-
 
196673
 
-
 
196674
    public void setHsSubOrderNoIsSet(boolean value) {
-
 
196675
      if (!value) {
-
 
196676
        this.hsSubOrderNo = null;
-
 
196677
      }
-
 
196678
    }
-
 
196679
 
-
 
196680
    public void setFieldValue(_Fields field, Object value) {
-
 
196681
      switch (field) {
-
 
196682
      case HS_ORDER_NO:
-
 
196683
        if (value == null) {
-
 
196684
          unsetHsOrderNo();
-
 
196685
        } else {
-
 
196686
          setHsOrderNo((String)value);
-
 
196687
        }
-
 
196688
        break;
-
 
196689
 
-
 
196690
      case HS_SUB_ORDER_NO:
-
 
196691
        if (value == null) {
-
 
196692
          unsetHsSubOrderNo();
-
 
196693
        } else {
-
 
196694
          setHsSubOrderNo((String)value);
-
 
196695
        }
-
 
196696
        break;
-
 
196697
 
-
 
196698
      }
-
 
196699
    }
-
 
196700
 
-
 
196701
    public Object getFieldValue(_Fields field) {
-
 
196702
      switch (field) {
-
 
196703
      case HS_ORDER_NO:
-
 
196704
        return getHsOrderNo();
-
 
196705
 
-
 
196706
      case HS_SUB_ORDER_NO:
-
 
196707
        return getHsSubOrderNo();
-
 
196708
 
-
 
196709
      }
-
 
196710
      throw new IllegalStateException();
-
 
196711
    }
-
 
196712
 
-
 
196713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
196714
    public boolean isSet(_Fields field) {
-
 
196715
      if (field == null) {
-
 
196716
        throw new IllegalArgumentException();
-
 
196717
      }
-
 
196718
 
-
 
196719
      switch (field) {
-
 
196720
      case HS_ORDER_NO:
-
 
196721
        return isSetHsOrderNo();
-
 
196722
      case HS_SUB_ORDER_NO:
-
 
196723
        return isSetHsSubOrderNo();
-
 
196724
      }
-
 
196725
      throw new IllegalStateException();
-
 
196726
    }
-
 
196727
 
-
 
196728
    @Override
-
 
196729
    public boolean equals(Object that) {
-
 
196730
      if (that == null)
-
 
196731
        return false;
-
 
196732
      if (that instanceof homeShopOrderExists_args)
-
 
196733
        return this.equals((homeShopOrderExists_args)that);
-
 
196734
      return false;
-
 
196735
    }
-
 
196736
 
-
 
196737
    public boolean equals(homeShopOrderExists_args that) {
-
 
196738
      if (that == null)
-
 
196739
        return false;
-
 
196740
 
-
 
196741
      boolean this_present_hsOrderNo = true && this.isSetHsOrderNo();
-
 
196742
      boolean that_present_hsOrderNo = true && that.isSetHsOrderNo();
-
 
196743
      if (this_present_hsOrderNo || that_present_hsOrderNo) {
-
 
196744
        if (!(this_present_hsOrderNo && that_present_hsOrderNo))
-
 
196745
          return false;
-
 
196746
        if (!this.hsOrderNo.equals(that.hsOrderNo))
-
 
196747
          return false;
-
 
196748
      }
-
 
196749
 
-
 
196750
      boolean this_present_hsSubOrderNo = true && this.isSetHsSubOrderNo();
-
 
196751
      boolean that_present_hsSubOrderNo = true && that.isSetHsSubOrderNo();
-
 
196752
      if (this_present_hsSubOrderNo || that_present_hsSubOrderNo) {
-
 
196753
        if (!(this_present_hsSubOrderNo && that_present_hsSubOrderNo))
-
 
196754
          return false;
-
 
196755
        if (!this.hsSubOrderNo.equals(that.hsSubOrderNo))
-
 
196756
          return false;
-
 
196757
      }
-
 
196758
 
-
 
196759
      return true;
-
 
196760
    }
-
 
196761
 
-
 
196762
    @Override
-
 
196763
    public int hashCode() {
-
 
196764
      return 0;
-
 
196765
    }
-
 
196766
 
-
 
196767
    public int compareTo(homeShopOrderExists_args other) {
-
 
196768
      if (!getClass().equals(other.getClass())) {
-
 
196769
        return getClass().getName().compareTo(other.getClass().getName());
-
 
196770
      }
-
 
196771
 
-
 
196772
      int lastComparison = 0;
-
 
196773
      homeShopOrderExists_args typedOther = (homeShopOrderExists_args)other;
-
 
196774
 
-
 
196775
      lastComparison = Boolean.valueOf(isSetHsOrderNo()).compareTo(typedOther.isSetHsOrderNo());
-
 
196776
      if (lastComparison != 0) {
-
 
196777
        return lastComparison;
-
 
196778
      }
-
 
196779
      if (isSetHsOrderNo()) {
-
 
196780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderNo, typedOther.hsOrderNo);
-
 
196781
        if (lastComparison != 0) {
-
 
196782
          return lastComparison;
-
 
196783
        }
-
 
196784
      }
-
 
196785
      lastComparison = Boolean.valueOf(isSetHsSubOrderNo()).compareTo(typedOther.isSetHsSubOrderNo());
-
 
196786
      if (lastComparison != 0) {
-
 
196787
        return lastComparison;
-
 
196788
      }
-
 
196789
      if (isSetHsSubOrderNo()) {
-
 
196790
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsSubOrderNo, typedOther.hsSubOrderNo);
-
 
196791
        if (lastComparison != 0) {
-
 
196792
          return lastComparison;
-
 
196793
        }
-
 
196794
      }
-
 
196795
      return 0;
-
 
196796
    }
-
 
196797
 
-
 
196798
    public _Fields fieldForId(int fieldId) {
-
 
196799
      return _Fields.findByThriftId(fieldId);
-
 
196800
    }
-
 
196801
 
-
 
196802
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
196803
      org.apache.thrift.protocol.TField field;
-
 
196804
      iprot.readStructBegin();
-
 
196805
      while (true)
-
 
196806
      {
-
 
196807
        field = iprot.readFieldBegin();
-
 
196808
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
196809
          break;
-
 
196810
        }
-
 
196811
        switch (field.id) {
-
 
196812
          case 1: // HS_ORDER_NO
-
 
196813
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
196814
              this.hsOrderNo = iprot.readString();
-
 
196815
            } else { 
-
 
196816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196817
            }
-
 
196818
            break;
-
 
196819
          case 2: // HS_SUB_ORDER_NO
-
 
196820
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
196821
              this.hsSubOrderNo = iprot.readString();
-
 
196822
            } else { 
-
 
196823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196824
            }
-
 
196825
            break;
-
 
196826
          default:
-
 
196827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
196828
        }
-
 
196829
        iprot.readFieldEnd();
-
 
196830
      }
-
 
196831
      iprot.readStructEnd();
-
 
196832
      validate();
-
 
196833
    }
-
 
196834
 
-
 
196835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
196836
      validate();
-
 
196837
 
-
 
196838
      oprot.writeStructBegin(STRUCT_DESC);
-
 
196839
      if (this.hsOrderNo != null) {
-
 
196840
        oprot.writeFieldBegin(HS_ORDER_NO_FIELD_DESC);
-
 
196841
        oprot.writeString(this.hsOrderNo);
-
 
196842
        oprot.writeFieldEnd();
-
 
196843
      }
-
 
196844
      if (this.hsSubOrderNo != null) {
-
 
196845
        oprot.writeFieldBegin(HS_SUB_ORDER_NO_FIELD_DESC);
-
 
196846
        oprot.writeString(this.hsSubOrderNo);
-
 
196847
        oprot.writeFieldEnd();
-
 
196848
      }
-
 
196849
      oprot.writeFieldStop();
-
 
196850
      oprot.writeStructEnd();
-
 
196851
    }
-
 
196852
 
-
 
196853
    @Override
-
 
196854
    public String toString() {
-
 
196855
      StringBuilder sb = new StringBuilder("homeShopOrderExists_args(");
-
 
196856
      boolean first = true;
-
 
196857
 
-
 
196858
      sb.append("hsOrderNo:");
-
 
196859
      if (this.hsOrderNo == null) {
-
 
196860
        sb.append("null");
-
 
196861
      } else {
-
 
196862
        sb.append(this.hsOrderNo);
-
 
196863
      }
-
 
196864
      first = false;
-
 
196865
      if (!first) sb.append(", ");
-
 
196866
      sb.append("hsSubOrderNo:");
-
 
196867
      if (this.hsSubOrderNo == null) {
-
 
196868
        sb.append("null");
-
 
196869
      } else {
-
 
196870
        sb.append(this.hsSubOrderNo);
-
 
196871
      }
-
 
196872
      first = false;
-
 
196873
      sb.append(")");
-
 
196874
      return sb.toString();
-
 
196875
    }
-
 
196876
 
-
 
196877
    public void validate() throws org.apache.thrift.TException {
-
 
196878
      // check for required fields
-
 
196879
    }
-
 
196880
 
-
 
196881
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
196882
      try {
-
 
196883
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
196884
      } catch (org.apache.thrift.TException te) {
-
 
196885
        throw new java.io.IOException(te);
-
 
196886
      }
-
 
196887
    }
-
 
196888
 
-
 
196889
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
196890
      try {
-
 
196891
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
196892
      } catch (org.apache.thrift.TException te) {
-
 
196893
        throw new java.io.IOException(te);
-
 
196894
      }
-
 
196895
    }
-
 
196896
 
-
 
196897
  }
-
 
196898
 
-
 
196899
  public static class homeShopOrderExists_result implements org.apache.thrift.TBase<homeShopOrderExists_result, homeShopOrderExists_result._Fields>, java.io.Serializable, Cloneable   {
-
 
196900
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("homeShopOrderExists_result");
-
 
196901
 
-
 
196902
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
196903
 
-
 
196904
    private boolean success; // required
-
 
196905
 
-
 
196906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
196907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
196908
      SUCCESS((short)0, "success");
-
 
196909
 
-
 
196910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
196911
 
-
 
196912
      static {
-
 
196913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
196914
          byName.put(field.getFieldName(), field);
-
 
196915
        }
-
 
196916
      }
-
 
196917
 
-
 
196918
      /**
-
 
196919
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
196920
       */
-
 
196921
      public static _Fields findByThriftId(int fieldId) {
-
 
196922
        switch(fieldId) {
-
 
196923
          case 0: // SUCCESS
-
 
196924
            return SUCCESS;
-
 
196925
          default:
-
 
196926
            return null;
-
 
196927
        }
-
 
196928
      }
-
 
196929
 
-
 
196930
      /**
-
 
196931
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
196932
       * if it is not found.
-
 
196933
       */
-
 
196934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
196935
        _Fields fields = findByThriftId(fieldId);
-
 
196936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
196937
        return fields;
-
 
196938
      }
-
 
196939
 
-
 
196940
      /**
-
 
196941
       * Find the _Fields constant that matches name, or null if its not found.
-
 
196942
       */
-
 
196943
      public static _Fields findByName(String name) {
-
 
196944
        return byName.get(name);
-
 
196945
      }
-
 
196946
 
-
 
196947
      private final short _thriftId;
-
 
196948
      private final String _fieldName;
-
 
196949
 
-
 
196950
      _Fields(short thriftId, String fieldName) {
-
 
196951
        _thriftId = thriftId;
-
 
196952
        _fieldName = fieldName;
-
 
196953
      }
-
 
196954
 
-
 
196955
      public short getThriftFieldId() {
-
 
196956
        return _thriftId;
-
 
196957
      }
-
 
196958
 
-
 
196959
      public String getFieldName() {
-
 
196960
        return _fieldName;
-
 
196961
      }
-
 
196962
    }
-
 
196963
 
-
 
196964
    // isset id assignments
-
 
196965
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
196966
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
196967
 
-
 
196968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
196969
    static {
-
 
196970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
196971
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
196972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
196973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
196974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(homeShopOrderExists_result.class, metaDataMap);
-
 
196975
    }
-
 
196976
 
-
 
196977
    public homeShopOrderExists_result() {
-
 
196978
    }
-
 
196979
 
-
 
196980
    public homeShopOrderExists_result(
-
 
196981
      boolean success)
-
 
196982
    {
-
 
196983
      this();
-
 
196984
      this.success = success;
-
 
196985
      setSuccessIsSet(true);
-
 
196986
    }
-
 
196987
 
-
 
196988
    /**
-
 
196989
     * Performs a deep copy on <i>other</i>.
-
 
196990
     */
-
 
196991
    public homeShopOrderExists_result(homeShopOrderExists_result other) {
-
 
196992
      __isset_bit_vector.clear();
-
 
196993
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
196994
      this.success = other.success;
-
 
196995
    }
-
 
196996
 
-
 
196997
    public homeShopOrderExists_result deepCopy() {
-
 
196998
      return new homeShopOrderExists_result(this);
-
 
196999
    }
-
 
197000
 
-
 
197001
    @Override
-
 
197002
    public void clear() {
-
 
197003
      setSuccessIsSet(false);
-
 
197004
      this.success = false;
-
 
197005
    }
-
 
197006
 
-
 
197007
    public boolean isSuccess() {
-
 
197008
      return this.success;
-
 
197009
    }
-
 
197010
 
-
 
197011
    public void setSuccess(boolean success) {
-
 
197012
      this.success = success;
-
 
197013
      setSuccessIsSet(true);
-
 
197014
    }
-
 
197015
 
-
 
197016
    public void unsetSuccess() {
-
 
197017
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
197018
    }
-
 
197019
 
-
 
197020
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
197021
    public boolean isSetSuccess() {
-
 
197022
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
197023
    }
-
 
197024
 
-
 
197025
    public void setSuccessIsSet(boolean value) {
-
 
197026
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
197027
    }
-
 
197028
 
-
 
197029
    public void setFieldValue(_Fields field, Object value) {
-
 
197030
      switch (field) {
-
 
197031
      case SUCCESS:
-
 
197032
        if (value == null) {
-
 
197033
          unsetSuccess();
-
 
197034
        } else {
-
 
197035
          setSuccess((Boolean)value);
-
 
197036
        }
-
 
197037
        break;
-
 
197038
 
-
 
197039
      }
-
 
197040
    }
-
 
197041
 
-
 
197042
    public Object getFieldValue(_Fields field) {
-
 
197043
      switch (field) {
-
 
197044
      case SUCCESS:
-
 
197045
        return Boolean.valueOf(isSuccess());
-
 
197046
 
-
 
197047
      }
-
 
197048
      throw new IllegalStateException();
-
 
197049
    }
-
 
197050
 
-
 
197051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
197052
    public boolean isSet(_Fields field) {
-
 
197053
      if (field == null) {
-
 
197054
        throw new IllegalArgumentException();
-
 
197055
      }
-
 
197056
 
-
 
197057
      switch (field) {
-
 
197058
      case SUCCESS:
-
 
197059
        return isSetSuccess();
-
 
197060
      }
-
 
197061
      throw new IllegalStateException();
-
 
197062
    }
-
 
197063
 
-
 
197064
    @Override
-
 
197065
    public boolean equals(Object that) {
-
 
197066
      if (that == null)
-
 
197067
        return false;
-
 
197068
      if (that instanceof homeShopOrderExists_result)
-
 
197069
        return this.equals((homeShopOrderExists_result)that);
-
 
197070
      return false;
-
 
197071
    }
-
 
197072
 
-
 
197073
    public boolean equals(homeShopOrderExists_result that) {
-
 
197074
      if (that == null)
-
 
197075
        return false;
-
 
197076
 
-
 
197077
      boolean this_present_success = true;
-
 
197078
      boolean that_present_success = true;
-
 
197079
      if (this_present_success || that_present_success) {
-
 
197080
        if (!(this_present_success && that_present_success))
-
 
197081
          return false;
-
 
197082
        if (this.success != that.success)
-
 
197083
          return false;
-
 
197084
      }
-
 
197085
 
-
 
197086
      return true;
-
 
197087
    }
-
 
197088
 
-
 
197089
    @Override
-
 
197090
    public int hashCode() {
-
 
197091
      return 0;
-
 
197092
    }
-
 
197093
 
-
 
197094
    public int compareTo(homeShopOrderExists_result other) {
-
 
197095
      if (!getClass().equals(other.getClass())) {
-
 
197096
        return getClass().getName().compareTo(other.getClass().getName());
-
 
197097
      }
-
 
197098
 
-
 
197099
      int lastComparison = 0;
-
 
197100
      homeShopOrderExists_result typedOther = (homeShopOrderExists_result)other;
-
 
197101
 
-
 
197102
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
197103
      if (lastComparison != 0) {
-
 
197104
        return lastComparison;
-
 
197105
      }
-
 
197106
      if (isSetSuccess()) {
-
 
197107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
197108
        if (lastComparison != 0) {
-
 
197109
          return lastComparison;
-
 
197110
        }
-
 
197111
      }
-
 
197112
      return 0;
-
 
197113
    }
-
 
197114
 
-
 
197115
    public _Fields fieldForId(int fieldId) {
-
 
197116
      return _Fields.findByThriftId(fieldId);
-
 
197117
    }
-
 
197118
 
-
 
197119
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
197120
      org.apache.thrift.protocol.TField field;
-
 
197121
      iprot.readStructBegin();
-
 
197122
      while (true)
-
 
197123
      {
-
 
197124
        field = iprot.readFieldBegin();
-
 
197125
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
197126
          break;
-
 
197127
        }
-
 
197128
        switch (field.id) {
-
 
197129
          case 0: // SUCCESS
-
 
197130
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
197131
              this.success = iprot.readBool();
-
 
197132
              setSuccessIsSet(true);
-
 
197133
            } else { 
-
 
197134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
197135
            }
-
 
197136
            break;
-
 
197137
          default:
-
 
197138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
197139
        }
-
 
197140
        iprot.readFieldEnd();
-
 
197141
      }
-
 
197142
      iprot.readStructEnd();
-
 
197143
      validate();
-
 
197144
    }
-
 
197145
 
-
 
197146
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
197147
      oprot.writeStructBegin(STRUCT_DESC);
-
 
197148
 
-
 
197149
      if (this.isSetSuccess()) {
-
 
197150
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
197151
        oprot.writeBool(this.success);
-
 
197152
        oprot.writeFieldEnd();
-
 
197153
      }
-
 
197154
      oprot.writeFieldStop();
-
 
197155
      oprot.writeStructEnd();
-
 
197156
    }
-
 
197157
 
-
 
197158
    @Override
-
 
197159
    public String toString() {
-
 
197160
      StringBuilder sb = new StringBuilder("homeShopOrderExists_result(");
-
 
197161
      boolean first = true;
-
 
197162
 
-
 
197163
      sb.append("success:");
-
 
197164
      sb.append(this.success);
-
 
197165
      first = false;
-
 
197166
      sb.append(")");
-
 
197167
      return sb.toString();
-
 
197168
    }
-
 
197169
 
194962
    public void validate() throws org.apache.thrift.TException {
197170
    public void validate() throws org.apache.thrift.TException {
194963
      // check for required fields
197171
      // check for required fields
194964
    }
197172
    }
194965
 
197173
 
194966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
197174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {