Subversion Repositories SmartDukaan

Rev

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

Rev 7311 Rev 7322
Line 951... Line 951...
951
 
951
 
952
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
952
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
953
 
953
 
954
    public void addAmazonOrder(AmazonOrder amazonOrder) throws org.apache.thrift.TException;
954
    public void addAmazonOrder(AmazonOrder amazonOrder) throws org.apache.thrift.TException;
955
 
955
 
956
    public boolean getOrderForAmazonOrderCode(long orderId, String status) throws org.apache.thrift.TException;
956
    public boolean updateAmazonOrderStatus(long orderId, String status) throws org.apache.thrift.TException;
957
 
957
 
958
    public List<Order> getAmazonOrdersShipped(long interval) throws org.apache.thrift.TException;
958
    public List<Order> getAmazonOrdersShipped(long interval) throws org.apache.thrift.TException;
959
 
959
 
960
    public List<Order> getAmazonOrdersCancelled(long interval) throws org.apache.thrift.TException;
960
    public List<Order> getAmazonOrdersCancelled(long interval) throws org.apache.thrift.TException;
961
 
961
 
-
 
962
    public AmazonOrder getAmazonOrder(long orderId) throws org.apache.thrift.TException;
-
 
963
 
962
  }
964
  }
963
 
965
 
964
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
966
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
965
 
967
 
966
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
968
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1301... Line 1303...
1301
 
1303
 
1302
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
1304
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
1303
 
1305
 
1304
    public void addAmazonOrder(AmazonOrder amazonOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1306
    public void addAmazonOrder(AmazonOrder amazonOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1305
 
1307
 
1306
    public void getOrderForAmazonOrderCode(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAmazonOrderCode_call> resultHandler) throws org.apache.thrift.TException;
1308
    public void updateAmazonOrderStatus(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1307
 
1309
 
1308
    public void getAmazonOrdersShipped(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersShipped_call> resultHandler) throws org.apache.thrift.TException;
1310
    public void getAmazonOrdersShipped(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersShipped_call> resultHandler) throws org.apache.thrift.TException;
1309
 
1311
 
1310
    public void getAmazonOrdersCancelled(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersCancelled_call> resultHandler) throws org.apache.thrift.TException;
1312
    public void getAmazonOrdersCancelled(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersCancelled_call> resultHandler) throws org.apache.thrift.TException;
1311
 
1313
 
-
 
1314
    public void getAmazonOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1315
 
1312
  }
1316
  }
1313
 
1317
 
1314
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1318
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1315
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1319
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1316
      public Factory() {}
1320
      public Factory() {}
Line 5583... Line 5587...
5583
      addAmazonOrder_result result = new addAmazonOrder_result();
5587
      addAmazonOrder_result result = new addAmazonOrder_result();
5584
      receiveBase(result, "addAmazonOrder");
5588
      receiveBase(result, "addAmazonOrder");
5585
      return;
5589
      return;
5586
    }
5590
    }
5587
 
5591
 
5588
    public boolean getOrderForAmazonOrderCode(long orderId, String status) throws org.apache.thrift.TException
5592
    public boolean updateAmazonOrderStatus(long orderId, String status) throws org.apache.thrift.TException
5589
    {
5593
    {
5590
      send_getOrderForAmazonOrderCode(orderId, status);
5594
      send_updateAmazonOrderStatus(orderId, status);
5591
      return recv_getOrderForAmazonOrderCode();
5595
      return recv_updateAmazonOrderStatus();
5592
    }
5596
    }
5593
 
5597
 
5594
    public void send_getOrderForAmazonOrderCode(long orderId, String status) throws org.apache.thrift.TException
5598
    public void send_updateAmazonOrderStatus(long orderId, String status) throws org.apache.thrift.TException
5595
    {
5599
    {
5596
      getOrderForAmazonOrderCode_args args = new getOrderForAmazonOrderCode_args();
5600
      updateAmazonOrderStatus_args args = new updateAmazonOrderStatus_args();
5597
      args.setOrderId(orderId);
5601
      args.setOrderId(orderId);
5598
      args.setStatus(status);
5602
      args.setStatus(status);
5599
      sendBase("getOrderForAmazonOrderCode", args);
5603
      sendBase("updateAmazonOrderStatus", args);
5600
    }
5604
    }
5601
 
5605
 
5602
    public boolean recv_getOrderForAmazonOrderCode() throws org.apache.thrift.TException
5606
    public boolean recv_updateAmazonOrderStatus() throws org.apache.thrift.TException
5603
    {
5607
    {
5604
      getOrderForAmazonOrderCode_result result = new getOrderForAmazonOrderCode_result();
5608
      updateAmazonOrderStatus_result result = new updateAmazonOrderStatus_result();
5605
      receiveBase(result, "getOrderForAmazonOrderCode");
5609
      receiveBase(result, "updateAmazonOrderStatus");
5606
      if (result.isSetSuccess()) {
5610
      if (result.isSetSuccess()) {
5607
        return result.success;
5611
        return result.success;
5608
      }
5612
      }
5609
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAmazonOrderCode failed: unknown result");
5613
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateAmazonOrderStatus failed: unknown result");
5610
    }
5614
    }
5611
 
5615
 
5612
    public List<Order> getAmazonOrdersShipped(long interval) throws org.apache.thrift.TException
5616
    public List<Order> getAmazonOrdersShipped(long interval) throws org.apache.thrift.TException
5613
    {
5617
    {
5614
      send_getAmazonOrdersShipped(interval);
5618
      send_getAmazonOrdersShipped(interval);
Line 5653... Line 5657...
5653
        return result.success;
5657
        return result.success;
5654
      }
5658
      }
5655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrdersCancelled failed: unknown result");
5659
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrdersCancelled failed: unknown result");
5656
    }
5660
    }
5657
 
5661
 
-
 
5662
    public AmazonOrder getAmazonOrder(long orderId) throws org.apache.thrift.TException
-
 
5663
    {
-
 
5664
      send_getAmazonOrder(orderId);
-
 
5665
      return recv_getAmazonOrder();
-
 
5666
    }
-
 
5667
 
-
 
5668
    public void send_getAmazonOrder(long orderId) throws org.apache.thrift.TException
-
 
5669
    {
-
 
5670
      getAmazonOrder_args args = new getAmazonOrder_args();
-
 
5671
      args.setOrderId(orderId);
-
 
5672
      sendBase("getAmazonOrder", args);
-
 
5673
    }
-
 
5674
 
-
 
5675
    public AmazonOrder recv_getAmazonOrder() throws org.apache.thrift.TException
-
 
5676
    {
-
 
5677
      getAmazonOrder_result result = new getAmazonOrder_result();
-
 
5678
      receiveBase(result, "getAmazonOrder");
-
 
5679
      if (result.isSetSuccess()) {
-
 
5680
        return result.success;
-
 
5681
      }
-
 
5682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrder failed: unknown result");
-
 
5683
    }
-
 
5684
 
5658
  }
5685
  }
5659
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5686
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5660
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5687
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5661
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5688
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5662
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5689
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11603... Line 11630...
11603
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11630
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11604
        (new Client(prot)).recv_addAmazonOrder();
11631
        (new Client(prot)).recv_addAmazonOrder();
11605
      }
11632
      }
11606
    }
11633
    }
11607
 
11634
 
11608
    public void getOrderForAmazonOrderCode(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<getOrderForAmazonOrderCode_call> resultHandler) throws org.apache.thrift.TException {
11635
    public void updateAmazonOrderStatus(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<updateAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException {
11609
      checkReady();
11636
      checkReady();
11610
      getOrderForAmazonOrderCode_call method_call = new getOrderForAmazonOrderCode_call(orderId, status, resultHandler, this, ___protocolFactory, ___transport);
11637
      updateAmazonOrderStatus_call method_call = new updateAmazonOrderStatus_call(orderId, status, resultHandler, this, ___protocolFactory, ___transport);
11611
      this.___currentMethod = method_call;
11638
      this.___currentMethod = method_call;
11612
      ___manager.call(method_call);
11639
      ___manager.call(method_call);
11613
    }
11640
    }
11614
 
11641
 
11615
    public static class getOrderForAmazonOrderCode_call extends org.apache.thrift.async.TAsyncMethodCall {
11642
    public static class updateAmazonOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
11616
      private long orderId;
11643
      private long orderId;
11617
      private String status;
11644
      private String status;
11618
      public getOrderForAmazonOrderCode_call(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<getOrderForAmazonOrderCode_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 {
11645
      public updateAmazonOrderStatus_call(long orderId, String status, org.apache.thrift.async.AsyncMethodCallback<updateAmazonOrderStatus_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 {
11619
        super(client, protocolFactory, transport, resultHandler, false);
11646
        super(client, protocolFactory, transport, resultHandler, false);
11620
        this.orderId = orderId;
11647
        this.orderId = orderId;
11621
        this.status = status;
11648
        this.status = status;
11622
      }
11649
      }
11623
 
11650
 
11624
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
11651
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
11625
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForAmazonOrderCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
11652
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAmazonOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
11626
        getOrderForAmazonOrderCode_args args = new getOrderForAmazonOrderCode_args();
11653
        updateAmazonOrderStatus_args args = new updateAmazonOrderStatus_args();
11627
        args.setOrderId(orderId);
11654
        args.setOrderId(orderId);
11628
        args.setStatus(status);
11655
        args.setStatus(status);
11629
        args.write(prot);
11656
        args.write(prot);
11630
        prot.writeMessageEnd();
11657
        prot.writeMessageEnd();
11631
      }
11658
      }
Line 11634... Line 11661...
11634
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
11661
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
11635
          throw new IllegalStateException("Method call not finished!");
11662
          throw new IllegalStateException("Method call not finished!");
11636
        }
11663
        }
11637
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
11664
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
11638
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11665
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11639
        return (new Client(prot)).recv_getOrderForAmazonOrderCode();
11666
        return (new Client(prot)).recv_updateAmazonOrderStatus();
11640
      }
11667
      }
11641
    }
11668
    }
11642
 
11669
 
11643
    public void getAmazonOrdersShipped(long interval, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersShipped_call> resultHandler) throws org.apache.thrift.TException {
11670
    public void getAmazonOrdersShipped(long interval, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersShipped_call> resultHandler) throws org.apache.thrift.TException {
11644
      checkReady();
11671
      checkReady();
Line 11702... Line 11729...
11702
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11703
        return (new Client(prot)).recv_getAmazonOrdersCancelled();
11730
        return (new Client(prot)).recv_getAmazonOrdersCancelled();
11704
      }
11731
      }
11705
    }
11732
    }
11706
 
11733
 
-
 
11734
    public void getAmazonOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
11735
      checkReady();
-
 
11736
      getAmazonOrder_call method_call = new getAmazonOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
11737
      this.___currentMethod = method_call;
-
 
11738
      ___manager.call(method_call);
-
 
11739
    }
-
 
11740
 
-
 
11741
    public static class getAmazonOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11742
      private long orderId;
-
 
11743
      public getAmazonOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrder_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 {
-
 
11744
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11745
        this.orderId = orderId;
-
 
11746
      }
-
 
11747
 
-
 
11748
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11749
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11750
        getAmazonOrder_args args = new getAmazonOrder_args();
-
 
11751
        args.setOrderId(orderId);
-
 
11752
        args.write(prot);
-
 
11753
        prot.writeMessageEnd();
-
 
11754
      }
-
 
11755
 
-
 
11756
      public AmazonOrder getResult() throws org.apache.thrift.TException {
-
 
11757
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11758
          throw new IllegalStateException("Method call not finished!");
-
 
11759
        }
-
 
11760
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11761
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11762
        return (new Client(prot)).recv_getAmazonOrder();
-
 
11763
      }
-
 
11764
    }
-
 
11765
 
11707
  }
11766
  }
11708
 
11767
 
11709
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11768
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11710
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11769
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11711
    public Processor(I iface) {
11770
    public Processor(I iface) {
Line 11885... Line 11944...
11885
      processMap.put("getWalletBalanceForCompany", new getWalletBalanceForCompany());
11944
      processMap.put("getWalletBalanceForCompany", new getWalletBalanceForCompany());
11886
      processMap.put("getSourceDetail", new getSourceDetail());
11945
      processMap.put("getSourceDetail", new getSourceDetail());
11887
      processMap.put("getAllCircles", new getAllCircles());
11946
      processMap.put("getAllCircles", new getAllCircles());
11888
      processMap.put("deleteFrcs", new deleteFrcs());
11947
      processMap.put("deleteFrcs", new deleteFrcs());
11889
      processMap.put("addAmazonOrder", new addAmazonOrder());
11948
      processMap.put("addAmazonOrder", new addAmazonOrder());
11890
      processMap.put("getOrderForAmazonOrderCode", new getOrderForAmazonOrderCode());
11949
      processMap.put("updateAmazonOrderStatus", new updateAmazonOrderStatus());
11891
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
11950
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
11892
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
11951
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
-
 
11952
      processMap.put("getAmazonOrder", new getAmazonOrder());
11893
      return processMap;
11953
      return processMap;
11894
    }
11954
    }
11895
 
11955
 
11896
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11956
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11897
      public createTransaction() {
11957
      public createTransaction() {
Line 15043... Line 15103...
15043
        iface.addAmazonOrder(args.amazonOrder);
15103
        iface.addAmazonOrder(args.amazonOrder);
15044
        return result;
15104
        return result;
15045
      }
15105
      }
15046
    }
15106
    }
15047
 
15107
 
15048
    private static class getOrderForAmazonOrderCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAmazonOrderCode_args> {
15108
    private static class updateAmazonOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAmazonOrderStatus_args> {
15049
      public getOrderForAmazonOrderCode() {
15109
      public updateAmazonOrderStatus() {
15050
        super("getOrderForAmazonOrderCode");
15110
        super("updateAmazonOrderStatus");
15051
      }
15111
      }
15052
 
15112
 
15053
      protected getOrderForAmazonOrderCode_args getEmptyArgsInstance() {
15113
      protected updateAmazonOrderStatus_args getEmptyArgsInstance() {
15054
        return new getOrderForAmazonOrderCode_args();
15114
        return new updateAmazonOrderStatus_args();
15055
      }
15115
      }
15056
 
15116
 
15057
      protected getOrderForAmazonOrderCode_result getResult(I iface, getOrderForAmazonOrderCode_args args) throws org.apache.thrift.TException {
15117
      protected updateAmazonOrderStatus_result getResult(I iface, updateAmazonOrderStatus_args args) throws org.apache.thrift.TException {
15058
        getOrderForAmazonOrderCode_result result = new getOrderForAmazonOrderCode_result();
15118
        updateAmazonOrderStatus_result result = new updateAmazonOrderStatus_result();
15059
        result.success = iface.getOrderForAmazonOrderCode(args.orderId, args.status);
15119
        result.success = iface.updateAmazonOrderStatus(args.orderId, args.status);
15060
        result.setSuccessIsSet(true);
15120
        result.setSuccessIsSet(true);
15061
        return result;
15121
        return result;
15062
      }
15122
      }
15063
    }
15123
    }
15064
 
15124
 
Line 15092... Line 15152...
15092
        result.success = iface.getAmazonOrdersCancelled(args.interval);
15152
        result.success = iface.getAmazonOrdersCancelled(args.interval);
15093
        return result;
15153
        return result;
15094
      }
15154
      }
15095
    }
15155
    }
15096
 
15156
 
-
 
15157
    private static class getAmazonOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonOrder_args> {
-
 
15158
      public getAmazonOrder() {
-
 
15159
        super("getAmazonOrder");
-
 
15160
      }
-
 
15161
 
-
 
15162
      protected getAmazonOrder_args getEmptyArgsInstance() {
-
 
15163
        return new getAmazonOrder_args();
-
 
15164
      }
-
 
15165
 
-
 
15166
      protected getAmazonOrder_result getResult(I iface, getAmazonOrder_args args) throws org.apache.thrift.TException {
-
 
15167
        getAmazonOrder_result result = new getAmazonOrder_result();
-
 
15168
        result.success = iface.getAmazonOrder(args.orderId);
-
 
15169
        return result;
-
 
15170
      }
-
 
15171
    }
-
 
15172
 
15097
  }
15173
  }
15098
 
15174
 
15099
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15175
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15100
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15101
 
15177
 
Line 64233... Line 64309...
64233
      }
64309
      }
64234
    }
64310
    }
64235
 
64311
 
64236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64237
      try {
64313
      try {
-
 
64314
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64315
        __isset_bit_vector = new BitSet(1);
64238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64239
      } catch (org.apache.thrift.TException te) {
64317
      } catch (org.apache.thrift.TException te) {
64240
        throw new java.io.IOException(te);
64318
        throw new java.io.IOException(te);
64241
      }
64319
      }
64242
    }
64320
    }
Line 64989... Line 65067...
64989
      }
65067
      }
64990
    }
65068
    }
64991
 
65069
 
64992
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64993
      try {
65071
      try {
-
 
65072
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65073
        __isset_bit_vector = new BitSet(1);
64994
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64995
      } catch (org.apache.thrift.TException te) {
65075
      } catch (org.apache.thrift.TException te) {
64996
        throw new java.io.IOException(te);
65076
        throw new java.io.IOException(te);
64997
      }
65077
      }
64998
    }
65078
    }
Line 65662... Line 65742...
65662
      }
65742
      }
65663
    }
65743
    }
65664
 
65744
 
65665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65666
      try {
65746
      try {
-
 
65747
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65748
        __isset_bit_vector = new BitSet(1);
65667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65749
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65668
      } catch (org.apache.thrift.TException te) {
65750
      } catch (org.apache.thrift.TException te) {
65669
        throw new java.io.IOException(te);
65751
        throw new java.io.IOException(te);
65670
      }
65752
      }
65671
    }
65753
    }
Line 75002... Line 75084...
75002
      }
75084
      }
75003
    }
75085
    }
75004
 
75086
 
75005
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
75087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
75006
      try {
75088
      try {
75007
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
75008
        __isset_bit_vector = new BitSet(1);
-
 
75009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
75089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
75010
      } catch (org.apache.thrift.TException te) {
75090
      } catch (org.apache.thrift.TException te) {
75011
        throw new java.io.IOException(te);
75091
        throw new java.io.IOException(te);
75012
      }
75092
      }
75013
    }
75093
    }
Line 103936... Line 104016...
103936
      }
104016
      }
103937
    }
104017
    }
103938
 
104018
 
103939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
104019
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
103940
      try {
104020
      try {
-
 
104021
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
104022
        __isset_bit_vector = new BitSet(1);
103941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
104023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
103942
      } catch (org.apache.thrift.TException te) {
104024
      } catch (org.apache.thrift.TException te) {
103943
        throw new java.io.IOException(te);
104025
        throw new java.io.IOException(te);
103944
      }
104026
      }
103945
    }
104027
    }
Line 137673... Line 137755...
137673
      }
137755
      }
137674
    }
137756
    }
137675
 
137757
 
137676
  }
137758
  }
137677
 
137759
 
137678
  public static class getOrderForAmazonOrderCode_args implements org.apache.thrift.TBase<getOrderForAmazonOrderCode_args, getOrderForAmazonOrderCode_args._Fields>, java.io.Serializable, Cloneable   {
137760
  public static class updateAmazonOrderStatus_args implements org.apache.thrift.TBase<updateAmazonOrderStatus_args, updateAmazonOrderStatus_args._Fields>, java.io.Serializable, Cloneable   {
137679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAmazonOrderCode_args");
137761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonOrderStatus_args");
137680
 
137762
 
137681
    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);
137763
    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);
137682
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)2);
137764
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)2);
137683
 
137765
 
137684
    private long orderId; // required
137766
    private long orderId; // required
Line 137755... Line 137837...
137755
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137837
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
137838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
137757
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137839
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
137840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
137759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
137841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
137760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAmazonOrderCode_args.class, metaDataMap);
137842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonOrderStatus_args.class, metaDataMap);
137761
    }
137843
    }
137762
 
137844
 
137763
    public getOrderForAmazonOrderCode_args() {
137845
    public updateAmazonOrderStatus_args() {
137764
    }
137846
    }
137765
 
137847
 
137766
    public getOrderForAmazonOrderCode_args(
137848
    public updateAmazonOrderStatus_args(
137767
      long orderId,
137849
      long orderId,
137768
      String status)
137850
      String status)
137769
    {
137851
    {
137770
      this();
137852
      this();
137771
      this.orderId = orderId;
137853
      this.orderId = orderId;
Line 137774... Line 137856...
137774
    }
137856
    }
137775
 
137857
 
137776
    /**
137858
    /**
137777
     * Performs a deep copy on <i>other</i>.
137859
     * Performs a deep copy on <i>other</i>.
137778
     */
137860
     */
137779
    public getOrderForAmazonOrderCode_args(getOrderForAmazonOrderCode_args other) {
137861
    public updateAmazonOrderStatus_args(updateAmazonOrderStatus_args other) {
137780
      __isset_bit_vector.clear();
137862
      __isset_bit_vector.clear();
137781
      __isset_bit_vector.or(other.__isset_bit_vector);
137863
      __isset_bit_vector.or(other.__isset_bit_vector);
137782
      this.orderId = other.orderId;
137864
      this.orderId = other.orderId;
137783
      if (other.isSetStatus()) {
137865
      if (other.isSetStatus()) {
137784
        this.status = other.status;
137866
        this.status = other.status;
137785
      }
137867
      }
137786
    }
137868
    }
137787
 
137869
 
137788
    public getOrderForAmazonOrderCode_args deepCopy() {
137870
    public updateAmazonOrderStatus_args deepCopy() {
137789
      return new getOrderForAmazonOrderCode_args(this);
137871
      return new updateAmazonOrderStatus_args(this);
137790
    }
137872
    }
137791
 
137873
 
137792
    @Override
137874
    @Override
137793
    public void clear() {
137875
    public void clear() {
137794
      setOrderIdIsSet(false);
137876
      setOrderIdIsSet(false);
Line 137891... Line 137973...
137891
 
137973
 
137892
    @Override
137974
    @Override
137893
    public boolean equals(Object that) {
137975
    public boolean equals(Object that) {
137894
      if (that == null)
137976
      if (that == null)
137895
        return false;
137977
        return false;
137896
      if (that instanceof getOrderForAmazonOrderCode_args)
137978
      if (that instanceof updateAmazonOrderStatus_args)
137897
        return this.equals((getOrderForAmazonOrderCode_args)that);
137979
        return this.equals((updateAmazonOrderStatus_args)that);
137898
      return false;
137980
      return false;
137899
    }
137981
    }
137900
 
137982
 
137901
    public boolean equals(getOrderForAmazonOrderCode_args that) {
137983
    public boolean equals(updateAmazonOrderStatus_args that) {
137902
      if (that == null)
137984
      if (that == null)
137903
        return false;
137985
        return false;
137904
 
137986
 
137905
      boolean this_present_orderId = true;
137987
      boolean this_present_orderId = true;
137906
      boolean that_present_orderId = true;
137988
      boolean that_present_orderId = true;
Line 137926... Line 138008...
137926
    @Override
138008
    @Override
137927
    public int hashCode() {
138009
    public int hashCode() {
137928
      return 0;
138010
      return 0;
137929
    }
138011
    }
137930
 
138012
 
137931
    public int compareTo(getOrderForAmazonOrderCode_args other) {
138013
    public int compareTo(updateAmazonOrderStatus_args other) {
137932
      if (!getClass().equals(other.getClass())) {
138014
      if (!getClass().equals(other.getClass())) {
137933
        return getClass().getName().compareTo(other.getClass().getName());
138015
        return getClass().getName().compareTo(other.getClass().getName());
137934
      }
138016
      }
137935
 
138017
 
137936
      int lastComparison = 0;
138018
      int lastComparison = 0;
137937
      getOrderForAmazonOrderCode_args typedOther = (getOrderForAmazonOrderCode_args)other;
138019
      updateAmazonOrderStatus_args typedOther = (updateAmazonOrderStatus_args)other;
137938
 
138020
 
137939
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
138021
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
137940
      if (lastComparison != 0) {
138022
      if (lastComparison != 0) {
137941
        return lastComparison;
138023
        return lastComparison;
137942
      }
138024
      }
Line 138013... Line 138095...
138013
      oprot.writeStructEnd();
138095
      oprot.writeStructEnd();
138014
    }
138096
    }
138015
 
138097
 
138016
    @Override
138098
    @Override
138017
    public String toString() {
138099
    public String toString() {
138018
      StringBuilder sb = new StringBuilder("getOrderForAmazonOrderCode_args(");
138100
      StringBuilder sb = new StringBuilder("updateAmazonOrderStatus_args(");
138019
      boolean first = true;
138101
      boolean first = true;
138020
 
138102
 
138021
      sb.append("orderId:");
138103
      sb.append("orderId:");
138022
      sb.append(this.orderId);
138104
      sb.append(this.orderId);
138023
      first = false;
138105
      first = false;
Line 138055... Line 138137...
138055
      }
138137
      }
138056
    }
138138
    }
138057
 
138139
 
138058
  }
138140
  }
138059
 
138141
 
138060
  public static class getOrderForAmazonOrderCode_result implements org.apache.thrift.TBase<getOrderForAmazonOrderCode_result, getOrderForAmazonOrderCode_result._Fields>, java.io.Serializable, Cloneable   {
138142
  public static class updateAmazonOrderStatus_result implements org.apache.thrift.TBase<updateAmazonOrderStatus_result, updateAmazonOrderStatus_result._Fields>, java.io.Serializable, Cloneable   {
138061
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAmazonOrderCode_result");
138143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonOrderStatus_result");
138062
 
138144
 
138063
    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);
138145
    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);
138064
 
138146
 
138065
    private boolean success; // required
138147
    private boolean success; // required
138066
 
138148
 
Line 138130... Line 138212...
138130
    static {
138212
    static {
138131
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
138213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
138132
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
138214
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
138133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
138215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
138134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
138216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
138135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAmazonOrderCode_result.class, metaDataMap);
138217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonOrderStatus_result.class, metaDataMap);
138136
    }
138218
    }
138137
 
138219
 
138138
    public getOrderForAmazonOrderCode_result() {
138220
    public updateAmazonOrderStatus_result() {
138139
    }
138221
    }
138140
 
138222
 
138141
    public getOrderForAmazonOrderCode_result(
138223
    public updateAmazonOrderStatus_result(
138142
      boolean success)
138224
      boolean success)
138143
    {
138225
    {
138144
      this();
138226
      this();
138145
      this.success = success;
138227
      this.success = success;
138146
      setSuccessIsSet(true);
138228
      setSuccessIsSet(true);
138147
    }
138229
    }
138148
 
138230
 
138149
    /**
138231
    /**
138150
     * Performs a deep copy on <i>other</i>.
138232
     * Performs a deep copy on <i>other</i>.
138151
     */
138233
     */
138152
    public getOrderForAmazonOrderCode_result(getOrderForAmazonOrderCode_result other) {
138234
    public updateAmazonOrderStatus_result(updateAmazonOrderStatus_result other) {
138153
      __isset_bit_vector.clear();
138235
      __isset_bit_vector.clear();
138154
      __isset_bit_vector.or(other.__isset_bit_vector);
138236
      __isset_bit_vector.or(other.__isset_bit_vector);
138155
      this.success = other.success;
138237
      this.success = other.success;
138156
    }
138238
    }
138157
 
138239
 
138158
    public getOrderForAmazonOrderCode_result deepCopy() {
138240
    public updateAmazonOrderStatus_result deepCopy() {
138159
      return new getOrderForAmazonOrderCode_result(this);
138241
      return new updateAmazonOrderStatus_result(this);
138160
    }
138242
    }
138161
 
138243
 
138162
    @Override
138244
    @Override
138163
    public void clear() {
138245
    public void clear() {
138164
      setSuccessIsSet(false);
138246
      setSuccessIsSet(false);
Line 138224... Line 138306...
138224
 
138306
 
138225
    @Override
138307
    @Override
138226
    public boolean equals(Object that) {
138308
    public boolean equals(Object that) {
138227
      if (that == null)
138309
      if (that == null)
138228
        return false;
138310
        return false;
138229
      if (that instanceof getOrderForAmazonOrderCode_result)
138311
      if (that instanceof updateAmazonOrderStatus_result)
138230
        return this.equals((getOrderForAmazonOrderCode_result)that);
138312
        return this.equals((updateAmazonOrderStatus_result)that);
138231
      return false;
138313
      return false;
138232
    }
138314
    }
138233
 
138315
 
138234
    public boolean equals(getOrderForAmazonOrderCode_result that) {
138316
    public boolean equals(updateAmazonOrderStatus_result that) {
138235
      if (that == null)
138317
      if (that == null)
138236
        return false;
138318
        return false;
138237
 
138319
 
138238
      boolean this_present_success = true;
138320
      boolean this_present_success = true;
138239
      boolean that_present_success = true;
138321
      boolean that_present_success = true;
Line 138250... Line 138332...
138250
    @Override
138332
    @Override
138251
    public int hashCode() {
138333
    public int hashCode() {
138252
      return 0;
138334
      return 0;
138253
    }
138335
    }
138254
 
138336
 
138255
    public int compareTo(getOrderForAmazonOrderCode_result other) {
138337
    public int compareTo(updateAmazonOrderStatus_result other) {
138256
      if (!getClass().equals(other.getClass())) {
138338
      if (!getClass().equals(other.getClass())) {
138257
        return getClass().getName().compareTo(other.getClass().getName());
138339
        return getClass().getName().compareTo(other.getClass().getName());
138258
      }
138340
      }
138259
 
138341
 
138260
      int lastComparison = 0;
138342
      int lastComparison = 0;
138261
      getOrderForAmazonOrderCode_result typedOther = (getOrderForAmazonOrderCode_result)other;
138343
      updateAmazonOrderStatus_result typedOther = (updateAmazonOrderStatus_result)other;
138262
 
138344
 
138263
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
138345
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
138264
      if (lastComparison != 0) {
138346
      if (lastComparison != 0) {
138265
        return lastComparison;
138347
        return lastComparison;
138266
      }
138348
      }
Line 138316... Line 138398...
138316
      oprot.writeStructEnd();
138398
      oprot.writeStructEnd();
138317
    }
138399
    }
138318
 
138400
 
138319
    @Override
138401
    @Override
138320
    public String toString() {
138402
    public String toString() {
138321
      StringBuilder sb = new StringBuilder("getOrderForAmazonOrderCode_result(");
138403
      StringBuilder sb = new StringBuilder("updateAmazonOrderStatus_result(");
138322
      boolean first = true;
138404
      boolean first = true;
138323
 
138405
 
138324
      sb.append("success:");
138406
      sb.append("success:");
138325
      sb.append(this.success);
138407
      sb.append(this.success);
138326
      first = false;
138408
      first = false;
Line 139568... Line 139650...
139568
      boolean first = true;
139650
      boolean first = true;
139569
 
139651
 
139570
      sb.append("success:");
139652
      sb.append("success:");
139571
      if (this.success == null) {
139653
      if (this.success == null) {
139572
        sb.append("null");
139654
        sb.append("null");
-
 
139655
      } else {
-
 
139656
        sb.append(this.success);
-
 
139657
      }
-
 
139658
      first = false;
-
 
139659
      sb.append(")");
-
 
139660
      return sb.toString();
-
 
139661
    }
-
 
139662
 
-
 
139663
    public void validate() throws org.apache.thrift.TException {
-
 
139664
      // check for required fields
-
 
139665
    }
-
 
139666
 
-
 
139667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
139668
      try {
-
 
139669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
139670
      } catch (org.apache.thrift.TException te) {
-
 
139671
        throw new java.io.IOException(te);
-
 
139672
      }
-
 
139673
    }
-
 
139674
 
-
 
139675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
139676
      try {
-
 
139677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
139678
      } catch (org.apache.thrift.TException te) {
-
 
139679
        throw new java.io.IOException(te);
-
 
139680
      }
-
 
139681
    }
-
 
139682
 
-
 
139683
  }
-
 
139684
 
-
 
139685
  public static class getAmazonOrder_args implements org.apache.thrift.TBase<getAmazonOrder_args, getAmazonOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
139686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrder_args");
-
 
139687
 
-
 
139688
    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);
-
 
139689
 
-
 
139690
    private long orderId; // required
-
 
139691
 
-
 
139692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
139693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
139694
      ORDER_ID((short)1, "orderId");
-
 
139695
 
-
 
139696
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
139697
 
-
 
139698
      static {
-
 
139699
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
139700
          byName.put(field.getFieldName(), field);
-
 
139701
        }
-
 
139702
      }
-
 
139703
 
-
 
139704
      /**
-
 
139705
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
139706
       */
-
 
139707
      public static _Fields findByThriftId(int fieldId) {
-
 
139708
        switch(fieldId) {
-
 
139709
          case 1: // ORDER_ID
-
 
139710
            return ORDER_ID;
-
 
139711
          default:
-
 
139712
            return null;
-
 
139713
        }
-
 
139714
      }
-
 
139715
 
-
 
139716
      /**
-
 
139717
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
139718
       * if it is not found.
-
 
139719
       */
-
 
139720
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
139721
        _Fields fields = findByThriftId(fieldId);
-
 
139722
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
139723
        return fields;
-
 
139724
      }
-
 
139725
 
-
 
139726
      /**
-
 
139727
       * Find the _Fields constant that matches name, or null if its not found.
-
 
139728
       */
-
 
139729
      public static _Fields findByName(String name) {
-
 
139730
        return byName.get(name);
-
 
139731
      }
-
 
139732
 
-
 
139733
      private final short _thriftId;
-
 
139734
      private final String _fieldName;
-
 
139735
 
-
 
139736
      _Fields(short thriftId, String fieldName) {
-
 
139737
        _thriftId = thriftId;
-
 
139738
        _fieldName = fieldName;
-
 
139739
      }
-
 
139740
 
-
 
139741
      public short getThriftFieldId() {
-
 
139742
        return _thriftId;
-
 
139743
      }
-
 
139744
 
-
 
139745
      public String getFieldName() {
-
 
139746
        return _fieldName;
-
 
139747
      }
-
 
139748
    }
-
 
139749
 
-
 
139750
    // isset id assignments
-
 
139751
    private static final int __ORDERID_ISSET_ID = 0;
-
 
139752
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
139753
 
-
 
139754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
139755
    static {
-
 
139756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
139757
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
139758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
139759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
139760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrder_args.class, metaDataMap);
-
 
139761
    }
-
 
139762
 
-
 
139763
    public getAmazonOrder_args() {
-
 
139764
    }
-
 
139765
 
-
 
139766
    public getAmazonOrder_args(
-
 
139767
      long orderId)
-
 
139768
    {
-
 
139769
      this();
-
 
139770
      this.orderId = orderId;
-
 
139771
      setOrderIdIsSet(true);
-
 
139772
    }
-
 
139773
 
-
 
139774
    /**
-
 
139775
     * Performs a deep copy on <i>other</i>.
-
 
139776
     */
-
 
139777
    public getAmazonOrder_args(getAmazonOrder_args other) {
-
 
139778
      __isset_bit_vector.clear();
-
 
139779
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
139780
      this.orderId = other.orderId;
-
 
139781
    }
-
 
139782
 
-
 
139783
    public getAmazonOrder_args deepCopy() {
-
 
139784
      return new getAmazonOrder_args(this);
-
 
139785
    }
-
 
139786
 
-
 
139787
    @Override
-
 
139788
    public void clear() {
-
 
139789
      setOrderIdIsSet(false);
-
 
139790
      this.orderId = 0;
-
 
139791
    }
-
 
139792
 
-
 
139793
    public long getOrderId() {
-
 
139794
      return this.orderId;
-
 
139795
    }
-
 
139796
 
-
 
139797
    public void setOrderId(long orderId) {
-
 
139798
      this.orderId = orderId;
-
 
139799
      setOrderIdIsSet(true);
-
 
139800
    }
-
 
139801
 
-
 
139802
    public void unsetOrderId() {
-
 
139803
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
139804
    }
-
 
139805
 
-
 
139806
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
139807
    public boolean isSetOrderId() {
-
 
139808
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
139809
    }
-
 
139810
 
-
 
139811
    public void setOrderIdIsSet(boolean value) {
-
 
139812
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
139813
    }
-
 
139814
 
-
 
139815
    public void setFieldValue(_Fields field, Object value) {
-
 
139816
      switch (field) {
-
 
139817
      case ORDER_ID:
-
 
139818
        if (value == null) {
-
 
139819
          unsetOrderId();
-
 
139820
        } else {
-
 
139821
          setOrderId((Long)value);
-
 
139822
        }
-
 
139823
        break;
-
 
139824
 
-
 
139825
      }
-
 
139826
    }
-
 
139827
 
-
 
139828
    public Object getFieldValue(_Fields field) {
-
 
139829
      switch (field) {
-
 
139830
      case ORDER_ID:
-
 
139831
        return Long.valueOf(getOrderId());
-
 
139832
 
-
 
139833
      }
-
 
139834
      throw new IllegalStateException();
-
 
139835
    }
-
 
139836
 
-
 
139837
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
139838
    public boolean isSet(_Fields field) {
-
 
139839
      if (field == null) {
-
 
139840
        throw new IllegalArgumentException();
-
 
139841
      }
-
 
139842
 
-
 
139843
      switch (field) {
-
 
139844
      case ORDER_ID:
-
 
139845
        return isSetOrderId();
-
 
139846
      }
-
 
139847
      throw new IllegalStateException();
-
 
139848
    }
-
 
139849
 
-
 
139850
    @Override
-
 
139851
    public boolean equals(Object that) {
-
 
139852
      if (that == null)
-
 
139853
        return false;
-
 
139854
      if (that instanceof getAmazonOrder_args)
-
 
139855
        return this.equals((getAmazonOrder_args)that);
-
 
139856
      return false;
-
 
139857
    }
-
 
139858
 
-
 
139859
    public boolean equals(getAmazonOrder_args that) {
-
 
139860
      if (that == null)
-
 
139861
        return false;
-
 
139862
 
-
 
139863
      boolean this_present_orderId = true;
-
 
139864
      boolean that_present_orderId = true;
-
 
139865
      if (this_present_orderId || that_present_orderId) {
-
 
139866
        if (!(this_present_orderId && that_present_orderId))
-
 
139867
          return false;
-
 
139868
        if (this.orderId != that.orderId)
-
 
139869
          return false;
-
 
139870
      }
-
 
139871
 
-
 
139872
      return true;
-
 
139873
    }
-
 
139874
 
-
 
139875
    @Override
-
 
139876
    public int hashCode() {
-
 
139877
      return 0;
-
 
139878
    }
-
 
139879
 
-
 
139880
    public int compareTo(getAmazonOrder_args other) {
-
 
139881
      if (!getClass().equals(other.getClass())) {
-
 
139882
        return getClass().getName().compareTo(other.getClass().getName());
-
 
139883
      }
-
 
139884
 
-
 
139885
      int lastComparison = 0;
-
 
139886
      getAmazonOrder_args typedOther = (getAmazonOrder_args)other;
-
 
139887
 
-
 
139888
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
139889
      if (lastComparison != 0) {
-
 
139890
        return lastComparison;
-
 
139891
      }
-
 
139892
      if (isSetOrderId()) {
-
 
139893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
139894
        if (lastComparison != 0) {
-
 
139895
          return lastComparison;
-
 
139896
        }
-
 
139897
      }
-
 
139898
      return 0;
-
 
139899
    }
-
 
139900
 
-
 
139901
    public _Fields fieldForId(int fieldId) {
-
 
139902
      return _Fields.findByThriftId(fieldId);
-
 
139903
    }
-
 
139904
 
-
 
139905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
139906
      org.apache.thrift.protocol.TField field;
-
 
139907
      iprot.readStructBegin();
-
 
139908
      while (true)
-
 
139909
      {
-
 
139910
        field = iprot.readFieldBegin();
-
 
139911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
139912
          break;
-
 
139913
        }
-
 
139914
        switch (field.id) {
-
 
139915
          case 1: // ORDER_ID
-
 
139916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
139917
              this.orderId = iprot.readI64();
-
 
139918
              setOrderIdIsSet(true);
-
 
139919
            } else { 
-
 
139920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139921
            }
-
 
139922
            break;
-
 
139923
          default:
-
 
139924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139925
        }
-
 
139926
        iprot.readFieldEnd();
-
 
139927
      }
-
 
139928
      iprot.readStructEnd();
-
 
139929
      validate();
-
 
139930
    }
-
 
139931
 
-
 
139932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
139933
      validate();
-
 
139934
 
-
 
139935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
139936
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
139937
      oprot.writeI64(this.orderId);
-
 
139938
      oprot.writeFieldEnd();
-
 
139939
      oprot.writeFieldStop();
-
 
139940
      oprot.writeStructEnd();
-
 
139941
    }
-
 
139942
 
-
 
139943
    @Override
-
 
139944
    public String toString() {
-
 
139945
      StringBuilder sb = new StringBuilder("getAmazonOrder_args(");
-
 
139946
      boolean first = true;
-
 
139947
 
-
 
139948
      sb.append("orderId:");
-
 
139949
      sb.append(this.orderId);
-
 
139950
      first = false;
-
 
139951
      sb.append(")");
-
 
139952
      return sb.toString();
-
 
139953
    }
-
 
139954
 
-
 
139955
    public void validate() throws org.apache.thrift.TException {
-
 
139956
      // check for required fields
-
 
139957
    }
-
 
139958
 
-
 
139959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
139960
      try {
-
 
139961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
139962
      } catch (org.apache.thrift.TException te) {
-
 
139963
        throw new java.io.IOException(te);
-
 
139964
      }
-
 
139965
    }
-
 
139966
 
-
 
139967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
139968
      try {
-
 
139969
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
139970
        __isset_bit_vector = new BitSet(1);
-
 
139971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
139972
      } catch (org.apache.thrift.TException te) {
-
 
139973
        throw new java.io.IOException(te);
-
 
139974
      }
-
 
139975
    }
-
 
139976
 
-
 
139977
  }
-
 
139978
 
-
 
139979
  public static class getAmazonOrder_result implements org.apache.thrift.TBase<getAmazonOrder_result, getAmazonOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
139980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrder_result");
-
 
139981
 
-
 
139982
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
139983
 
-
 
139984
    private AmazonOrder success; // required
-
 
139985
 
-
 
139986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
139987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
139988
      SUCCESS((short)0, "success");
-
 
139989
 
-
 
139990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
139991
 
-
 
139992
      static {
-
 
139993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
139994
          byName.put(field.getFieldName(), field);
-
 
139995
        }
-
 
139996
      }
-
 
139997
 
-
 
139998
      /**
-
 
139999
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
140000
       */
-
 
140001
      public static _Fields findByThriftId(int fieldId) {
-
 
140002
        switch(fieldId) {
-
 
140003
          case 0: // SUCCESS
-
 
140004
            return SUCCESS;
-
 
140005
          default:
-
 
140006
            return null;
-
 
140007
        }
-
 
140008
      }
-
 
140009
 
-
 
140010
      /**
-
 
140011
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
140012
       * if it is not found.
-
 
140013
       */
-
 
140014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
140015
        _Fields fields = findByThriftId(fieldId);
-
 
140016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
140017
        return fields;
-
 
140018
      }
-
 
140019
 
-
 
140020
      /**
-
 
140021
       * Find the _Fields constant that matches name, or null if its not found.
-
 
140022
       */
-
 
140023
      public static _Fields findByName(String name) {
-
 
140024
        return byName.get(name);
-
 
140025
      }
-
 
140026
 
-
 
140027
      private final short _thriftId;
-
 
140028
      private final String _fieldName;
-
 
140029
 
-
 
140030
      _Fields(short thriftId, String fieldName) {
-
 
140031
        _thriftId = thriftId;
-
 
140032
        _fieldName = fieldName;
-
 
140033
      }
-
 
140034
 
-
 
140035
      public short getThriftFieldId() {
-
 
140036
        return _thriftId;
-
 
140037
      }
-
 
140038
 
-
 
140039
      public String getFieldName() {
-
 
140040
        return _fieldName;
-
 
140041
      }
-
 
140042
    }
-
 
140043
 
-
 
140044
    // isset id assignments
-
 
140045
 
-
 
140046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
140047
    static {
-
 
140048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
140049
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
140050
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonOrder.class)));
-
 
140051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
140052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrder_result.class, metaDataMap);
-
 
140053
    }
-
 
140054
 
-
 
140055
    public getAmazonOrder_result() {
-
 
140056
    }
-
 
140057
 
-
 
140058
    public getAmazonOrder_result(
-
 
140059
      AmazonOrder success)
-
 
140060
    {
-
 
140061
      this();
-
 
140062
      this.success = success;
-
 
140063
    }
-
 
140064
 
-
 
140065
    /**
-
 
140066
     * Performs a deep copy on <i>other</i>.
-
 
140067
     */
-
 
140068
    public getAmazonOrder_result(getAmazonOrder_result other) {
-
 
140069
      if (other.isSetSuccess()) {
-
 
140070
        this.success = new AmazonOrder(other.success);
-
 
140071
      }
-
 
140072
    }
-
 
140073
 
-
 
140074
    public getAmazonOrder_result deepCopy() {
-
 
140075
      return new getAmazonOrder_result(this);
-
 
140076
    }
-
 
140077
 
-
 
140078
    @Override
-
 
140079
    public void clear() {
-
 
140080
      this.success = null;
-
 
140081
    }
-
 
140082
 
-
 
140083
    public AmazonOrder getSuccess() {
-
 
140084
      return this.success;
-
 
140085
    }
-
 
140086
 
-
 
140087
    public void setSuccess(AmazonOrder success) {
-
 
140088
      this.success = success;
-
 
140089
    }
-
 
140090
 
-
 
140091
    public void unsetSuccess() {
-
 
140092
      this.success = null;
-
 
140093
    }
-
 
140094
 
-
 
140095
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
140096
    public boolean isSetSuccess() {
-
 
140097
      return this.success != null;
-
 
140098
    }
-
 
140099
 
-
 
140100
    public void setSuccessIsSet(boolean value) {
-
 
140101
      if (!value) {
-
 
140102
        this.success = null;
-
 
140103
      }
-
 
140104
    }
-
 
140105
 
-
 
140106
    public void setFieldValue(_Fields field, Object value) {
-
 
140107
      switch (field) {
-
 
140108
      case SUCCESS:
-
 
140109
        if (value == null) {
-
 
140110
          unsetSuccess();
-
 
140111
        } else {
-
 
140112
          setSuccess((AmazonOrder)value);
-
 
140113
        }
-
 
140114
        break;
-
 
140115
 
-
 
140116
      }
-
 
140117
    }
-
 
140118
 
-
 
140119
    public Object getFieldValue(_Fields field) {
-
 
140120
      switch (field) {
-
 
140121
      case SUCCESS:
-
 
140122
        return getSuccess();
-
 
140123
 
-
 
140124
      }
-
 
140125
      throw new IllegalStateException();
-
 
140126
    }
-
 
140127
 
-
 
140128
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
140129
    public boolean isSet(_Fields field) {
-
 
140130
      if (field == null) {
-
 
140131
        throw new IllegalArgumentException();
-
 
140132
      }
-
 
140133
 
-
 
140134
      switch (field) {
-
 
140135
      case SUCCESS:
-
 
140136
        return isSetSuccess();
-
 
140137
      }
-
 
140138
      throw new IllegalStateException();
-
 
140139
    }
-
 
140140
 
-
 
140141
    @Override
-
 
140142
    public boolean equals(Object that) {
-
 
140143
      if (that == null)
-
 
140144
        return false;
-
 
140145
      if (that instanceof getAmazonOrder_result)
-
 
140146
        return this.equals((getAmazonOrder_result)that);
-
 
140147
      return false;
-
 
140148
    }
-
 
140149
 
-
 
140150
    public boolean equals(getAmazonOrder_result that) {
-
 
140151
      if (that == null)
-
 
140152
        return false;
-
 
140153
 
-
 
140154
      boolean this_present_success = true && this.isSetSuccess();
-
 
140155
      boolean that_present_success = true && that.isSetSuccess();
-
 
140156
      if (this_present_success || that_present_success) {
-
 
140157
        if (!(this_present_success && that_present_success))
-
 
140158
          return false;
-
 
140159
        if (!this.success.equals(that.success))
-
 
140160
          return false;
-
 
140161
      }
-
 
140162
 
-
 
140163
      return true;
-
 
140164
    }
-
 
140165
 
-
 
140166
    @Override
-
 
140167
    public int hashCode() {
-
 
140168
      return 0;
-
 
140169
    }
-
 
140170
 
-
 
140171
    public int compareTo(getAmazonOrder_result other) {
-
 
140172
      if (!getClass().equals(other.getClass())) {
-
 
140173
        return getClass().getName().compareTo(other.getClass().getName());
-
 
140174
      }
-
 
140175
 
-
 
140176
      int lastComparison = 0;
-
 
140177
      getAmazonOrder_result typedOther = (getAmazonOrder_result)other;
-
 
140178
 
-
 
140179
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
140180
      if (lastComparison != 0) {
-
 
140181
        return lastComparison;
-
 
140182
      }
-
 
140183
      if (isSetSuccess()) {
-
 
140184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
140185
        if (lastComparison != 0) {
-
 
140186
          return lastComparison;
-
 
140187
        }
-
 
140188
      }
-
 
140189
      return 0;
-
 
140190
    }
-
 
140191
 
-
 
140192
    public _Fields fieldForId(int fieldId) {
-
 
140193
      return _Fields.findByThriftId(fieldId);
-
 
140194
    }
-
 
140195
 
-
 
140196
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
140197
      org.apache.thrift.protocol.TField field;
-
 
140198
      iprot.readStructBegin();
-
 
140199
      while (true)
-
 
140200
      {
-
 
140201
        field = iprot.readFieldBegin();
-
 
140202
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
140203
          break;
-
 
140204
        }
-
 
140205
        switch (field.id) {
-
 
140206
          case 0: // SUCCESS
-
 
140207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
140208
              this.success = new AmazonOrder();
-
 
140209
              this.success.read(iprot);
-
 
140210
            } else { 
-
 
140211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140212
            }
-
 
140213
            break;
-
 
140214
          default:
-
 
140215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140216
        }
-
 
140217
        iprot.readFieldEnd();
-
 
140218
      }
-
 
140219
      iprot.readStructEnd();
-
 
140220
      validate();
-
 
140221
    }
-
 
140222
 
-
 
140223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
140224
      oprot.writeStructBegin(STRUCT_DESC);
-
 
140225
 
-
 
140226
      if (this.isSetSuccess()) {
-
 
140227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
140228
        this.success.write(oprot);
-
 
140229
        oprot.writeFieldEnd();
-
 
140230
      }
-
 
140231
      oprot.writeFieldStop();
-
 
140232
      oprot.writeStructEnd();
-
 
140233
    }
-
 
140234
 
-
 
140235
    @Override
-
 
140236
    public String toString() {
-
 
140237
      StringBuilder sb = new StringBuilder("getAmazonOrder_result(");
-
 
140238
      boolean first = true;
-
 
140239
 
-
 
140240
      sb.append("success:");
-
 
140241
      if (this.success == null) {
-
 
140242
        sb.append("null");
139573
      } else {
140243
      } else {
139574
        sb.append(this.success);
140244
        sb.append(this.success);
139575
      }
140245
      }
139576
      first = false;
140246
      first = false;
139577
      sb.append(")");
140247
      sb.append(")");