Subversion Repositories SmartDukaan

Rev

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

Rev 10924 Rev 11015
Line 528... Line 528...
528
 
528
 
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
530
 
530
 
531
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;
531
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;
532
 
532
 
-
 
533
    public List<MarketplaceHistory> getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException;
-
 
534
 
533
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException;
535
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException;
534
 
536
 
535
    public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException;
537
    public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException;
536
 
538
 
-
 
539
    public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException;
-
 
540
 
-
 
541
    public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException;
-
 
542
 
537
  }
543
  }
538
 
544
 
539
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
545
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
540
 
546
 
541
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
547
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 844... Line 850...
844
 
850
 
845
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
851
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
846
 
852
 
847
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
853
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
848
 
854
 
-
 
855
    public void getMarketplaceHistory(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;
-
 
856
 
849
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;
857
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;
850
 
858
 
851
    public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException;
859
    public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException;
852
 
860
 
-
 
861
    public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;
-
 
862
 
-
 
863
    public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException;
-
 
864
 
853
  }
865
  }
854
 
866
 
855
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
867
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
856
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
868
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
857
      public Factory() {}
869
      public Factory() {}
Line 4516... Line 4528...
4516
        return result.success;
4528
        return result.success;
4517
      }
4529
      }
4518
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
4530
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
4519
    }
4531
    }
4520
 
4532
 
-
 
4533
    public List<MarketplaceHistory> getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException
-
 
4534
    {
-
 
4535
      send_getMarketplaceHistory(source, offset, itemId);
-
 
4536
      return recv_getMarketplaceHistory();
-
 
4537
    }
-
 
4538
 
-
 
4539
    public void send_getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException
-
 
4540
    {
-
 
4541
      getMarketplaceHistory_args args = new getMarketplaceHistory_args();
-
 
4542
      args.setSource(source);
-
 
4543
      args.setOffset(offset);
-
 
4544
      args.setItemId(itemId);
-
 
4545
      sendBase("getMarketplaceHistory", args);
-
 
4546
    }
-
 
4547
 
-
 
4548
    public List<MarketplaceHistory> recv_getMarketplaceHistory() throws org.apache.thrift.TException
-
 
4549
    {
-
 
4550
      getMarketplaceHistory_result result = new getMarketplaceHistory_result();
-
 
4551
      receiveBase(result, "getMarketplaceHistory");
-
 
4552
      if (result.isSetSuccess()) {
-
 
4553
        return result.success;
-
 
4554
      }
-
 
4555
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
-
 
4556
    }
-
 
4557
 
4521
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException
4558
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException
4522
    {
4559
    {
4523
      send_getAllFbbListedItems();
4560
      send_getAllFbbListedItems();
4524
      return recv_getAllFbbListedItems();
4561
      return recv_getAllFbbListedItems();
4525
    }
4562
    }
Line 4560... Line 4597...
4560
        return result.success;
4597
        return result.success;
4561
      }
4598
      }
4562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
4599
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
4563
    }
4600
    }
4564
 
4601
 
-
 
4602
    public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException
-
 
4603
    {
-
 
4604
      send_getCountForMarketplaceHistory(source, itemId);
-
 
4605
      return recv_getCountForMarketplaceHistory();
-
 
4606
    }
-
 
4607
 
-
 
4608
    public void send_getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException
-
 
4609
    {
-
 
4610
      getCountForMarketplaceHistory_args args = new getCountForMarketplaceHistory_args();
-
 
4611
      args.setSource(source);
-
 
4612
      args.setItemId(itemId);
-
 
4613
      sendBase("getCountForMarketplaceHistory", args);
-
 
4614
    }
-
 
4615
 
-
 
4616
    public long recv_getCountForMarketplaceHistory() throws org.apache.thrift.TException
-
 
4617
    {
-
 
4618
      getCountForMarketplaceHistory_result result = new getCountForMarketplaceHistory_result();
-
 
4619
      receiveBase(result, "getCountForMarketplaceHistory");
-
 
4620
      if (result.isSetSuccess()) {
-
 
4621
        return result.success;
-
 
4622
      }
-
 
4623
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
-
 
4624
    }
-
 
4625
 
-
 
4626
    public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException
-
 
4627
    {
-
 
4628
      send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId);
-
 
4629
      return recv_getMarketplaceHistoryByDate();
-
 
4630
    }
-
 
4631
 
-
 
4632
    public void send_getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException
-
 
4633
    {
-
 
4634
      getMarketplaceHistoryByDate_args args = new getMarketplaceHistoryByDate_args();
-
 
4635
      args.setSource(source);
-
 
4636
      args.setStartDate(startDate);
-
 
4637
      args.setEndDate(endDate);
-
 
4638
      args.setOffset(offset);
-
 
4639
      args.setLimit(limit);
-
 
4640
      args.setItemId(itemId);
-
 
4641
      sendBase("getMarketplaceHistoryByDate", args);
-
 
4642
    }
-
 
4643
 
-
 
4644
    public List<MarketplaceHistory> recv_getMarketplaceHistoryByDate() throws org.apache.thrift.TException
-
 
4645
    {
-
 
4646
      getMarketplaceHistoryByDate_result result = new getMarketplaceHistoryByDate_result();
-
 
4647
      receiveBase(result, "getMarketplaceHistoryByDate");
-
 
4648
      if (result.isSetSuccess()) {
-
 
4649
        return result.success;
-
 
4650
      }
-
 
4651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
-
 
4652
    }
-
 
4653
 
4565
  }
4654
  }
4566
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4655
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4567
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4656
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4568
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4657
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4569
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4658
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9638... Line 9727...
9638
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9727
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9639
        return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();
9728
        return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();
9640
      }
9729
      }
9641
    }
9730
    }
9642
 
9731
 
-
 
9732
    public void getMarketplaceHistory(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException {
-
 
9733
      checkReady();
-
 
9734
      getMarketplaceHistory_call method_call = new getMarketplaceHistory_call(source, offset, itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
9735
      this.___currentMethod = method_call;
-
 
9736
      ___manager.call(method_call);
-
 
9737
    }
-
 
9738
 
-
 
9739
    public static class getMarketplaceHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9740
      private long source;
-
 
9741
      private long offset;
-
 
9742
      private long itemId;
-
 
9743
      public getMarketplaceHistory_call(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistory_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 {
-
 
9744
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9745
        this.source = source;
-
 
9746
        this.offset = offset;
-
 
9747
        this.itemId = itemId;
-
 
9748
      }
-
 
9749
 
-
 
9750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketplaceHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9752
        getMarketplaceHistory_args args = new getMarketplaceHistory_args();
-
 
9753
        args.setSource(source);
-
 
9754
        args.setOffset(offset);
-
 
9755
        args.setItemId(itemId);
-
 
9756
        args.write(prot);
-
 
9757
        prot.writeMessageEnd();
-
 
9758
      }
-
 
9759
 
-
 
9760
      public List<MarketplaceHistory> getResult() throws org.apache.thrift.TException {
-
 
9761
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9762
          throw new IllegalStateException("Method call not finished!");
-
 
9763
        }
-
 
9764
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9765
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9766
        return (new Client(prot)).recv_getMarketplaceHistory();
-
 
9767
      }
-
 
9768
    }
-
 
9769
 
9643
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException {
9770
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException {
9644
      checkReady();
9771
      checkReady();
9645
      getAllFbbListedItems_call method_call = new getAllFbbListedItems_call(resultHandler, this, ___protocolFactory, ___transport);
9772
      getAllFbbListedItems_call method_call = new getAllFbbListedItems_call(resultHandler, this, ___protocolFactory, ___transport);
9646
      this.___currentMethod = method_call;
9773
      this.___currentMethod = method_call;
9647
      ___manager.call(method_call);
9774
      ___manager.call(method_call);
Line 9696... Line 9823...
9696
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9823
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9697
        return (new Client(prot)).recv_getAllFbbPricingItems();
9824
        return (new Client(prot)).recv_getAllFbbPricingItems();
9698
      }
9825
      }
9699
    }
9826
    }
9700
 
9827
 
-
 
9828
    public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException {
-
 
9829
      checkReady();
-
 
9830
      getCountForMarketplaceHistory_call method_call = new getCountForMarketplaceHistory_call(source, itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
9831
      this.___currentMethod = method_call;
-
 
9832
      ___manager.call(method_call);
-
 
9833
    }
-
 
9834
 
-
 
9835
    public static class getCountForMarketplaceHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9836
      private long source;
-
 
9837
      private long itemId;
-
 
9838
      public getCountForMarketplaceHistory_call(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<getCountForMarketplaceHistory_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 {
-
 
9839
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9840
        this.source = source;
-
 
9841
        this.itemId = itemId;
-
 
9842
      }
-
 
9843
 
-
 
9844
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9845
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForMarketplaceHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9846
        getCountForMarketplaceHistory_args args = new getCountForMarketplaceHistory_args();
-
 
9847
        args.setSource(source);
-
 
9848
        args.setItemId(itemId);
-
 
9849
        args.write(prot);
-
 
9850
        prot.writeMessageEnd();
-
 
9851
      }
-
 
9852
 
-
 
9853
      public long getResult() throws org.apache.thrift.TException {
-
 
9854
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9855
          throw new IllegalStateException("Method call not finished!");
-
 
9856
        }
-
 
9857
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9858
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9859
        return (new Client(prot)).recv_getCountForMarketplaceHistory();
-
 
9860
      }
-
 
9861
    }
-
 
9862
 
-
 
9863
    public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException {
-
 
9864
      checkReady();
-
 
9865
      getMarketplaceHistoryByDate_call method_call = new getMarketplaceHistoryByDate_call(source, startDate, endDate, offset, limit, itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
9866
      this.___currentMethod = method_call;
-
 
9867
      ___manager.call(method_call);
-
 
9868
    }
-
 
9869
 
-
 
9870
    public static class getMarketplaceHistoryByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9871
      private long source;
-
 
9872
      private long startDate;
-
 
9873
      private long endDate;
-
 
9874
      private long offset;
-
 
9875
      private long limit;
-
 
9876
      private long itemId;
-
 
9877
      public getMarketplaceHistoryByDate_call(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistoryByDate_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 {
-
 
9878
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9879
        this.source = source;
-
 
9880
        this.startDate = startDate;
-
 
9881
        this.endDate = endDate;
-
 
9882
        this.offset = offset;
-
 
9883
        this.limit = limit;
-
 
9884
        this.itemId = itemId;
-
 
9885
      }
-
 
9886
 
-
 
9887
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9888
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketplaceHistoryByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9889
        getMarketplaceHistoryByDate_args args = new getMarketplaceHistoryByDate_args();
-
 
9890
        args.setSource(source);
-
 
9891
        args.setStartDate(startDate);
-
 
9892
        args.setEndDate(endDate);
-
 
9893
        args.setOffset(offset);
-
 
9894
        args.setLimit(limit);
-
 
9895
        args.setItemId(itemId);
-
 
9896
        args.write(prot);
-
 
9897
        prot.writeMessageEnd();
-
 
9898
      }
-
 
9899
 
-
 
9900
      public List<MarketplaceHistory> getResult() throws org.apache.thrift.TException {
-
 
9901
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9902
          throw new IllegalStateException("Method call not finished!");
-
 
9903
        }
-
 
9904
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9906
        return (new Client(prot)).recv_getMarketplaceHistoryByDate();
-
 
9907
      }
-
 
9908
    }
-
 
9909
 
9701
  }
9910
  }
9702
 
9911
 
9703
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9912
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9704
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9913
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9705
    public Processor(I iface) {
9914
    public Processor(I iface) {
Line 9863... Line 10072...
9863
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
10072
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
9864
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
10073
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9865
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
10074
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9866
      processMap.put("getAllFkItems", new getAllFkItems());
10075
      processMap.put("getAllFkItems", new getAllFkItems());
9867
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
10076
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
-
 
10077
      processMap.put("getMarketplaceHistory", new getMarketplaceHistory());
9868
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
10078
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
9869
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
10079
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
-
 
10080
      processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());
-
 
10081
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
9870
      return processMap;
10082
      return processMap;
9871
    }
10083
    }
9872
 
10084
 
9873
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10085
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9874
      public addItem() {
10086
      public addItem() {
Line 12553... Line 12765...
12553
        result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);
12765
        result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);
12554
        return result;
12766
        return result;
12555
      }
12767
      }
12556
    }
12768
    }
12557
 
12769
 
-
 
12770
    private static class getMarketplaceHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketplaceHistory_args> {
-
 
12771
      public getMarketplaceHistory() {
-
 
12772
        super("getMarketplaceHistory");
-
 
12773
      }
-
 
12774
 
-
 
12775
      protected getMarketplaceHistory_args getEmptyArgsInstance() {
-
 
12776
        return new getMarketplaceHistory_args();
-
 
12777
      }
-
 
12778
 
-
 
12779
      protected getMarketplaceHistory_result getResult(I iface, getMarketplaceHistory_args args) throws org.apache.thrift.TException {
-
 
12780
        getMarketplaceHistory_result result = new getMarketplaceHistory_result();
-
 
12781
        result.success = iface.getMarketplaceHistory(args.source, args.offset, args.itemId);
-
 
12782
        return result;
-
 
12783
      }
-
 
12784
    }
-
 
12785
 
12558
    private static class getAllFbbListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbListedItems_args> {
12786
    private static class getAllFbbListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbListedItems_args> {
12559
      public getAllFbbListedItems() {
12787
      public getAllFbbListedItems() {
12560
        super("getAllFbbListedItems");
12788
        super("getAllFbbListedItems");
12561
      }
12789
      }
12562
 
12790
 
Line 12585... Line 12813...
12585
        result.success = iface.getAllFbbPricingItems();
12813
        result.success = iface.getAllFbbPricingItems();
12586
        return result;
12814
        return result;
12587
      }
12815
      }
12588
    }
12816
    }
12589
 
12817
 
-
 
12818
    private static class getCountForMarketplaceHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForMarketplaceHistory_args> {
-
 
12819
      public getCountForMarketplaceHistory() {
-
 
12820
        super("getCountForMarketplaceHistory");
-
 
12821
      }
-
 
12822
 
-
 
12823
      protected getCountForMarketplaceHistory_args getEmptyArgsInstance() {
-
 
12824
        return new getCountForMarketplaceHistory_args();
-
 
12825
      }
-
 
12826
 
-
 
12827
      protected getCountForMarketplaceHistory_result getResult(I iface, getCountForMarketplaceHistory_args args) throws org.apache.thrift.TException {
-
 
12828
        getCountForMarketplaceHistory_result result = new getCountForMarketplaceHistory_result();
-
 
12829
        result.success = iface.getCountForMarketplaceHistory(args.source, args.itemId);
-
 
12830
        result.setSuccessIsSet(true);
-
 
12831
        return result;
-
 
12832
      }
-
 
12833
    }
-
 
12834
 
-
 
12835
    private static class getMarketplaceHistoryByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketplaceHistoryByDate_args> {
-
 
12836
      public getMarketplaceHistoryByDate() {
-
 
12837
        super("getMarketplaceHistoryByDate");
-
 
12838
      }
-
 
12839
 
-
 
12840
      protected getMarketplaceHistoryByDate_args getEmptyArgsInstance() {
-
 
12841
        return new getMarketplaceHistoryByDate_args();
-
 
12842
      }
-
 
12843
 
-
 
12844
      protected getMarketplaceHistoryByDate_result getResult(I iface, getMarketplaceHistoryByDate_args args) throws org.apache.thrift.TException {
-
 
12845
        getMarketplaceHistoryByDate_result result = new getMarketplaceHistoryByDate_result();
-
 
12846
        result.success = iface.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId);
-
 
12847
        return result;
-
 
12848
      }
-
 
12849
    }
-
 
12850
 
12590
  }
12851
  }
12591
 
12852
 
12592
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12853
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12594
 
12855
 
Line 110687... Line 110948...
110687
  }
110948
  }
110688
 
110949
 
110689
  public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable   {
110950
  public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable   {
110690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");
110951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");
110691
 
110952
 
110692
    private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)-1);
110953
    private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)1);
110693
 
110954
 
110694
    private String sku; // required
110955
    private String sku; // required
110695
 
110956
 
110696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
110957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
110697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
110958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
110698
      SKU((short)-1, "sku");
110959
      SKU((short)1, "sku");
110699
 
110960
 
110700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
110961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
110701
 
110962
 
110702
      static {
110963
      static {
110703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
110964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 110708... Line 110969...
110708
      /**
110969
      /**
110709
       * Find the _Fields constant that matches fieldId, or null if its not found.
110970
       * Find the _Fields constant that matches fieldId, or null if its not found.
110710
       */
110971
       */
110711
      public static _Fields findByThriftId(int fieldId) {
110972
      public static _Fields findByThriftId(int fieldId) {
110712
        switch(fieldId) {
110973
        switch(fieldId) {
110713
          case -1: // SKU
110974
          case 1: // SKU
110714
            return SKU;
110975
            return SKU;
110715
          default:
110976
          default:
110716
            return null;
110977
            return null;
110717
        }
110978
        }
110718
      }
110979
      }
Line 110911... Line 111172...
110911
        field = iprot.readFieldBegin();
111172
        field = iprot.readFieldBegin();
110912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
111173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
110913
          break;
111174
          break;
110914
        }
111175
        }
110915
        switch (field.id) {
111176
        switch (field.id) {
110916
          case -1: // SKU
111177
          case 1: // SKU
110917
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
111178
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
110918
              this.sku = iprot.readString();
111179
              this.sku = iprot.readString();
110919
            } else { 
111180
            } else { 
110920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
110921
            }
111182
            }
Line 111272... Line 111533...
111272
      }
111533
      }
111273
    }
111534
    }
111274
 
111535
 
111275
  }
111536
  }
111276
 
111537
 
-
 
111538
  public static class getMarketplaceHistory_args implements org.apache.thrift.TBase<getMarketplaceHistory_args, getMarketplaceHistory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
111539
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistory_args");
-
 
111540
 
-
 
111541
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
111542
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
111543
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
111544
 
-
 
111545
    private long source; // required
-
 
111546
    private long offset; // required
-
 
111547
    private long itemId; // required
-
 
111548
 
-
 
111549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
111550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
111551
      SOURCE((short)1, "source"),
-
 
111552
      OFFSET((short)2, "offset"),
-
 
111553
      ITEM_ID((short)3, "itemId");
-
 
111554
 
-
 
111555
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
111556
 
-
 
111557
      static {
-
 
111558
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
111559
          byName.put(field.getFieldName(), field);
-
 
111560
        }
-
 
111561
      }
-
 
111562
 
-
 
111563
      /**
-
 
111564
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
111565
       */
-
 
111566
      public static _Fields findByThriftId(int fieldId) {
-
 
111567
        switch(fieldId) {
-
 
111568
          case 1: // SOURCE
-
 
111569
            return SOURCE;
-
 
111570
          case 2: // OFFSET
-
 
111571
            return OFFSET;
-
 
111572
          case 3: // ITEM_ID
-
 
111573
            return ITEM_ID;
-
 
111574
          default:
-
 
111575
            return null;
-
 
111576
        }
-
 
111577
      }
-
 
111578
 
-
 
111579
      /**
-
 
111580
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
111581
       * if it is not found.
-
 
111582
       */
-
 
111583
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
111584
        _Fields fields = findByThriftId(fieldId);
-
 
111585
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
111586
        return fields;
-
 
111587
      }
-
 
111588
 
-
 
111589
      /**
-
 
111590
       * Find the _Fields constant that matches name, or null if its not found.
-
 
111591
       */
-
 
111592
      public static _Fields findByName(String name) {
-
 
111593
        return byName.get(name);
-
 
111594
      }
-
 
111595
 
-
 
111596
      private final short _thriftId;
-
 
111597
      private final String _fieldName;
-
 
111598
 
-
 
111599
      _Fields(short thriftId, String fieldName) {
-
 
111600
        _thriftId = thriftId;
-
 
111601
        _fieldName = fieldName;
-
 
111602
      }
-
 
111603
 
-
 
111604
      public short getThriftFieldId() {
-
 
111605
        return _thriftId;
-
 
111606
      }
-
 
111607
 
-
 
111608
      public String getFieldName() {
-
 
111609
        return _fieldName;
-
 
111610
      }
-
 
111611
    }
-
 
111612
 
-
 
111613
    // isset id assignments
-
 
111614
    private static final int __SOURCE_ISSET_ID = 0;
-
 
111615
    private static final int __OFFSET_ISSET_ID = 1;
-
 
111616
    private static final int __ITEMID_ISSET_ID = 2;
-
 
111617
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
111618
 
-
 
111619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
111620
    static {
-
 
111621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111622
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111623
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
111624
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111625
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
111626
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
111628
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
111629
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistory_args.class, metaDataMap);
-
 
111630
    }
-
 
111631
 
-
 
111632
    public getMarketplaceHistory_args() {
-
 
111633
    }
-
 
111634
 
-
 
111635
    public getMarketplaceHistory_args(
-
 
111636
      long source,
-
 
111637
      long offset,
-
 
111638
      long itemId)
-
 
111639
    {
-
 
111640
      this();
-
 
111641
      this.source = source;
-
 
111642
      setSourceIsSet(true);
-
 
111643
      this.offset = offset;
-
 
111644
      setOffsetIsSet(true);
-
 
111645
      this.itemId = itemId;
-
 
111646
      setItemIdIsSet(true);
-
 
111647
    }
-
 
111648
 
-
 
111649
    /**
-
 
111650
     * Performs a deep copy on <i>other</i>.
-
 
111651
     */
-
 
111652
    public getMarketplaceHistory_args(getMarketplaceHistory_args other) {
-
 
111653
      __isset_bit_vector.clear();
-
 
111654
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
111655
      this.source = other.source;
-
 
111656
      this.offset = other.offset;
-
 
111657
      this.itemId = other.itemId;
-
 
111658
    }
-
 
111659
 
-
 
111660
    public getMarketplaceHistory_args deepCopy() {
-
 
111661
      return new getMarketplaceHistory_args(this);
-
 
111662
    }
-
 
111663
 
-
 
111664
    @Override
-
 
111665
    public void clear() {
-
 
111666
      setSourceIsSet(false);
-
 
111667
      this.source = 0;
-
 
111668
      setOffsetIsSet(false);
-
 
111669
      this.offset = 0;
-
 
111670
      setItemIdIsSet(false);
-
 
111671
      this.itemId = 0;
-
 
111672
    }
-
 
111673
 
-
 
111674
    public long getSource() {
-
 
111675
      return this.source;
-
 
111676
    }
-
 
111677
 
-
 
111678
    public void setSource(long source) {
-
 
111679
      this.source = source;
-
 
111680
      setSourceIsSet(true);
-
 
111681
    }
-
 
111682
 
-
 
111683
    public void unsetSource() {
-
 
111684
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
111685
    }
-
 
111686
 
-
 
111687
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
111688
    public boolean isSetSource() {
-
 
111689
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
111690
    }
-
 
111691
 
-
 
111692
    public void setSourceIsSet(boolean value) {
-
 
111693
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
111694
    }
-
 
111695
 
-
 
111696
    public long getOffset() {
-
 
111697
      return this.offset;
-
 
111698
    }
-
 
111699
 
-
 
111700
    public void setOffset(long offset) {
-
 
111701
      this.offset = offset;
-
 
111702
      setOffsetIsSet(true);
-
 
111703
    }
-
 
111704
 
-
 
111705
    public void unsetOffset() {
-
 
111706
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
111707
    }
-
 
111708
 
-
 
111709
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
111710
    public boolean isSetOffset() {
-
 
111711
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
111712
    }
-
 
111713
 
-
 
111714
    public void setOffsetIsSet(boolean value) {
-
 
111715
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
111716
    }
-
 
111717
 
-
 
111718
    public long getItemId() {
-
 
111719
      return this.itemId;
-
 
111720
    }
-
 
111721
 
-
 
111722
    public void setItemId(long itemId) {
-
 
111723
      this.itemId = itemId;
-
 
111724
      setItemIdIsSet(true);
-
 
111725
    }
-
 
111726
 
-
 
111727
    public void unsetItemId() {
-
 
111728
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
111729
    }
-
 
111730
 
-
 
111731
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
111732
    public boolean isSetItemId() {
-
 
111733
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
111734
    }
-
 
111735
 
-
 
111736
    public void setItemIdIsSet(boolean value) {
-
 
111737
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
111738
    }
-
 
111739
 
-
 
111740
    public void setFieldValue(_Fields field, Object value) {
-
 
111741
      switch (field) {
-
 
111742
      case SOURCE:
-
 
111743
        if (value == null) {
-
 
111744
          unsetSource();
-
 
111745
        } else {
-
 
111746
          setSource((Long)value);
-
 
111747
        }
-
 
111748
        break;
-
 
111749
 
-
 
111750
      case OFFSET:
-
 
111751
        if (value == null) {
-
 
111752
          unsetOffset();
-
 
111753
        } else {
-
 
111754
          setOffset((Long)value);
-
 
111755
        }
-
 
111756
        break;
-
 
111757
 
-
 
111758
      case ITEM_ID:
-
 
111759
        if (value == null) {
-
 
111760
          unsetItemId();
-
 
111761
        } else {
-
 
111762
          setItemId((Long)value);
-
 
111763
        }
-
 
111764
        break;
-
 
111765
 
-
 
111766
      }
-
 
111767
    }
-
 
111768
 
-
 
111769
    public Object getFieldValue(_Fields field) {
-
 
111770
      switch (field) {
-
 
111771
      case SOURCE:
-
 
111772
        return Long.valueOf(getSource());
-
 
111773
 
-
 
111774
      case OFFSET:
-
 
111775
        return Long.valueOf(getOffset());
-
 
111776
 
-
 
111777
      case ITEM_ID:
-
 
111778
        return Long.valueOf(getItemId());
-
 
111779
 
-
 
111780
      }
-
 
111781
      throw new IllegalStateException();
-
 
111782
    }
-
 
111783
 
-
 
111784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111785
    public boolean isSet(_Fields field) {
-
 
111786
      if (field == null) {
-
 
111787
        throw new IllegalArgumentException();
-
 
111788
      }
-
 
111789
 
-
 
111790
      switch (field) {
-
 
111791
      case SOURCE:
-
 
111792
        return isSetSource();
-
 
111793
      case OFFSET:
-
 
111794
        return isSetOffset();
-
 
111795
      case ITEM_ID:
-
 
111796
        return isSetItemId();
-
 
111797
      }
-
 
111798
      throw new IllegalStateException();
-
 
111799
    }
-
 
111800
 
-
 
111801
    @Override
-
 
111802
    public boolean equals(Object that) {
-
 
111803
      if (that == null)
-
 
111804
        return false;
-
 
111805
      if (that instanceof getMarketplaceHistory_args)
-
 
111806
        return this.equals((getMarketplaceHistory_args)that);
-
 
111807
      return false;
-
 
111808
    }
-
 
111809
 
-
 
111810
    public boolean equals(getMarketplaceHistory_args that) {
-
 
111811
      if (that == null)
-
 
111812
        return false;
-
 
111813
 
-
 
111814
      boolean this_present_source = true;
-
 
111815
      boolean that_present_source = true;
-
 
111816
      if (this_present_source || that_present_source) {
-
 
111817
        if (!(this_present_source && that_present_source))
-
 
111818
          return false;
-
 
111819
        if (this.source != that.source)
-
 
111820
          return false;
-
 
111821
      }
-
 
111822
 
-
 
111823
      boolean this_present_offset = true;
-
 
111824
      boolean that_present_offset = true;
-
 
111825
      if (this_present_offset || that_present_offset) {
-
 
111826
        if (!(this_present_offset && that_present_offset))
-
 
111827
          return false;
-
 
111828
        if (this.offset != that.offset)
-
 
111829
          return false;
-
 
111830
      }
-
 
111831
 
-
 
111832
      boolean this_present_itemId = true;
-
 
111833
      boolean that_present_itemId = true;
-
 
111834
      if (this_present_itemId || that_present_itemId) {
-
 
111835
        if (!(this_present_itemId && that_present_itemId))
-
 
111836
          return false;
-
 
111837
        if (this.itemId != that.itemId)
-
 
111838
          return false;
-
 
111839
      }
-
 
111840
 
-
 
111841
      return true;
-
 
111842
    }
-
 
111843
 
-
 
111844
    @Override
-
 
111845
    public int hashCode() {
-
 
111846
      return 0;
-
 
111847
    }
-
 
111848
 
-
 
111849
    public int compareTo(getMarketplaceHistory_args other) {
-
 
111850
      if (!getClass().equals(other.getClass())) {
-
 
111851
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111852
      }
-
 
111853
 
-
 
111854
      int lastComparison = 0;
-
 
111855
      getMarketplaceHistory_args typedOther = (getMarketplaceHistory_args)other;
-
 
111856
 
-
 
111857
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
111858
      if (lastComparison != 0) {
-
 
111859
        return lastComparison;
-
 
111860
      }
-
 
111861
      if (isSetSource()) {
-
 
111862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
111863
        if (lastComparison != 0) {
-
 
111864
          return lastComparison;
-
 
111865
        }
-
 
111866
      }
-
 
111867
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
111868
      if (lastComparison != 0) {
-
 
111869
        return lastComparison;
-
 
111870
      }
-
 
111871
      if (isSetOffset()) {
-
 
111872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
111873
        if (lastComparison != 0) {
-
 
111874
          return lastComparison;
-
 
111875
        }
-
 
111876
      }
-
 
111877
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
111878
      if (lastComparison != 0) {
-
 
111879
        return lastComparison;
-
 
111880
      }
-
 
111881
      if (isSetItemId()) {
-
 
111882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
111883
        if (lastComparison != 0) {
-
 
111884
          return lastComparison;
-
 
111885
        }
-
 
111886
      }
-
 
111887
      return 0;
-
 
111888
    }
-
 
111889
 
-
 
111890
    public _Fields fieldForId(int fieldId) {
-
 
111891
      return _Fields.findByThriftId(fieldId);
-
 
111892
    }
-
 
111893
 
-
 
111894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111895
      org.apache.thrift.protocol.TField field;
-
 
111896
      iprot.readStructBegin();
-
 
111897
      while (true)
-
 
111898
      {
-
 
111899
        field = iprot.readFieldBegin();
-
 
111900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111901
          break;
-
 
111902
        }
-
 
111903
        switch (field.id) {
-
 
111904
          case 1: // SOURCE
-
 
111905
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
111906
              this.source = iprot.readI64();
-
 
111907
              setSourceIsSet(true);
-
 
111908
            } else { 
-
 
111909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111910
            }
-
 
111911
            break;
-
 
111912
          case 2: // OFFSET
-
 
111913
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
111914
              this.offset = iprot.readI64();
-
 
111915
              setOffsetIsSet(true);
-
 
111916
            } else { 
-
 
111917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111918
            }
-
 
111919
            break;
-
 
111920
          case 3: // ITEM_ID
-
 
111921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
111922
              this.itemId = iprot.readI64();
-
 
111923
              setItemIdIsSet(true);
-
 
111924
            } else { 
-
 
111925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111926
            }
-
 
111927
            break;
-
 
111928
          default:
-
 
111929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111930
        }
-
 
111931
        iprot.readFieldEnd();
-
 
111932
      }
-
 
111933
      iprot.readStructEnd();
-
 
111934
      validate();
-
 
111935
    }
-
 
111936
 
-
 
111937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111938
      validate();
-
 
111939
 
-
 
111940
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111941
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
111942
      oprot.writeI64(this.source);
-
 
111943
      oprot.writeFieldEnd();
-
 
111944
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
111945
      oprot.writeI64(this.offset);
-
 
111946
      oprot.writeFieldEnd();
-
 
111947
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
111948
      oprot.writeI64(this.itemId);
-
 
111949
      oprot.writeFieldEnd();
-
 
111950
      oprot.writeFieldStop();
-
 
111951
      oprot.writeStructEnd();
-
 
111952
    }
-
 
111953
 
-
 
111954
    @Override
-
 
111955
    public String toString() {
-
 
111956
      StringBuilder sb = new StringBuilder("getMarketplaceHistory_args(");
-
 
111957
      boolean first = true;
-
 
111958
 
-
 
111959
      sb.append("source:");
-
 
111960
      sb.append(this.source);
-
 
111961
      first = false;
-
 
111962
      if (!first) sb.append(", ");
-
 
111963
      sb.append("offset:");
-
 
111964
      sb.append(this.offset);
-
 
111965
      first = false;
-
 
111966
      if (!first) sb.append(", ");
-
 
111967
      sb.append("itemId:");
-
 
111968
      sb.append(this.itemId);
-
 
111969
      first = false;
-
 
111970
      sb.append(")");
-
 
111971
      return sb.toString();
-
 
111972
    }
-
 
111973
 
-
 
111974
    public void validate() throws org.apache.thrift.TException {
-
 
111975
      // check for required fields
-
 
111976
    }
-
 
111977
 
-
 
111978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111979
      try {
-
 
111980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111981
      } catch (org.apache.thrift.TException te) {
-
 
111982
        throw new java.io.IOException(te);
-
 
111983
      }
-
 
111984
    }
-
 
111985
 
-
 
111986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111987
      try {
-
 
111988
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
111989
        __isset_bit_vector = new BitSet(1);
-
 
111990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
111991
      } catch (org.apache.thrift.TException te) {
-
 
111992
        throw new java.io.IOException(te);
-
 
111993
      }
-
 
111994
    }
-
 
111995
 
-
 
111996
  }
-
 
111997
 
-
 
111998
  public static class getMarketplaceHistory_result implements org.apache.thrift.TBase<getMarketplaceHistory_result, getMarketplaceHistory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
111999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistory_result");
-
 
112000
 
-
 
112001
    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);
-
 
112002
 
-
 
112003
    private List<MarketplaceHistory> success; // required
-
 
112004
 
-
 
112005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
112006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
112007
      SUCCESS((short)0, "success");
-
 
112008
 
-
 
112009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
112010
 
-
 
112011
      static {
-
 
112012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
112013
          byName.put(field.getFieldName(), field);
-
 
112014
        }
-
 
112015
      }
-
 
112016
 
-
 
112017
      /**
-
 
112018
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
112019
       */
-
 
112020
      public static _Fields findByThriftId(int fieldId) {
-
 
112021
        switch(fieldId) {
-
 
112022
          case 0: // SUCCESS
-
 
112023
            return SUCCESS;
-
 
112024
          default:
-
 
112025
            return null;
-
 
112026
        }
-
 
112027
      }
-
 
112028
 
-
 
112029
      /**
-
 
112030
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
112031
       * if it is not found.
-
 
112032
       */
-
 
112033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
112034
        _Fields fields = findByThriftId(fieldId);
-
 
112035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
112036
        return fields;
-
 
112037
      }
-
 
112038
 
-
 
112039
      /**
-
 
112040
       * Find the _Fields constant that matches name, or null if its not found.
-
 
112041
       */
-
 
112042
      public static _Fields findByName(String name) {
-
 
112043
        return byName.get(name);
-
 
112044
      }
-
 
112045
 
-
 
112046
      private final short _thriftId;
-
 
112047
      private final String _fieldName;
-
 
112048
 
-
 
112049
      _Fields(short thriftId, String fieldName) {
-
 
112050
        _thriftId = thriftId;
-
 
112051
        _fieldName = fieldName;
-
 
112052
      }
-
 
112053
 
-
 
112054
      public short getThriftFieldId() {
-
 
112055
        return _thriftId;
-
 
112056
      }
-
 
112057
 
-
 
112058
      public String getFieldName() {
-
 
112059
        return _fieldName;
-
 
112060
      }
-
 
112061
    }
-
 
112062
 
-
 
112063
    // isset id assignments
-
 
112064
 
-
 
112065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
112066
    static {
-
 
112067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
112068
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112069
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
112070
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceHistory.class))));
-
 
112071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
112072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistory_result.class, metaDataMap);
-
 
112073
    }
-
 
112074
 
-
 
112075
    public getMarketplaceHistory_result() {
-
 
112076
    }
-
 
112077
 
-
 
112078
    public getMarketplaceHistory_result(
-
 
112079
      List<MarketplaceHistory> success)
-
 
112080
    {
-
 
112081
      this();
-
 
112082
      this.success = success;
-
 
112083
    }
-
 
112084
 
-
 
112085
    /**
-
 
112086
     * Performs a deep copy on <i>other</i>.
-
 
112087
     */
-
 
112088
    public getMarketplaceHistory_result(getMarketplaceHistory_result other) {
-
 
112089
      if (other.isSetSuccess()) {
-
 
112090
        List<MarketplaceHistory> __this__success = new ArrayList<MarketplaceHistory>();
-
 
112091
        for (MarketplaceHistory other_element : other.success) {
-
 
112092
          __this__success.add(new MarketplaceHistory(other_element));
-
 
112093
        }
-
 
112094
        this.success = __this__success;
-
 
112095
      }
-
 
112096
    }
-
 
112097
 
-
 
112098
    public getMarketplaceHistory_result deepCopy() {
-
 
112099
      return new getMarketplaceHistory_result(this);
-
 
112100
    }
-
 
112101
 
-
 
112102
    @Override
-
 
112103
    public void clear() {
-
 
112104
      this.success = null;
-
 
112105
    }
-
 
112106
 
-
 
112107
    public int getSuccessSize() {
-
 
112108
      return (this.success == null) ? 0 : this.success.size();
-
 
112109
    }
-
 
112110
 
-
 
112111
    public java.util.Iterator<MarketplaceHistory> getSuccessIterator() {
-
 
112112
      return (this.success == null) ? null : this.success.iterator();
-
 
112113
    }
-
 
112114
 
-
 
112115
    public void addToSuccess(MarketplaceHistory elem) {
-
 
112116
      if (this.success == null) {
-
 
112117
        this.success = new ArrayList<MarketplaceHistory>();
-
 
112118
      }
-
 
112119
      this.success.add(elem);
-
 
112120
    }
-
 
112121
 
-
 
112122
    public List<MarketplaceHistory> getSuccess() {
-
 
112123
      return this.success;
-
 
112124
    }
-
 
112125
 
-
 
112126
    public void setSuccess(List<MarketplaceHistory> success) {
-
 
112127
      this.success = success;
-
 
112128
    }
-
 
112129
 
-
 
112130
    public void unsetSuccess() {
-
 
112131
      this.success = null;
-
 
112132
    }
-
 
112133
 
-
 
112134
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
112135
    public boolean isSetSuccess() {
-
 
112136
      return this.success != null;
-
 
112137
    }
-
 
112138
 
-
 
112139
    public void setSuccessIsSet(boolean value) {
-
 
112140
      if (!value) {
-
 
112141
        this.success = null;
-
 
112142
      }
-
 
112143
    }
-
 
112144
 
-
 
112145
    public void setFieldValue(_Fields field, Object value) {
-
 
112146
      switch (field) {
-
 
112147
      case SUCCESS:
-
 
112148
        if (value == null) {
-
 
112149
          unsetSuccess();
-
 
112150
        } else {
-
 
112151
          setSuccess((List<MarketplaceHistory>)value);
-
 
112152
        }
-
 
112153
        break;
-
 
112154
 
-
 
112155
      }
-
 
112156
    }
-
 
112157
 
-
 
112158
    public Object getFieldValue(_Fields field) {
-
 
112159
      switch (field) {
-
 
112160
      case SUCCESS:
-
 
112161
        return getSuccess();
-
 
112162
 
-
 
112163
      }
-
 
112164
      throw new IllegalStateException();
-
 
112165
    }
-
 
112166
 
-
 
112167
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
112168
    public boolean isSet(_Fields field) {
-
 
112169
      if (field == null) {
-
 
112170
        throw new IllegalArgumentException();
-
 
112171
      }
-
 
112172
 
-
 
112173
      switch (field) {
-
 
112174
      case SUCCESS:
-
 
112175
        return isSetSuccess();
-
 
112176
      }
-
 
112177
      throw new IllegalStateException();
-
 
112178
    }
-
 
112179
 
-
 
112180
    @Override
-
 
112181
    public boolean equals(Object that) {
-
 
112182
      if (that == null)
-
 
112183
        return false;
-
 
112184
      if (that instanceof getMarketplaceHistory_result)
-
 
112185
        return this.equals((getMarketplaceHistory_result)that);
-
 
112186
      return false;
-
 
112187
    }
-
 
112188
 
-
 
112189
    public boolean equals(getMarketplaceHistory_result that) {
-
 
112190
      if (that == null)
-
 
112191
        return false;
-
 
112192
 
-
 
112193
      boolean this_present_success = true && this.isSetSuccess();
-
 
112194
      boolean that_present_success = true && that.isSetSuccess();
-
 
112195
      if (this_present_success || that_present_success) {
-
 
112196
        if (!(this_present_success && that_present_success))
-
 
112197
          return false;
-
 
112198
        if (!this.success.equals(that.success))
-
 
112199
          return false;
-
 
112200
      }
-
 
112201
 
-
 
112202
      return true;
-
 
112203
    }
-
 
112204
 
-
 
112205
    @Override
-
 
112206
    public int hashCode() {
-
 
112207
      return 0;
-
 
112208
    }
-
 
112209
 
-
 
112210
    public int compareTo(getMarketplaceHistory_result other) {
-
 
112211
      if (!getClass().equals(other.getClass())) {
-
 
112212
        return getClass().getName().compareTo(other.getClass().getName());
-
 
112213
      }
-
 
112214
 
-
 
112215
      int lastComparison = 0;
-
 
112216
      getMarketplaceHistory_result typedOther = (getMarketplaceHistory_result)other;
-
 
112217
 
-
 
112218
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
112219
      if (lastComparison != 0) {
-
 
112220
        return lastComparison;
-
 
112221
      }
-
 
112222
      if (isSetSuccess()) {
-
 
112223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
112224
        if (lastComparison != 0) {
-
 
112225
          return lastComparison;
-
 
112226
        }
-
 
112227
      }
-
 
112228
      return 0;
-
 
112229
    }
-
 
112230
 
-
 
112231
    public _Fields fieldForId(int fieldId) {
-
 
112232
      return _Fields.findByThriftId(fieldId);
-
 
112233
    }
-
 
112234
 
-
 
112235
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
112236
      org.apache.thrift.protocol.TField field;
-
 
112237
      iprot.readStructBegin();
-
 
112238
      while (true)
-
 
112239
      {
-
 
112240
        field = iprot.readFieldBegin();
-
 
112241
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
112242
          break;
-
 
112243
        }
-
 
112244
        switch (field.id) {
-
 
112245
          case 0: // SUCCESS
-
 
112246
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
112247
              {
-
 
112248
                org.apache.thrift.protocol.TList _list353 = iprot.readListBegin();
-
 
112249
                this.success = new ArrayList<MarketplaceHistory>(_list353.size);
-
 
112250
                for (int _i354 = 0; _i354 < _list353.size; ++_i354)
-
 
112251
                {
-
 
112252
                  MarketplaceHistory _elem355; // required
-
 
112253
                  _elem355 = new MarketplaceHistory();
-
 
112254
                  _elem355.read(iprot);
-
 
112255
                  this.success.add(_elem355);
-
 
112256
                }
-
 
112257
                iprot.readListEnd();
-
 
112258
              }
-
 
112259
            } else { 
-
 
112260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112261
            }
-
 
112262
            break;
-
 
112263
          default:
-
 
112264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112265
        }
-
 
112266
        iprot.readFieldEnd();
-
 
112267
      }
-
 
112268
      iprot.readStructEnd();
-
 
112269
      validate();
-
 
112270
    }
-
 
112271
 
-
 
112272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
112273
      oprot.writeStructBegin(STRUCT_DESC);
-
 
112274
 
-
 
112275
      if (this.isSetSuccess()) {
-
 
112276
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
112277
        {
-
 
112278
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
112279
          for (MarketplaceHistory _iter356 : this.success)
-
 
112280
          {
-
 
112281
            _iter356.write(oprot);
-
 
112282
          }
-
 
112283
          oprot.writeListEnd();
-
 
112284
        }
-
 
112285
        oprot.writeFieldEnd();
-
 
112286
      }
-
 
112287
      oprot.writeFieldStop();
-
 
112288
      oprot.writeStructEnd();
-
 
112289
    }
-
 
112290
 
-
 
112291
    @Override
-
 
112292
    public String toString() {
-
 
112293
      StringBuilder sb = new StringBuilder("getMarketplaceHistory_result(");
-
 
112294
      boolean first = true;
-
 
112295
 
-
 
112296
      sb.append("success:");
-
 
112297
      if (this.success == null) {
-
 
112298
        sb.append("null");
-
 
112299
      } else {
-
 
112300
        sb.append(this.success);
-
 
112301
      }
-
 
112302
      first = false;
-
 
112303
      sb.append(")");
-
 
112304
      return sb.toString();
-
 
112305
    }
-
 
112306
 
-
 
112307
    public void validate() throws org.apache.thrift.TException {
-
 
112308
      // check for required fields
-
 
112309
    }
-
 
112310
 
-
 
112311
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
112312
      try {
-
 
112313
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
112314
      } catch (org.apache.thrift.TException te) {
-
 
112315
        throw new java.io.IOException(te);
-
 
112316
      }
-
 
112317
    }
-
 
112318
 
-
 
112319
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
112320
      try {
-
 
112321
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
112322
      } catch (org.apache.thrift.TException te) {
-
 
112323
        throw new java.io.IOException(te);
-
 
112324
      }
-
 
112325
    }
-
 
112326
 
-
 
112327
  }
-
 
112328
 
111277
  public static class getAllFbbListedItems_args implements org.apache.thrift.TBase<getAllFbbListedItems_args, getAllFbbListedItems_args._Fields>, java.io.Serializable, Cloneable   {
112329
  public static class getAllFbbListedItems_args implements org.apache.thrift.TBase<getAllFbbListedItems_args, getAllFbbListedItems_args._Fields>, java.io.Serializable, Cloneable   {
111278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_args");
112330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_args");
111279
 
112331
 
111280
 
112332
 
111281
 
112333
 
Line 111722... Line 112774...
111722
        }
112774
        }
111723
        switch (field.id) {
112775
        switch (field.id) {
111724
          case 0: // SUCCESS
112776
          case 0: // SUCCESS
111725
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
112777
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
111726
              {
112778
              {
111727
                org.apache.thrift.protocol.TList _list353 = iprot.readListBegin();
112779
                org.apache.thrift.protocol.TList _list357 = iprot.readListBegin();
111728
                this.success = new ArrayList<Amazonlisted>(_list353.size);
112780
                this.success = new ArrayList<Amazonlisted>(_list357.size);
111729
                for (int _i354 = 0; _i354 < _list353.size; ++_i354)
112781
                for (int _i358 = 0; _i358 < _list357.size; ++_i358)
111730
                {
112782
                {
111731
                  Amazonlisted _elem355; // required
112783
                  Amazonlisted _elem359; // required
111732
                  _elem355 = new Amazonlisted();
112784
                  _elem359 = new Amazonlisted();
111733
                  _elem355.read(iprot);
112785
                  _elem359.read(iprot);
111734
                  this.success.add(_elem355);
112786
                  this.success.add(_elem359);
111735
                }
112787
                }
111736
                iprot.readListEnd();
112788
                iprot.readListEnd();
111737
              }
112789
              }
111738
            } else { 
112790
            } else { 
111739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
112791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 111753... Line 112805...
111753
 
112805
 
111754
      if (this.isSetSuccess()) {
112806
      if (this.isSetSuccess()) {
111755
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
112807
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
111756
        {
112808
        {
111757
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
112809
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
111758
          for (Amazonlisted _iter356 : this.success)
112810
          for (Amazonlisted _iter360 : this.success)
111759
          {
112811
          {
111760
            _iter356.write(oprot);
112812
            _iter360.write(oprot);
111761
          }
112813
          }
111762
          oprot.writeListEnd();
112814
          oprot.writeListEnd();
111763
        }
112815
        }
111764
        oprot.writeFieldEnd();
112816
        oprot.writeFieldEnd();
111765
      }
112817
      }
Line 112253... Line 113305...
112253
        }
113305
        }
112254
        switch (field.id) {
113306
        switch (field.id) {
112255
          case 0: // SUCCESS
113307
          case 0: // SUCCESS
112256
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
113308
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
112257
              {
113309
              {
112258
                org.apache.thrift.protocol.TList _list357 = iprot.readListBegin();
113310
                org.apache.thrift.protocol.TList _list361 = iprot.readListBegin();
112259
                this.success = new ArrayList<Amazonlisted>(_list357.size);
113311
                this.success = new ArrayList<Amazonlisted>(_list361.size);
112260
                for (int _i358 = 0; _i358 < _list357.size; ++_i358)
113312
                for (int _i362 = 0; _i362 < _list361.size; ++_i362)
112261
                {
113313
                {
112262
                  Amazonlisted _elem359; // required
113314
                  Amazonlisted _elem363; // required
112263
                  _elem359 = new Amazonlisted();
113315
                  _elem363 = new Amazonlisted();
112264
                  _elem359.read(iprot);
113316
                  _elem363.read(iprot);
112265
                  this.success.add(_elem359);
113317
                  this.success.add(_elem363);
112266
                }
113318
                }
112267
                iprot.readListEnd();
113319
                iprot.readListEnd();
112268
              }
113320
              }
112269
            } else { 
113321
            } else { 
112270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
113322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 112284... Line 113336...
112284
 
113336
 
112285
      if (this.isSetSuccess()) {
113337
      if (this.isSetSuccess()) {
112286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
113338
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
112287
        {
113339
        {
112288
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
113340
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
112289
          for (Amazonlisted _iter360 : this.success)
113341
          for (Amazonlisted _iter364 : this.success)
112290
          {
113342
          {
112291
            _iter360.write(oprot);
113343
            _iter364.write(oprot);
112292
          }
113344
          }
112293
          oprot.writeListEnd();
113345
          oprot.writeListEnd();
112294
        }
113346
        }
112295
        oprot.writeFieldEnd();
113347
        oprot.writeFieldEnd();
112296
      }
113348
      }
Line 112304... Line 113356...
112304
      boolean first = true;
113356
      boolean first = true;
112305
 
113357
 
112306
      sb.append("success:");
113358
      sb.append("success:");
112307
      if (this.success == null) {
113359
      if (this.success == null) {
112308
        sb.append("null");
113360
        sb.append("null");
-
 
113361
      } else {
-
 
113362
        sb.append(this.success);
-
 
113363
      }
-
 
113364
      first = false;
-
 
113365
      sb.append(")");
-
 
113366
      return sb.toString();
-
 
113367
    }
-
 
113368
 
-
 
113369
    public void validate() throws org.apache.thrift.TException {
-
 
113370
      // check for required fields
-
 
113371
    }
-
 
113372
 
-
 
113373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
113374
      try {
-
 
113375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
113376
      } catch (org.apache.thrift.TException te) {
-
 
113377
        throw new java.io.IOException(te);
-
 
113378
      }
-
 
113379
    }
-
 
113380
 
-
 
113381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
113382
      try {
-
 
113383
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
113384
      } catch (org.apache.thrift.TException te) {
-
 
113385
        throw new java.io.IOException(te);
-
 
113386
      }
-
 
113387
    }
-
 
113388
 
-
 
113389
  }
-
 
113390
 
-
 
113391
  public static class getCountForMarketplaceHistory_args implements org.apache.thrift.TBase<getCountForMarketplaceHistory_args, getCountForMarketplaceHistory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
113392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForMarketplaceHistory_args");
-
 
113393
 
-
 
113394
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
113395
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
113396
 
-
 
113397
    private long source; // required
-
 
113398
    private long itemId; // required
-
 
113399
 
-
 
113400
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
113401
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
113402
      SOURCE((short)1, "source"),
-
 
113403
      ITEM_ID((short)2, "itemId");
-
 
113404
 
-
 
113405
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
113406
 
-
 
113407
      static {
-
 
113408
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
113409
          byName.put(field.getFieldName(), field);
-
 
113410
        }
-
 
113411
      }
-
 
113412
 
-
 
113413
      /**
-
 
113414
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
113415
       */
-
 
113416
      public static _Fields findByThriftId(int fieldId) {
-
 
113417
        switch(fieldId) {
-
 
113418
          case 1: // SOURCE
-
 
113419
            return SOURCE;
-
 
113420
          case 2: // ITEM_ID
-
 
113421
            return ITEM_ID;
-
 
113422
          default:
-
 
113423
            return null;
-
 
113424
        }
-
 
113425
      }
-
 
113426
 
-
 
113427
      /**
-
 
113428
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
113429
       * if it is not found.
-
 
113430
       */
-
 
113431
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
113432
        _Fields fields = findByThriftId(fieldId);
-
 
113433
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
113434
        return fields;
-
 
113435
      }
-
 
113436
 
-
 
113437
      /**
-
 
113438
       * Find the _Fields constant that matches name, or null if its not found.
-
 
113439
       */
-
 
113440
      public static _Fields findByName(String name) {
-
 
113441
        return byName.get(name);
-
 
113442
      }
-
 
113443
 
-
 
113444
      private final short _thriftId;
-
 
113445
      private final String _fieldName;
-
 
113446
 
-
 
113447
      _Fields(short thriftId, String fieldName) {
-
 
113448
        _thriftId = thriftId;
-
 
113449
        _fieldName = fieldName;
-
 
113450
      }
-
 
113451
 
-
 
113452
      public short getThriftFieldId() {
-
 
113453
        return _thriftId;
-
 
113454
      }
-
 
113455
 
-
 
113456
      public String getFieldName() {
-
 
113457
        return _fieldName;
-
 
113458
      }
-
 
113459
    }
-
 
113460
 
-
 
113461
    // isset id assignments
-
 
113462
    private static final int __SOURCE_ISSET_ID = 0;
-
 
113463
    private static final int __ITEMID_ISSET_ID = 1;
-
 
113464
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
113465
 
-
 
113466
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
113467
    static {
-
 
113468
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113469
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113470
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113471
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113473
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
113474
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForMarketplaceHistory_args.class, metaDataMap);
-
 
113475
    }
-
 
113476
 
-
 
113477
    public getCountForMarketplaceHistory_args() {
-
 
113478
    }
-
 
113479
 
-
 
113480
    public getCountForMarketplaceHistory_args(
-
 
113481
      long source,
-
 
113482
      long itemId)
-
 
113483
    {
-
 
113484
      this();
-
 
113485
      this.source = source;
-
 
113486
      setSourceIsSet(true);
-
 
113487
      this.itemId = itemId;
-
 
113488
      setItemIdIsSet(true);
-
 
113489
    }
-
 
113490
 
-
 
113491
    /**
-
 
113492
     * Performs a deep copy on <i>other</i>.
-
 
113493
     */
-
 
113494
    public getCountForMarketplaceHistory_args(getCountForMarketplaceHistory_args other) {
-
 
113495
      __isset_bit_vector.clear();
-
 
113496
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
113497
      this.source = other.source;
-
 
113498
      this.itemId = other.itemId;
-
 
113499
    }
-
 
113500
 
-
 
113501
    public getCountForMarketplaceHistory_args deepCopy() {
-
 
113502
      return new getCountForMarketplaceHistory_args(this);
-
 
113503
    }
-
 
113504
 
-
 
113505
    @Override
-
 
113506
    public void clear() {
-
 
113507
      setSourceIsSet(false);
-
 
113508
      this.source = 0;
-
 
113509
      setItemIdIsSet(false);
-
 
113510
      this.itemId = 0;
-
 
113511
    }
-
 
113512
 
-
 
113513
    public long getSource() {
-
 
113514
      return this.source;
-
 
113515
    }
-
 
113516
 
-
 
113517
    public void setSource(long source) {
-
 
113518
      this.source = source;
-
 
113519
      setSourceIsSet(true);
-
 
113520
    }
-
 
113521
 
-
 
113522
    public void unsetSource() {
-
 
113523
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
113524
    }
-
 
113525
 
-
 
113526
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
113527
    public boolean isSetSource() {
-
 
113528
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
113529
    }
-
 
113530
 
-
 
113531
    public void setSourceIsSet(boolean value) {
-
 
113532
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
113533
    }
-
 
113534
 
-
 
113535
    public long getItemId() {
-
 
113536
      return this.itemId;
-
 
113537
    }
-
 
113538
 
-
 
113539
    public void setItemId(long itemId) {
-
 
113540
      this.itemId = itemId;
-
 
113541
      setItemIdIsSet(true);
-
 
113542
    }
-
 
113543
 
-
 
113544
    public void unsetItemId() {
-
 
113545
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
113546
    }
-
 
113547
 
-
 
113548
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
113549
    public boolean isSetItemId() {
-
 
113550
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
113551
    }
-
 
113552
 
-
 
113553
    public void setItemIdIsSet(boolean value) {
-
 
113554
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
113555
    }
-
 
113556
 
-
 
113557
    public void setFieldValue(_Fields field, Object value) {
-
 
113558
      switch (field) {
-
 
113559
      case SOURCE:
-
 
113560
        if (value == null) {
-
 
113561
          unsetSource();
-
 
113562
        } else {
-
 
113563
          setSource((Long)value);
-
 
113564
        }
-
 
113565
        break;
-
 
113566
 
-
 
113567
      case ITEM_ID:
-
 
113568
        if (value == null) {
-
 
113569
          unsetItemId();
-
 
113570
        } else {
-
 
113571
          setItemId((Long)value);
-
 
113572
        }
-
 
113573
        break;
-
 
113574
 
-
 
113575
      }
-
 
113576
    }
-
 
113577
 
-
 
113578
    public Object getFieldValue(_Fields field) {
-
 
113579
      switch (field) {
-
 
113580
      case SOURCE:
-
 
113581
        return Long.valueOf(getSource());
-
 
113582
 
-
 
113583
      case ITEM_ID:
-
 
113584
        return Long.valueOf(getItemId());
-
 
113585
 
-
 
113586
      }
-
 
113587
      throw new IllegalStateException();
-
 
113588
    }
-
 
113589
 
-
 
113590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
113591
    public boolean isSet(_Fields field) {
-
 
113592
      if (field == null) {
-
 
113593
        throw new IllegalArgumentException();
-
 
113594
      }
-
 
113595
 
-
 
113596
      switch (field) {
-
 
113597
      case SOURCE:
-
 
113598
        return isSetSource();
-
 
113599
      case ITEM_ID:
-
 
113600
        return isSetItemId();
-
 
113601
      }
-
 
113602
      throw new IllegalStateException();
-
 
113603
    }
-
 
113604
 
-
 
113605
    @Override
-
 
113606
    public boolean equals(Object that) {
-
 
113607
      if (that == null)
-
 
113608
        return false;
-
 
113609
      if (that instanceof getCountForMarketplaceHistory_args)
-
 
113610
        return this.equals((getCountForMarketplaceHistory_args)that);
-
 
113611
      return false;
-
 
113612
    }
-
 
113613
 
-
 
113614
    public boolean equals(getCountForMarketplaceHistory_args that) {
-
 
113615
      if (that == null)
-
 
113616
        return false;
-
 
113617
 
-
 
113618
      boolean this_present_source = true;
-
 
113619
      boolean that_present_source = true;
-
 
113620
      if (this_present_source || that_present_source) {
-
 
113621
        if (!(this_present_source && that_present_source))
-
 
113622
          return false;
-
 
113623
        if (this.source != that.source)
-
 
113624
          return false;
-
 
113625
      }
-
 
113626
 
-
 
113627
      boolean this_present_itemId = true;
-
 
113628
      boolean that_present_itemId = true;
-
 
113629
      if (this_present_itemId || that_present_itemId) {
-
 
113630
        if (!(this_present_itemId && that_present_itemId))
-
 
113631
          return false;
-
 
113632
        if (this.itemId != that.itemId)
-
 
113633
          return false;
-
 
113634
      }
-
 
113635
 
-
 
113636
      return true;
-
 
113637
    }
-
 
113638
 
-
 
113639
    @Override
-
 
113640
    public int hashCode() {
-
 
113641
      return 0;
-
 
113642
    }
-
 
113643
 
-
 
113644
    public int compareTo(getCountForMarketplaceHistory_args other) {
-
 
113645
      if (!getClass().equals(other.getClass())) {
-
 
113646
        return getClass().getName().compareTo(other.getClass().getName());
-
 
113647
      }
-
 
113648
 
-
 
113649
      int lastComparison = 0;
-
 
113650
      getCountForMarketplaceHistory_args typedOther = (getCountForMarketplaceHistory_args)other;
-
 
113651
 
-
 
113652
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
113653
      if (lastComparison != 0) {
-
 
113654
        return lastComparison;
-
 
113655
      }
-
 
113656
      if (isSetSource()) {
-
 
113657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
113658
        if (lastComparison != 0) {
-
 
113659
          return lastComparison;
-
 
113660
        }
-
 
113661
      }
-
 
113662
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
113663
      if (lastComparison != 0) {
-
 
113664
        return lastComparison;
-
 
113665
      }
-
 
113666
      if (isSetItemId()) {
-
 
113667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
113668
        if (lastComparison != 0) {
-
 
113669
          return lastComparison;
-
 
113670
        }
-
 
113671
      }
-
 
113672
      return 0;
-
 
113673
    }
-
 
113674
 
-
 
113675
    public _Fields fieldForId(int fieldId) {
-
 
113676
      return _Fields.findByThriftId(fieldId);
-
 
113677
    }
-
 
113678
 
-
 
113679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
113680
      org.apache.thrift.protocol.TField field;
-
 
113681
      iprot.readStructBegin();
-
 
113682
      while (true)
-
 
113683
      {
-
 
113684
        field = iprot.readFieldBegin();
-
 
113685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
113686
          break;
-
 
113687
        }
-
 
113688
        switch (field.id) {
-
 
113689
          case 1: // SOURCE
-
 
113690
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
113691
              this.source = iprot.readI64();
-
 
113692
              setSourceIsSet(true);
-
 
113693
            } else { 
-
 
113694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113695
            }
-
 
113696
            break;
-
 
113697
          case 2: // ITEM_ID
-
 
113698
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
113699
              this.itemId = iprot.readI64();
-
 
113700
              setItemIdIsSet(true);
-
 
113701
            } else { 
-
 
113702
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113703
            }
-
 
113704
            break;
-
 
113705
          default:
-
 
113706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113707
        }
-
 
113708
        iprot.readFieldEnd();
-
 
113709
      }
-
 
113710
      iprot.readStructEnd();
-
 
113711
      validate();
-
 
113712
    }
-
 
113713
 
-
 
113714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
113715
      validate();
-
 
113716
 
-
 
113717
      oprot.writeStructBegin(STRUCT_DESC);
-
 
113718
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
113719
      oprot.writeI64(this.source);
-
 
113720
      oprot.writeFieldEnd();
-
 
113721
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
113722
      oprot.writeI64(this.itemId);
-
 
113723
      oprot.writeFieldEnd();
-
 
113724
      oprot.writeFieldStop();
-
 
113725
      oprot.writeStructEnd();
-
 
113726
    }
-
 
113727
 
-
 
113728
    @Override
-
 
113729
    public String toString() {
-
 
113730
      StringBuilder sb = new StringBuilder("getCountForMarketplaceHistory_args(");
-
 
113731
      boolean first = true;
-
 
113732
 
-
 
113733
      sb.append("source:");
-
 
113734
      sb.append(this.source);
-
 
113735
      first = false;
-
 
113736
      if (!first) sb.append(", ");
-
 
113737
      sb.append("itemId:");
-
 
113738
      sb.append(this.itemId);
-
 
113739
      first = false;
-
 
113740
      sb.append(")");
-
 
113741
      return sb.toString();
-
 
113742
    }
-
 
113743
 
-
 
113744
    public void validate() throws org.apache.thrift.TException {
-
 
113745
      // check for required fields
-
 
113746
    }
-
 
113747
 
-
 
113748
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
113749
      try {
-
 
113750
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
113751
      } catch (org.apache.thrift.TException te) {
-
 
113752
        throw new java.io.IOException(te);
-
 
113753
      }
-
 
113754
    }
-
 
113755
 
-
 
113756
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
113757
      try {
-
 
113758
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
113759
        __isset_bit_vector = new BitSet(1);
-
 
113760
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
113761
      } catch (org.apache.thrift.TException te) {
-
 
113762
        throw new java.io.IOException(te);
-
 
113763
      }
-
 
113764
    }
-
 
113765
 
-
 
113766
  }
-
 
113767
 
-
 
113768
  public static class getCountForMarketplaceHistory_result implements org.apache.thrift.TBase<getCountForMarketplaceHistory_result, getCountForMarketplaceHistory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
113769
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForMarketplaceHistory_result");
-
 
113770
 
-
 
113771
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
113772
 
-
 
113773
    private long success; // required
-
 
113774
 
-
 
113775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
113776
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
113777
      SUCCESS((short)0, "success");
-
 
113778
 
-
 
113779
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
113780
 
-
 
113781
      static {
-
 
113782
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
113783
          byName.put(field.getFieldName(), field);
-
 
113784
        }
-
 
113785
      }
-
 
113786
 
-
 
113787
      /**
-
 
113788
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
113789
       */
-
 
113790
      public static _Fields findByThriftId(int fieldId) {
-
 
113791
        switch(fieldId) {
-
 
113792
          case 0: // SUCCESS
-
 
113793
            return SUCCESS;
-
 
113794
          default:
-
 
113795
            return null;
-
 
113796
        }
-
 
113797
      }
-
 
113798
 
-
 
113799
      /**
-
 
113800
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
113801
       * if it is not found.
-
 
113802
       */
-
 
113803
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
113804
        _Fields fields = findByThriftId(fieldId);
-
 
113805
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
113806
        return fields;
-
 
113807
      }
-
 
113808
 
-
 
113809
      /**
-
 
113810
       * Find the _Fields constant that matches name, or null if its not found.
-
 
113811
       */
-
 
113812
      public static _Fields findByName(String name) {
-
 
113813
        return byName.get(name);
-
 
113814
      }
-
 
113815
 
-
 
113816
      private final short _thriftId;
-
 
113817
      private final String _fieldName;
-
 
113818
 
-
 
113819
      _Fields(short thriftId, String fieldName) {
-
 
113820
        _thriftId = thriftId;
-
 
113821
        _fieldName = fieldName;
-
 
113822
      }
-
 
113823
 
-
 
113824
      public short getThriftFieldId() {
-
 
113825
        return _thriftId;
-
 
113826
      }
-
 
113827
 
-
 
113828
      public String getFieldName() {
-
 
113829
        return _fieldName;
-
 
113830
      }
-
 
113831
    }
-
 
113832
 
-
 
113833
    // isset id assignments
-
 
113834
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
113835
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
113836
 
-
 
113837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
113838
    static {
-
 
113839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113840
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
113843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForMarketplaceHistory_result.class, metaDataMap);
-
 
113844
    }
-
 
113845
 
-
 
113846
    public getCountForMarketplaceHistory_result() {
-
 
113847
    }
-
 
113848
 
-
 
113849
    public getCountForMarketplaceHistory_result(
-
 
113850
      long success)
-
 
113851
    {
-
 
113852
      this();
-
 
113853
      this.success = success;
-
 
113854
      setSuccessIsSet(true);
-
 
113855
    }
-
 
113856
 
-
 
113857
    /**
-
 
113858
     * Performs a deep copy on <i>other</i>.
-
 
113859
     */
-
 
113860
    public getCountForMarketplaceHistory_result(getCountForMarketplaceHistory_result other) {
-
 
113861
      __isset_bit_vector.clear();
-
 
113862
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
113863
      this.success = other.success;
-
 
113864
    }
-
 
113865
 
-
 
113866
    public getCountForMarketplaceHistory_result deepCopy() {
-
 
113867
      return new getCountForMarketplaceHistory_result(this);
-
 
113868
    }
-
 
113869
 
-
 
113870
    @Override
-
 
113871
    public void clear() {
-
 
113872
      setSuccessIsSet(false);
-
 
113873
      this.success = 0;
-
 
113874
    }
-
 
113875
 
-
 
113876
    public long getSuccess() {
-
 
113877
      return this.success;
-
 
113878
    }
-
 
113879
 
-
 
113880
    public void setSuccess(long success) {
-
 
113881
      this.success = success;
-
 
113882
      setSuccessIsSet(true);
-
 
113883
    }
-
 
113884
 
-
 
113885
    public void unsetSuccess() {
-
 
113886
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
113887
    }
-
 
113888
 
-
 
113889
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
113890
    public boolean isSetSuccess() {
-
 
113891
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
113892
    }
-
 
113893
 
-
 
113894
    public void setSuccessIsSet(boolean value) {
-
 
113895
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
113896
    }
-
 
113897
 
-
 
113898
    public void setFieldValue(_Fields field, Object value) {
-
 
113899
      switch (field) {
-
 
113900
      case SUCCESS:
-
 
113901
        if (value == null) {
-
 
113902
          unsetSuccess();
-
 
113903
        } else {
-
 
113904
          setSuccess((Long)value);
-
 
113905
        }
-
 
113906
        break;
-
 
113907
 
-
 
113908
      }
-
 
113909
    }
-
 
113910
 
-
 
113911
    public Object getFieldValue(_Fields field) {
-
 
113912
      switch (field) {
-
 
113913
      case SUCCESS:
-
 
113914
        return Long.valueOf(getSuccess());
-
 
113915
 
-
 
113916
      }
-
 
113917
      throw new IllegalStateException();
-
 
113918
    }
-
 
113919
 
-
 
113920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
113921
    public boolean isSet(_Fields field) {
-
 
113922
      if (field == null) {
-
 
113923
        throw new IllegalArgumentException();
-
 
113924
      }
-
 
113925
 
-
 
113926
      switch (field) {
-
 
113927
      case SUCCESS:
-
 
113928
        return isSetSuccess();
-
 
113929
      }
-
 
113930
      throw new IllegalStateException();
-
 
113931
    }
-
 
113932
 
-
 
113933
    @Override
-
 
113934
    public boolean equals(Object that) {
-
 
113935
      if (that == null)
-
 
113936
        return false;
-
 
113937
      if (that instanceof getCountForMarketplaceHistory_result)
-
 
113938
        return this.equals((getCountForMarketplaceHistory_result)that);
-
 
113939
      return false;
-
 
113940
    }
-
 
113941
 
-
 
113942
    public boolean equals(getCountForMarketplaceHistory_result that) {
-
 
113943
      if (that == null)
-
 
113944
        return false;
-
 
113945
 
-
 
113946
      boolean this_present_success = true;
-
 
113947
      boolean that_present_success = true;
-
 
113948
      if (this_present_success || that_present_success) {
-
 
113949
        if (!(this_present_success && that_present_success))
-
 
113950
          return false;
-
 
113951
        if (this.success != that.success)
-
 
113952
          return false;
-
 
113953
      }
-
 
113954
 
-
 
113955
      return true;
-
 
113956
    }
-
 
113957
 
-
 
113958
    @Override
-
 
113959
    public int hashCode() {
-
 
113960
      return 0;
-
 
113961
    }
-
 
113962
 
-
 
113963
    public int compareTo(getCountForMarketplaceHistory_result other) {
-
 
113964
      if (!getClass().equals(other.getClass())) {
-
 
113965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
113966
      }
-
 
113967
 
-
 
113968
      int lastComparison = 0;
-
 
113969
      getCountForMarketplaceHistory_result typedOther = (getCountForMarketplaceHistory_result)other;
-
 
113970
 
-
 
113971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
113972
      if (lastComparison != 0) {
-
 
113973
        return lastComparison;
-
 
113974
      }
-
 
113975
      if (isSetSuccess()) {
-
 
113976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
113977
        if (lastComparison != 0) {
-
 
113978
          return lastComparison;
-
 
113979
        }
-
 
113980
      }
-
 
113981
      return 0;
-
 
113982
    }
-
 
113983
 
-
 
113984
    public _Fields fieldForId(int fieldId) {
-
 
113985
      return _Fields.findByThriftId(fieldId);
-
 
113986
    }
-
 
113987
 
-
 
113988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
113989
      org.apache.thrift.protocol.TField field;
-
 
113990
      iprot.readStructBegin();
-
 
113991
      while (true)
-
 
113992
      {
-
 
113993
        field = iprot.readFieldBegin();
-
 
113994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
113995
          break;
-
 
113996
        }
-
 
113997
        switch (field.id) {
-
 
113998
          case 0: // SUCCESS
-
 
113999
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114000
              this.success = iprot.readI64();
-
 
114001
              setSuccessIsSet(true);
-
 
114002
            } else { 
-
 
114003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114004
            }
-
 
114005
            break;
-
 
114006
          default:
-
 
114007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114008
        }
-
 
114009
        iprot.readFieldEnd();
-
 
114010
      }
-
 
114011
      iprot.readStructEnd();
-
 
114012
      validate();
-
 
114013
    }
-
 
114014
 
-
 
114015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
114016
      oprot.writeStructBegin(STRUCT_DESC);
-
 
114017
 
-
 
114018
      if (this.isSetSuccess()) {
-
 
114019
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
114020
        oprot.writeI64(this.success);
-
 
114021
        oprot.writeFieldEnd();
-
 
114022
      }
-
 
114023
      oprot.writeFieldStop();
-
 
114024
      oprot.writeStructEnd();
-
 
114025
    }
-
 
114026
 
-
 
114027
    @Override
-
 
114028
    public String toString() {
-
 
114029
      StringBuilder sb = new StringBuilder("getCountForMarketplaceHistory_result(");
-
 
114030
      boolean first = true;
-
 
114031
 
-
 
114032
      sb.append("success:");
-
 
114033
      sb.append(this.success);
-
 
114034
      first = false;
-
 
114035
      sb.append(")");
-
 
114036
      return sb.toString();
-
 
114037
    }
-
 
114038
 
-
 
114039
    public void validate() throws org.apache.thrift.TException {
-
 
114040
      // check for required fields
-
 
114041
    }
-
 
114042
 
-
 
114043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
114044
      try {
-
 
114045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
114046
      } catch (org.apache.thrift.TException te) {
-
 
114047
        throw new java.io.IOException(te);
-
 
114048
      }
-
 
114049
    }
-
 
114050
 
-
 
114051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
114052
      try {
-
 
114053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
114054
      } catch (org.apache.thrift.TException te) {
-
 
114055
        throw new java.io.IOException(te);
-
 
114056
      }
-
 
114057
    }
-
 
114058
 
-
 
114059
  }
-
 
114060
 
-
 
114061
  public static class getMarketplaceHistoryByDate_args implements org.apache.thrift.TBase<getMarketplaceHistoryByDate_args, getMarketplaceHistoryByDate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
114062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistoryByDate_args");
-
 
114063
 
-
 
114064
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
114065
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
114066
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
114067
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
114068
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
114069
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
114070
 
-
 
114071
    private long source; // required
-
 
114072
    private long startDate; // required
-
 
114073
    private long endDate; // required
-
 
114074
    private long offset; // required
-
 
114075
    private long limit; // required
-
 
114076
    private long itemId; // required
-
 
114077
 
-
 
114078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
114079
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
114080
      SOURCE((short)1, "source"),
-
 
114081
      START_DATE((short)2, "startDate"),
-
 
114082
      END_DATE((short)3, "endDate"),
-
 
114083
      OFFSET((short)4, "offset"),
-
 
114084
      LIMIT((short)5, "limit"),
-
 
114085
      ITEM_ID((short)6, "itemId");
-
 
114086
 
-
 
114087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
114088
 
-
 
114089
      static {
-
 
114090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
114091
          byName.put(field.getFieldName(), field);
-
 
114092
        }
-
 
114093
      }
-
 
114094
 
-
 
114095
      /**
-
 
114096
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
114097
       */
-
 
114098
      public static _Fields findByThriftId(int fieldId) {
-
 
114099
        switch(fieldId) {
-
 
114100
          case 1: // SOURCE
-
 
114101
            return SOURCE;
-
 
114102
          case 2: // START_DATE
-
 
114103
            return START_DATE;
-
 
114104
          case 3: // END_DATE
-
 
114105
            return END_DATE;
-
 
114106
          case 4: // OFFSET
-
 
114107
            return OFFSET;
-
 
114108
          case 5: // LIMIT
-
 
114109
            return LIMIT;
-
 
114110
          case 6: // ITEM_ID
-
 
114111
            return ITEM_ID;
-
 
114112
          default:
-
 
114113
            return null;
-
 
114114
        }
-
 
114115
      }
-
 
114116
 
-
 
114117
      /**
-
 
114118
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
114119
       * if it is not found.
-
 
114120
       */
-
 
114121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
114122
        _Fields fields = findByThriftId(fieldId);
-
 
114123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
114124
        return fields;
-
 
114125
      }
-
 
114126
 
-
 
114127
      /**
-
 
114128
       * Find the _Fields constant that matches name, or null if its not found.
-
 
114129
       */
-
 
114130
      public static _Fields findByName(String name) {
-
 
114131
        return byName.get(name);
-
 
114132
      }
-
 
114133
 
-
 
114134
      private final short _thriftId;
-
 
114135
      private final String _fieldName;
-
 
114136
 
-
 
114137
      _Fields(short thriftId, String fieldName) {
-
 
114138
        _thriftId = thriftId;
-
 
114139
        _fieldName = fieldName;
-
 
114140
      }
-
 
114141
 
-
 
114142
      public short getThriftFieldId() {
-
 
114143
        return _thriftId;
-
 
114144
      }
-
 
114145
 
-
 
114146
      public String getFieldName() {
-
 
114147
        return _fieldName;
-
 
114148
      }
-
 
114149
    }
-
 
114150
 
-
 
114151
    // isset id assignments
-
 
114152
    private static final int __SOURCE_ISSET_ID = 0;
-
 
114153
    private static final int __STARTDATE_ISSET_ID = 1;
-
 
114154
    private static final int __ENDDATE_ISSET_ID = 2;
-
 
114155
    private static final int __OFFSET_ISSET_ID = 3;
-
 
114156
    private static final int __LIMIT_ISSET_ID = 4;
-
 
114157
    private static final int __ITEMID_ISSET_ID = 5;
-
 
114158
    private BitSet __isset_bit_vector = new BitSet(6);
-
 
114159
 
-
 
114160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
114161
    static {
-
 
114162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
114163
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114165
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114166
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114167
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114169
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114171
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114173
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
114175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
114176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistoryByDate_args.class, metaDataMap);
-
 
114177
    }
-
 
114178
 
-
 
114179
    public getMarketplaceHistoryByDate_args() {
-
 
114180
    }
-
 
114181
 
-
 
114182
    public getMarketplaceHistoryByDate_args(
-
 
114183
      long source,
-
 
114184
      long startDate,
-
 
114185
      long endDate,
-
 
114186
      long offset,
-
 
114187
      long limit,
-
 
114188
      long itemId)
-
 
114189
    {
-
 
114190
      this();
-
 
114191
      this.source = source;
-
 
114192
      setSourceIsSet(true);
-
 
114193
      this.startDate = startDate;
-
 
114194
      setStartDateIsSet(true);
-
 
114195
      this.endDate = endDate;
-
 
114196
      setEndDateIsSet(true);
-
 
114197
      this.offset = offset;
-
 
114198
      setOffsetIsSet(true);
-
 
114199
      this.limit = limit;
-
 
114200
      setLimitIsSet(true);
-
 
114201
      this.itemId = itemId;
-
 
114202
      setItemIdIsSet(true);
-
 
114203
    }
-
 
114204
 
-
 
114205
    /**
-
 
114206
     * Performs a deep copy on <i>other</i>.
-
 
114207
     */
-
 
114208
    public getMarketplaceHistoryByDate_args(getMarketplaceHistoryByDate_args other) {
-
 
114209
      __isset_bit_vector.clear();
-
 
114210
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
114211
      this.source = other.source;
-
 
114212
      this.startDate = other.startDate;
-
 
114213
      this.endDate = other.endDate;
-
 
114214
      this.offset = other.offset;
-
 
114215
      this.limit = other.limit;
-
 
114216
      this.itemId = other.itemId;
-
 
114217
    }
-
 
114218
 
-
 
114219
    public getMarketplaceHistoryByDate_args deepCopy() {
-
 
114220
      return new getMarketplaceHistoryByDate_args(this);
-
 
114221
    }
-
 
114222
 
-
 
114223
    @Override
-
 
114224
    public void clear() {
-
 
114225
      setSourceIsSet(false);
-
 
114226
      this.source = 0;
-
 
114227
      setStartDateIsSet(false);
-
 
114228
      this.startDate = 0;
-
 
114229
      setEndDateIsSet(false);
-
 
114230
      this.endDate = 0;
-
 
114231
      setOffsetIsSet(false);
-
 
114232
      this.offset = 0;
-
 
114233
      setLimitIsSet(false);
-
 
114234
      this.limit = 0;
-
 
114235
      setItemIdIsSet(false);
-
 
114236
      this.itemId = 0;
-
 
114237
    }
-
 
114238
 
-
 
114239
    public long getSource() {
-
 
114240
      return this.source;
-
 
114241
    }
-
 
114242
 
-
 
114243
    public void setSource(long source) {
-
 
114244
      this.source = source;
-
 
114245
      setSourceIsSet(true);
-
 
114246
    }
-
 
114247
 
-
 
114248
    public void unsetSource() {
-
 
114249
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
114250
    }
-
 
114251
 
-
 
114252
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
114253
    public boolean isSetSource() {
-
 
114254
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
114255
    }
-
 
114256
 
-
 
114257
    public void setSourceIsSet(boolean value) {
-
 
114258
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
114259
    }
-
 
114260
 
-
 
114261
    public long getStartDate() {
-
 
114262
      return this.startDate;
-
 
114263
    }
-
 
114264
 
-
 
114265
    public void setStartDate(long startDate) {
-
 
114266
      this.startDate = startDate;
-
 
114267
      setStartDateIsSet(true);
-
 
114268
    }
-
 
114269
 
-
 
114270
    public void unsetStartDate() {
-
 
114271
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
114272
    }
-
 
114273
 
-
 
114274
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
114275
    public boolean isSetStartDate() {
-
 
114276
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
114277
    }
-
 
114278
 
-
 
114279
    public void setStartDateIsSet(boolean value) {
-
 
114280
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
114281
    }
-
 
114282
 
-
 
114283
    public long getEndDate() {
-
 
114284
      return this.endDate;
-
 
114285
    }
-
 
114286
 
-
 
114287
    public void setEndDate(long endDate) {
-
 
114288
      this.endDate = endDate;
-
 
114289
      setEndDateIsSet(true);
-
 
114290
    }
-
 
114291
 
-
 
114292
    public void unsetEndDate() {
-
 
114293
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
114294
    }
-
 
114295
 
-
 
114296
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
114297
    public boolean isSetEndDate() {
-
 
114298
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
114299
    }
-
 
114300
 
-
 
114301
    public void setEndDateIsSet(boolean value) {
-
 
114302
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
114303
    }
-
 
114304
 
-
 
114305
    public long getOffset() {
-
 
114306
      return this.offset;
-
 
114307
    }
-
 
114308
 
-
 
114309
    public void setOffset(long offset) {
-
 
114310
      this.offset = offset;
-
 
114311
      setOffsetIsSet(true);
-
 
114312
    }
-
 
114313
 
-
 
114314
    public void unsetOffset() {
-
 
114315
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
114316
    }
-
 
114317
 
-
 
114318
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
114319
    public boolean isSetOffset() {
-
 
114320
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
114321
    }
-
 
114322
 
-
 
114323
    public void setOffsetIsSet(boolean value) {
-
 
114324
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
114325
    }
-
 
114326
 
-
 
114327
    public long getLimit() {
-
 
114328
      return this.limit;
-
 
114329
    }
-
 
114330
 
-
 
114331
    public void setLimit(long limit) {
-
 
114332
      this.limit = limit;
-
 
114333
      setLimitIsSet(true);
-
 
114334
    }
-
 
114335
 
-
 
114336
    public void unsetLimit() {
-
 
114337
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
114338
    }
-
 
114339
 
-
 
114340
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
114341
    public boolean isSetLimit() {
-
 
114342
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
114343
    }
-
 
114344
 
-
 
114345
    public void setLimitIsSet(boolean value) {
-
 
114346
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
114347
    }
-
 
114348
 
-
 
114349
    public long getItemId() {
-
 
114350
      return this.itemId;
-
 
114351
    }
-
 
114352
 
-
 
114353
    public void setItemId(long itemId) {
-
 
114354
      this.itemId = itemId;
-
 
114355
      setItemIdIsSet(true);
-
 
114356
    }
-
 
114357
 
-
 
114358
    public void unsetItemId() {
-
 
114359
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
114360
    }
-
 
114361
 
-
 
114362
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
114363
    public boolean isSetItemId() {
-
 
114364
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
114365
    }
-
 
114366
 
-
 
114367
    public void setItemIdIsSet(boolean value) {
-
 
114368
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
114369
    }
-
 
114370
 
-
 
114371
    public void setFieldValue(_Fields field, Object value) {
-
 
114372
      switch (field) {
-
 
114373
      case SOURCE:
-
 
114374
        if (value == null) {
-
 
114375
          unsetSource();
-
 
114376
        } else {
-
 
114377
          setSource((Long)value);
-
 
114378
        }
-
 
114379
        break;
-
 
114380
 
-
 
114381
      case START_DATE:
-
 
114382
        if (value == null) {
-
 
114383
          unsetStartDate();
-
 
114384
        } else {
-
 
114385
          setStartDate((Long)value);
-
 
114386
        }
-
 
114387
        break;
-
 
114388
 
-
 
114389
      case END_DATE:
-
 
114390
        if (value == null) {
-
 
114391
          unsetEndDate();
-
 
114392
        } else {
-
 
114393
          setEndDate((Long)value);
-
 
114394
        }
-
 
114395
        break;
-
 
114396
 
-
 
114397
      case OFFSET:
-
 
114398
        if (value == null) {
-
 
114399
          unsetOffset();
-
 
114400
        } else {
-
 
114401
          setOffset((Long)value);
-
 
114402
        }
-
 
114403
        break;
-
 
114404
 
-
 
114405
      case LIMIT:
-
 
114406
        if (value == null) {
-
 
114407
          unsetLimit();
-
 
114408
        } else {
-
 
114409
          setLimit((Long)value);
-
 
114410
        }
-
 
114411
        break;
-
 
114412
 
-
 
114413
      case ITEM_ID:
-
 
114414
        if (value == null) {
-
 
114415
          unsetItemId();
-
 
114416
        } else {
-
 
114417
          setItemId((Long)value);
-
 
114418
        }
-
 
114419
        break;
-
 
114420
 
-
 
114421
      }
-
 
114422
    }
-
 
114423
 
-
 
114424
    public Object getFieldValue(_Fields field) {
-
 
114425
      switch (field) {
-
 
114426
      case SOURCE:
-
 
114427
        return Long.valueOf(getSource());
-
 
114428
 
-
 
114429
      case START_DATE:
-
 
114430
        return Long.valueOf(getStartDate());
-
 
114431
 
-
 
114432
      case END_DATE:
-
 
114433
        return Long.valueOf(getEndDate());
-
 
114434
 
-
 
114435
      case OFFSET:
-
 
114436
        return Long.valueOf(getOffset());
-
 
114437
 
-
 
114438
      case LIMIT:
-
 
114439
        return Long.valueOf(getLimit());
-
 
114440
 
-
 
114441
      case ITEM_ID:
-
 
114442
        return Long.valueOf(getItemId());
-
 
114443
 
-
 
114444
      }
-
 
114445
      throw new IllegalStateException();
-
 
114446
    }
-
 
114447
 
-
 
114448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
114449
    public boolean isSet(_Fields field) {
-
 
114450
      if (field == null) {
-
 
114451
        throw new IllegalArgumentException();
-
 
114452
      }
-
 
114453
 
-
 
114454
      switch (field) {
-
 
114455
      case SOURCE:
-
 
114456
        return isSetSource();
-
 
114457
      case START_DATE:
-
 
114458
        return isSetStartDate();
-
 
114459
      case END_DATE:
-
 
114460
        return isSetEndDate();
-
 
114461
      case OFFSET:
-
 
114462
        return isSetOffset();
-
 
114463
      case LIMIT:
-
 
114464
        return isSetLimit();
-
 
114465
      case ITEM_ID:
-
 
114466
        return isSetItemId();
-
 
114467
      }
-
 
114468
      throw new IllegalStateException();
-
 
114469
    }
-
 
114470
 
-
 
114471
    @Override
-
 
114472
    public boolean equals(Object that) {
-
 
114473
      if (that == null)
-
 
114474
        return false;
-
 
114475
      if (that instanceof getMarketplaceHistoryByDate_args)
-
 
114476
        return this.equals((getMarketplaceHistoryByDate_args)that);
-
 
114477
      return false;
-
 
114478
    }
-
 
114479
 
-
 
114480
    public boolean equals(getMarketplaceHistoryByDate_args that) {
-
 
114481
      if (that == null)
-
 
114482
        return false;
-
 
114483
 
-
 
114484
      boolean this_present_source = true;
-
 
114485
      boolean that_present_source = true;
-
 
114486
      if (this_present_source || that_present_source) {
-
 
114487
        if (!(this_present_source && that_present_source))
-
 
114488
          return false;
-
 
114489
        if (this.source != that.source)
-
 
114490
          return false;
-
 
114491
      }
-
 
114492
 
-
 
114493
      boolean this_present_startDate = true;
-
 
114494
      boolean that_present_startDate = true;
-
 
114495
      if (this_present_startDate || that_present_startDate) {
-
 
114496
        if (!(this_present_startDate && that_present_startDate))
-
 
114497
          return false;
-
 
114498
        if (this.startDate != that.startDate)
-
 
114499
          return false;
-
 
114500
      }
-
 
114501
 
-
 
114502
      boolean this_present_endDate = true;
-
 
114503
      boolean that_present_endDate = true;
-
 
114504
      if (this_present_endDate || that_present_endDate) {
-
 
114505
        if (!(this_present_endDate && that_present_endDate))
-
 
114506
          return false;
-
 
114507
        if (this.endDate != that.endDate)
-
 
114508
          return false;
-
 
114509
      }
-
 
114510
 
-
 
114511
      boolean this_present_offset = true;
-
 
114512
      boolean that_present_offset = true;
-
 
114513
      if (this_present_offset || that_present_offset) {
-
 
114514
        if (!(this_present_offset && that_present_offset))
-
 
114515
          return false;
-
 
114516
        if (this.offset != that.offset)
-
 
114517
          return false;
-
 
114518
      }
-
 
114519
 
-
 
114520
      boolean this_present_limit = true;
-
 
114521
      boolean that_present_limit = true;
-
 
114522
      if (this_present_limit || that_present_limit) {
-
 
114523
        if (!(this_present_limit && that_present_limit))
-
 
114524
          return false;
-
 
114525
        if (this.limit != that.limit)
-
 
114526
          return false;
-
 
114527
      }
-
 
114528
 
-
 
114529
      boolean this_present_itemId = true;
-
 
114530
      boolean that_present_itemId = true;
-
 
114531
      if (this_present_itemId || that_present_itemId) {
-
 
114532
        if (!(this_present_itemId && that_present_itemId))
-
 
114533
          return false;
-
 
114534
        if (this.itemId != that.itemId)
-
 
114535
          return false;
-
 
114536
      }
-
 
114537
 
-
 
114538
      return true;
-
 
114539
    }
-
 
114540
 
-
 
114541
    @Override
-
 
114542
    public int hashCode() {
-
 
114543
      return 0;
-
 
114544
    }
-
 
114545
 
-
 
114546
    public int compareTo(getMarketplaceHistoryByDate_args other) {
-
 
114547
      if (!getClass().equals(other.getClass())) {
-
 
114548
        return getClass().getName().compareTo(other.getClass().getName());
-
 
114549
      }
-
 
114550
 
-
 
114551
      int lastComparison = 0;
-
 
114552
      getMarketplaceHistoryByDate_args typedOther = (getMarketplaceHistoryByDate_args)other;
-
 
114553
 
-
 
114554
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
114555
      if (lastComparison != 0) {
-
 
114556
        return lastComparison;
-
 
114557
      }
-
 
114558
      if (isSetSource()) {
-
 
114559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
114560
        if (lastComparison != 0) {
-
 
114561
          return lastComparison;
-
 
114562
        }
-
 
114563
      }
-
 
114564
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
114565
      if (lastComparison != 0) {
-
 
114566
        return lastComparison;
-
 
114567
      }
-
 
114568
      if (isSetStartDate()) {
-
 
114569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
114570
        if (lastComparison != 0) {
-
 
114571
          return lastComparison;
-
 
114572
        }
-
 
114573
      }
-
 
114574
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
114575
      if (lastComparison != 0) {
-
 
114576
        return lastComparison;
-
 
114577
      }
-
 
114578
      if (isSetEndDate()) {
-
 
114579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
114580
        if (lastComparison != 0) {
-
 
114581
          return lastComparison;
-
 
114582
        }
-
 
114583
      }
-
 
114584
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
114585
      if (lastComparison != 0) {
-
 
114586
        return lastComparison;
-
 
114587
      }
-
 
114588
      if (isSetOffset()) {
-
 
114589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
114590
        if (lastComparison != 0) {
-
 
114591
          return lastComparison;
-
 
114592
        }
-
 
114593
      }
-
 
114594
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
114595
      if (lastComparison != 0) {
-
 
114596
        return lastComparison;
-
 
114597
      }
-
 
114598
      if (isSetLimit()) {
-
 
114599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
114600
        if (lastComparison != 0) {
-
 
114601
          return lastComparison;
-
 
114602
        }
-
 
114603
      }
-
 
114604
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
114605
      if (lastComparison != 0) {
-
 
114606
        return lastComparison;
-
 
114607
      }
-
 
114608
      if (isSetItemId()) {
-
 
114609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
114610
        if (lastComparison != 0) {
-
 
114611
          return lastComparison;
-
 
114612
        }
-
 
114613
      }
-
 
114614
      return 0;
-
 
114615
    }
-
 
114616
 
-
 
114617
    public _Fields fieldForId(int fieldId) {
-
 
114618
      return _Fields.findByThriftId(fieldId);
-
 
114619
    }
-
 
114620
 
-
 
114621
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
114622
      org.apache.thrift.protocol.TField field;
-
 
114623
      iprot.readStructBegin();
-
 
114624
      while (true)
-
 
114625
      {
-
 
114626
        field = iprot.readFieldBegin();
-
 
114627
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
114628
          break;
-
 
114629
        }
-
 
114630
        switch (field.id) {
-
 
114631
          case 1: // SOURCE
-
 
114632
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114633
              this.source = iprot.readI64();
-
 
114634
              setSourceIsSet(true);
-
 
114635
            } else { 
-
 
114636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114637
            }
-
 
114638
            break;
-
 
114639
          case 2: // START_DATE
-
 
114640
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114641
              this.startDate = iprot.readI64();
-
 
114642
              setStartDateIsSet(true);
-
 
114643
            } else { 
-
 
114644
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114645
            }
-
 
114646
            break;
-
 
114647
          case 3: // END_DATE
-
 
114648
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114649
              this.endDate = iprot.readI64();
-
 
114650
              setEndDateIsSet(true);
-
 
114651
            } else { 
-
 
114652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114653
            }
-
 
114654
            break;
-
 
114655
          case 4: // OFFSET
-
 
114656
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114657
              this.offset = iprot.readI64();
-
 
114658
              setOffsetIsSet(true);
-
 
114659
            } else { 
-
 
114660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114661
            }
-
 
114662
            break;
-
 
114663
          case 5: // LIMIT
-
 
114664
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114665
              this.limit = iprot.readI64();
-
 
114666
              setLimitIsSet(true);
-
 
114667
            } else { 
-
 
114668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114669
            }
-
 
114670
            break;
-
 
114671
          case 6: // ITEM_ID
-
 
114672
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114673
              this.itemId = iprot.readI64();
-
 
114674
              setItemIdIsSet(true);
-
 
114675
            } else { 
-
 
114676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114677
            }
-
 
114678
            break;
-
 
114679
          default:
-
 
114680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114681
        }
-
 
114682
        iprot.readFieldEnd();
-
 
114683
      }
-
 
114684
      iprot.readStructEnd();
-
 
114685
      validate();
-
 
114686
    }
-
 
114687
 
-
 
114688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
114689
      validate();
-
 
114690
 
-
 
114691
      oprot.writeStructBegin(STRUCT_DESC);
-
 
114692
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
114693
      oprot.writeI64(this.source);
-
 
114694
      oprot.writeFieldEnd();
-
 
114695
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
114696
      oprot.writeI64(this.startDate);
-
 
114697
      oprot.writeFieldEnd();
-
 
114698
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
114699
      oprot.writeI64(this.endDate);
-
 
114700
      oprot.writeFieldEnd();
-
 
114701
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
114702
      oprot.writeI64(this.offset);
-
 
114703
      oprot.writeFieldEnd();
-
 
114704
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
114705
      oprot.writeI64(this.limit);
-
 
114706
      oprot.writeFieldEnd();
-
 
114707
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
114708
      oprot.writeI64(this.itemId);
-
 
114709
      oprot.writeFieldEnd();
-
 
114710
      oprot.writeFieldStop();
-
 
114711
      oprot.writeStructEnd();
-
 
114712
    }
-
 
114713
 
-
 
114714
    @Override
-
 
114715
    public String toString() {
-
 
114716
      StringBuilder sb = new StringBuilder("getMarketplaceHistoryByDate_args(");
-
 
114717
      boolean first = true;
-
 
114718
 
-
 
114719
      sb.append("source:");
-
 
114720
      sb.append(this.source);
-
 
114721
      first = false;
-
 
114722
      if (!first) sb.append(", ");
-
 
114723
      sb.append("startDate:");
-
 
114724
      sb.append(this.startDate);
-
 
114725
      first = false;
-
 
114726
      if (!first) sb.append(", ");
-
 
114727
      sb.append("endDate:");
-
 
114728
      sb.append(this.endDate);
-
 
114729
      first = false;
-
 
114730
      if (!first) sb.append(", ");
-
 
114731
      sb.append("offset:");
-
 
114732
      sb.append(this.offset);
-
 
114733
      first = false;
-
 
114734
      if (!first) sb.append(", ");
-
 
114735
      sb.append("limit:");
-
 
114736
      sb.append(this.limit);
-
 
114737
      first = false;
-
 
114738
      if (!first) sb.append(", ");
-
 
114739
      sb.append("itemId:");
-
 
114740
      sb.append(this.itemId);
-
 
114741
      first = false;
-
 
114742
      sb.append(")");
-
 
114743
      return sb.toString();
-
 
114744
    }
-
 
114745
 
-
 
114746
    public void validate() throws org.apache.thrift.TException {
-
 
114747
      // check for required fields
-
 
114748
    }
-
 
114749
 
-
 
114750
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
114751
      try {
-
 
114752
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
114753
      } catch (org.apache.thrift.TException te) {
-
 
114754
        throw new java.io.IOException(te);
-
 
114755
      }
-
 
114756
    }
-
 
114757
 
-
 
114758
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
114759
      try {
-
 
114760
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
114761
        __isset_bit_vector = new BitSet(1);
-
 
114762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
114763
      } catch (org.apache.thrift.TException te) {
-
 
114764
        throw new java.io.IOException(te);
-
 
114765
      }
-
 
114766
    }
-
 
114767
 
-
 
114768
  }
-
 
114769
 
-
 
114770
  public static class getMarketplaceHistoryByDate_result implements org.apache.thrift.TBase<getMarketplaceHistoryByDate_result, getMarketplaceHistoryByDate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
114771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistoryByDate_result");
-
 
114772
 
-
 
114773
    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);
-
 
114774
 
-
 
114775
    private List<MarketplaceHistory> success; // required
-
 
114776
 
-
 
114777
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
114778
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
114779
      SUCCESS((short)0, "success");
-
 
114780
 
-
 
114781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
114782
 
-
 
114783
      static {
-
 
114784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
114785
          byName.put(field.getFieldName(), field);
-
 
114786
        }
-
 
114787
      }
-
 
114788
 
-
 
114789
      /**
-
 
114790
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
114791
       */
-
 
114792
      public static _Fields findByThriftId(int fieldId) {
-
 
114793
        switch(fieldId) {
-
 
114794
          case 0: // SUCCESS
-
 
114795
            return SUCCESS;
-
 
114796
          default:
-
 
114797
            return null;
-
 
114798
        }
-
 
114799
      }
-
 
114800
 
-
 
114801
      /**
-
 
114802
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
114803
       * if it is not found.
-
 
114804
       */
-
 
114805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
114806
        _Fields fields = findByThriftId(fieldId);
-
 
114807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
114808
        return fields;
-
 
114809
      }
-
 
114810
 
-
 
114811
      /**
-
 
114812
       * Find the _Fields constant that matches name, or null if its not found.
-
 
114813
       */
-
 
114814
      public static _Fields findByName(String name) {
-
 
114815
        return byName.get(name);
-
 
114816
      }
-
 
114817
 
-
 
114818
      private final short _thriftId;
-
 
114819
      private final String _fieldName;
-
 
114820
 
-
 
114821
      _Fields(short thriftId, String fieldName) {
-
 
114822
        _thriftId = thriftId;
-
 
114823
        _fieldName = fieldName;
-
 
114824
      }
-
 
114825
 
-
 
114826
      public short getThriftFieldId() {
-
 
114827
        return _thriftId;
-
 
114828
      }
-
 
114829
 
-
 
114830
      public String getFieldName() {
-
 
114831
        return _fieldName;
-
 
114832
      }
-
 
114833
    }
-
 
114834
 
-
 
114835
    // isset id assignments
-
 
114836
 
-
 
114837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
114838
    static {
-
 
114839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
114840
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114841
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
114842
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceHistory.class))));
-
 
114843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
114844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistoryByDate_result.class, metaDataMap);
-
 
114845
    }
-
 
114846
 
-
 
114847
    public getMarketplaceHistoryByDate_result() {
-
 
114848
    }
-
 
114849
 
-
 
114850
    public getMarketplaceHistoryByDate_result(
-
 
114851
      List<MarketplaceHistory> success)
-
 
114852
    {
-
 
114853
      this();
-
 
114854
      this.success = success;
-
 
114855
    }
-
 
114856
 
-
 
114857
    /**
-
 
114858
     * Performs a deep copy on <i>other</i>.
-
 
114859
     */
-
 
114860
    public getMarketplaceHistoryByDate_result(getMarketplaceHistoryByDate_result other) {
-
 
114861
      if (other.isSetSuccess()) {
-
 
114862
        List<MarketplaceHistory> __this__success = new ArrayList<MarketplaceHistory>();
-
 
114863
        for (MarketplaceHistory other_element : other.success) {
-
 
114864
          __this__success.add(new MarketplaceHistory(other_element));
-
 
114865
        }
-
 
114866
        this.success = __this__success;
-
 
114867
      }
-
 
114868
    }
-
 
114869
 
-
 
114870
    public getMarketplaceHistoryByDate_result deepCopy() {
-
 
114871
      return new getMarketplaceHistoryByDate_result(this);
-
 
114872
    }
-
 
114873
 
-
 
114874
    @Override
-
 
114875
    public void clear() {
-
 
114876
      this.success = null;
-
 
114877
    }
-
 
114878
 
-
 
114879
    public int getSuccessSize() {
-
 
114880
      return (this.success == null) ? 0 : this.success.size();
-
 
114881
    }
-
 
114882
 
-
 
114883
    public java.util.Iterator<MarketplaceHistory> getSuccessIterator() {
-
 
114884
      return (this.success == null) ? null : this.success.iterator();
-
 
114885
    }
-
 
114886
 
-
 
114887
    public void addToSuccess(MarketplaceHistory elem) {
-
 
114888
      if (this.success == null) {
-
 
114889
        this.success = new ArrayList<MarketplaceHistory>();
-
 
114890
      }
-
 
114891
      this.success.add(elem);
-
 
114892
    }
-
 
114893
 
-
 
114894
    public List<MarketplaceHistory> getSuccess() {
-
 
114895
      return this.success;
-
 
114896
    }
-
 
114897
 
-
 
114898
    public void setSuccess(List<MarketplaceHistory> success) {
-
 
114899
      this.success = success;
-
 
114900
    }
-
 
114901
 
-
 
114902
    public void unsetSuccess() {
-
 
114903
      this.success = null;
-
 
114904
    }
-
 
114905
 
-
 
114906
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
114907
    public boolean isSetSuccess() {
-
 
114908
      return this.success != null;
-
 
114909
    }
-
 
114910
 
-
 
114911
    public void setSuccessIsSet(boolean value) {
-
 
114912
      if (!value) {
-
 
114913
        this.success = null;
-
 
114914
      }
-
 
114915
    }
-
 
114916
 
-
 
114917
    public void setFieldValue(_Fields field, Object value) {
-
 
114918
      switch (field) {
-
 
114919
      case SUCCESS:
-
 
114920
        if (value == null) {
-
 
114921
          unsetSuccess();
-
 
114922
        } else {
-
 
114923
          setSuccess((List<MarketplaceHistory>)value);
-
 
114924
        }
-
 
114925
        break;
-
 
114926
 
-
 
114927
      }
-
 
114928
    }
-
 
114929
 
-
 
114930
    public Object getFieldValue(_Fields field) {
-
 
114931
      switch (field) {
-
 
114932
      case SUCCESS:
-
 
114933
        return getSuccess();
-
 
114934
 
-
 
114935
      }
-
 
114936
      throw new IllegalStateException();
-
 
114937
    }
-
 
114938
 
-
 
114939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
114940
    public boolean isSet(_Fields field) {
-
 
114941
      if (field == null) {
-
 
114942
        throw new IllegalArgumentException();
-
 
114943
      }
-
 
114944
 
-
 
114945
      switch (field) {
-
 
114946
      case SUCCESS:
-
 
114947
        return isSetSuccess();
-
 
114948
      }
-
 
114949
      throw new IllegalStateException();
-
 
114950
    }
-
 
114951
 
-
 
114952
    @Override
-
 
114953
    public boolean equals(Object that) {
-
 
114954
      if (that == null)
-
 
114955
        return false;
-
 
114956
      if (that instanceof getMarketplaceHistoryByDate_result)
-
 
114957
        return this.equals((getMarketplaceHistoryByDate_result)that);
-
 
114958
      return false;
-
 
114959
    }
-
 
114960
 
-
 
114961
    public boolean equals(getMarketplaceHistoryByDate_result that) {
-
 
114962
      if (that == null)
-
 
114963
        return false;
-
 
114964
 
-
 
114965
      boolean this_present_success = true && this.isSetSuccess();
-
 
114966
      boolean that_present_success = true && that.isSetSuccess();
-
 
114967
      if (this_present_success || that_present_success) {
-
 
114968
        if (!(this_present_success && that_present_success))
-
 
114969
          return false;
-
 
114970
        if (!this.success.equals(that.success))
-
 
114971
          return false;
-
 
114972
      }
-
 
114973
 
-
 
114974
      return true;
-
 
114975
    }
-
 
114976
 
-
 
114977
    @Override
-
 
114978
    public int hashCode() {
-
 
114979
      return 0;
-
 
114980
    }
-
 
114981
 
-
 
114982
    public int compareTo(getMarketplaceHistoryByDate_result other) {
-
 
114983
      if (!getClass().equals(other.getClass())) {
-
 
114984
        return getClass().getName().compareTo(other.getClass().getName());
-
 
114985
      }
-
 
114986
 
-
 
114987
      int lastComparison = 0;
-
 
114988
      getMarketplaceHistoryByDate_result typedOther = (getMarketplaceHistoryByDate_result)other;
-
 
114989
 
-
 
114990
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
114991
      if (lastComparison != 0) {
-
 
114992
        return lastComparison;
-
 
114993
      }
-
 
114994
      if (isSetSuccess()) {
-
 
114995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
114996
        if (lastComparison != 0) {
-
 
114997
          return lastComparison;
-
 
114998
        }
-
 
114999
      }
-
 
115000
      return 0;
-
 
115001
    }
-
 
115002
 
-
 
115003
    public _Fields fieldForId(int fieldId) {
-
 
115004
      return _Fields.findByThriftId(fieldId);
-
 
115005
    }
-
 
115006
 
-
 
115007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
115008
      org.apache.thrift.protocol.TField field;
-
 
115009
      iprot.readStructBegin();
-
 
115010
      while (true)
-
 
115011
      {
-
 
115012
        field = iprot.readFieldBegin();
-
 
115013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
115014
          break;
-
 
115015
        }
-
 
115016
        switch (field.id) {
-
 
115017
          case 0: // SUCCESS
-
 
115018
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
115019
              {
-
 
115020
                org.apache.thrift.protocol.TList _list365 = iprot.readListBegin();
-
 
115021
                this.success = new ArrayList<MarketplaceHistory>(_list365.size);
-
 
115022
                for (int _i366 = 0; _i366 < _list365.size; ++_i366)
-
 
115023
                {
-
 
115024
                  MarketplaceHistory _elem367; // required
-
 
115025
                  _elem367 = new MarketplaceHistory();
-
 
115026
                  _elem367.read(iprot);
-
 
115027
                  this.success.add(_elem367);
-
 
115028
                }
-
 
115029
                iprot.readListEnd();
-
 
115030
              }
-
 
115031
            } else { 
-
 
115032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115033
            }
-
 
115034
            break;
-
 
115035
          default:
-
 
115036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115037
        }
-
 
115038
        iprot.readFieldEnd();
-
 
115039
      }
-
 
115040
      iprot.readStructEnd();
-
 
115041
      validate();
-
 
115042
    }
-
 
115043
 
-
 
115044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
115045
      oprot.writeStructBegin(STRUCT_DESC);
-
 
115046
 
-
 
115047
      if (this.isSetSuccess()) {
-
 
115048
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
115049
        {
-
 
115050
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
115051
          for (MarketplaceHistory _iter368 : this.success)
-
 
115052
          {
-
 
115053
            _iter368.write(oprot);
-
 
115054
          }
-
 
115055
          oprot.writeListEnd();
-
 
115056
        }
-
 
115057
        oprot.writeFieldEnd();
-
 
115058
      }
-
 
115059
      oprot.writeFieldStop();
-
 
115060
      oprot.writeStructEnd();
-
 
115061
    }
-
 
115062
 
-
 
115063
    @Override
-
 
115064
    public String toString() {
-
 
115065
      StringBuilder sb = new StringBuilder("getMarketplaceHistoryByDate_result(");
-
 
115066
      boolean first = true;
-
 
115067
 
-
 
115068
      sb.append("success:");
-
 
115069
      if (this.success == null) {
-
 
115070
        sb.append("null");
112309
      } else {
115071
      } else {
112310
        sb.append(this.success);
115072
        sb.append(this.success);
112311
      }
115073
      }
112312
      first = false;
115074
      first = false;
112313
      sb.append(")");
115075
      sb.append(")");