Subversion Repositories SmartDukaan

Rev

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

Rev 21858 Rev 22719
Line 626... Line 626...
626
 
626
 
627
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
627
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
628
 
628
 
629
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
629
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
630
 
630
 
-
 
631
    public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException;
-
 
632
 
631
  }
633
  }
632
 
634
 
633
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
635
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
634
 
636
 
635
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
637
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 1036... Line 1038...
1036
 
1038
 
1037
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1039
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1038
 
1040
 
1039
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1041
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1040
 
1042
 
-
 
1043
    public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException;
-
 
1044
 
1041
  }
1045
  }
1042
 
1046
 
1043
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1047
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1044
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1048
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1045
      public Factory() {}
1049
      public Factory() {}
Line 5858... Line 5862...
5858
        throw result.cex;
5862
        throw result.cex;
5859
      }
5863
      }
5860
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHsnCodesByCategory failed: unknown result");
5864
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHsnCodesByCategory failed: unknown result");
5861
    }
5865
    }
5862
 
5866
 
-
 
5867
    public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException
-
 
5868
    {
-
 
5869
      send_getAllFofoDeals(itemIds, tagIds);
-
 
5870
      return recv_getAllFofoDeals();
-
 
5871
    }
-
 
5872
 
-
 
5873
    public void send_getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException
-
 
5874
    {
-
 
5875
      getAllFofoDeals_args args = new getAllFofoDeals_args();
-
 
5876
      args.setItemIds(itemIds);
-
 
5877
      args.setTagIds(tagIds);
-
 
5878
      sendBase("getAllFofoDeals", args);
-
 
5879
    }
-
 
5880
 
-
 
5881
    public Map<Long,Double> recv_getAllFofoDeals() throws org.apache.thrift.TException
-
 
5882
    {
-
 
5883
      getAllFofoDeals_result result = new getAllFofoDeals_result();
-
 
5884
      receiveBase(result, "getAllFofoDeals");
-
 
5885
      if (result.isSetSuccess()) {
-
 
5886
        return result.success;
-
 
5887
      }
-
 
5888
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFofoDeals failed: unknown result");
-
 
5889
    }
-
 
5890
 
5863
  }
5891
  }
5864
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5892
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5865
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5893
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5866
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5894
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5867
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5895
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12522... Line 12550...
12522
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12550
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12523
        return (new Client(prot)).recv_getHsnCodesByCategory();
12551
        return (new Client(prot)).recv_getHsnCodesByCategory();
12524
      }
12552
      }
12525
    }
12553
    }
12526
 
12554
 
-
 
12555
    public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException {
-
 
12556
      checkReady();
-
 
12557
      getAllFofoDeals_call method_call = new getAllFofoDeals_call(itemIds, tagIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
12558
      this.___currentMethod = method_call;
-
 
12559
      ___manager.call(method_call);
-
 
12560
    }
-
 
12561
 
-
 
12562
    public static class getAllFofoDeals_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12563
      private List<Long> itemIds;
-
 
12564
      private List<Long> tagIds;
-
 
12565
      public getAllFofoDeals_call(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<getAllFofoDeals_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 {
-
 
12566
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12567
        this.itemIds = itemIds;
-
 
12568
        this.tagIds = tagIds;
-
 
12569
      }
-
 
12570
 
-
 
12571
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12572
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFofoDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12573
        getAllFofoDeals_args args = new getAllFofoDeals_args();
-
 
12574
        args.setItemIds(itemIds);
-
 
12575
        args.setTagIds(tagIds);
-
 
12576
        args.write(prot);
-
 
12577
        prot.writeMessageEnd();
-
 
12578
      }
-
 
12579
 
-
 
12580
      public Map<Long,Double> getResult() throws org.apache.thrift.TException {
-
 
12581
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12582
          throw new IllegalStateException("Method call not finished!");
-
 
12583
        }
-
 
12584
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12585
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12586
        return (new Client(prot)).recv_getAllFofoDeals();
-
 
12587
      }
-
 
12588
    }
-
 
12589
 
12527
  }
12590
  }
12528
 
12591
 
12529
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12592
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12530
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12593
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12531
    public Processor(I iface) {
12594
    public Processor(I iface) {
Line 12738... Line 12801...
12738
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12801
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12739
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12802
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12740
      processMap.put("getGstRatesByState", new getGstRatesByState());
12803
      processMap.put("getGstRatesByState", new getGstRatesByState());
12741
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12804
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12742
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
12805
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
-
 
12806
      processMap.put("getAllFofoDeals", new getAllFofoDeals());
12743
      return processMap;
12807
      return processMap;
12744
    }
12808
    }
12745
 
12809
 
12746
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12810
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12747
      public addItem() {
12811
      public addItem() {
Line 16264... Line 16328...
16264
        }
16328
        }
16265
        return result;
16329
        return result;
16266
      }
16330
      }
16267
    }
16331
    }
16268
 
16332
 
-
 
16333
    private static class getAllFofoDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFofoDeals_args> {
-
 
16334
      public getAllFofoDeals() {
-
 
16335
        super("getAllFofoDeals");
-
 
16336
      }
-
 
16337
 
-
 
16338
      protected getAllFofoDeals_args getEmptyArgsInstance() {
-
 
16339
        return new getAllFofoDeals_args();
-
 
16340
      }
-
 
16341
 
-
 
16342
      protected getAllFofoDeals_result getResult(I iface, getAllFofoDeals_args args) throws org.apache.thrift.TException {
-
 
16343
        getAllFofoDeals_result result = new getAllFofoDeals_result();
-
 
16344
        result.success = iface.getAllFofoDeals(args.itemIds, args.tagIds);
-
 
16345
        return result;
-
 
16346
      }
-
 
16347
    }
-
 
16348
 
16269
  }
16349
  }
16270
 
16350
 
16271
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
16351
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
16272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
16352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
16273
 
16353
 
Line 39114... Line 39194...
39114
      }
39194
      }
39115
    }
39195
    }
39116
 
39196
 
39117
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39197
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39118
      try {
39198
      try {
39119
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
39120
        __isset_bit_vector = new BitSet(1);
-
 
39121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39122
      } catch (org.apache.thrift.TException te) {
39200
      } catch (org.apache.thrift.TException te) {
39123
        throw new java.io.IOException(te);
39201
        throw new java.io.IOException(te);
39124
      }
39202
      }
39125
    }
39203
    }
Line 39609... Line 39687...
39609
      }
39687
      }
39610
    }
39688
    }
39611
 
39689
 
39612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39690
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39613
      try {
39691
      try {
39614
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
39615
        __isset_bit_vector = new BitSet(1);
-
 
39616
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39617
      } catch (org.apache.thrift.TException te) {
39693
      } catch (org.apache.thrift.TException te) {
39618
        throw new java.io.IOException(te);
39694
        throw new java.io.IOException(te);
39619
      }
39695
      }
39620
    }
39696
    }
Line 146562... Line 146638...
146562
      }
146638
      }
146563
      first = false;
146639
      first = false;
146564
      sb.append(")");
146640
      sb.append(")");
146565
      return sb.toString();
146641
      return sb.toString();
146566
    }
146642
    }
-
 
146643
 
-
 
146644
    public void validate() throws org.apache.thrift.TException {
-
 
146645
      // check for required fields
-
 
146646
    }
-
 
146647
 
-
 
146648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
146649
      try {
-
 
146650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
146651
      } catch (org.apache.thrift.TException te) {
-
 
146652
        throw new java.io.IOException(te);
-
 
146653
      }
-
 
146654
    }
-
 
146655
 
-
 
146656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
146657
      try {
-
 
146658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
146659
      } catch (org.apache.thrift.TException te) {
-
 
146660
        throw new java.io.IOException(te);
-
 
146661
      }
-
 
146662
    }
-
 
146663
 
-
 
146664
  }
-
 
146665
 
-
 
146666
  public static class getAllFofoDeals_args implements org.apache.thrift.TBase<getAllFofoDeals_args, getAllFofoDeals_args._Fields>, java.io.Serializable, Cloneable   {
-
 
146667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFofoDeals_args");
-
 
146668
 
-
 
146669
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)-1);
-
 
146670
    private static final org.apache.thrift.protocol.TField TAG_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("tagIds", org.apache.thrift.protocol.TType.LIST, (short)-2);
-
 
146671
 
-
 
146672
    private List<Long> itemIds; // required
-
 
146673
    private List<Long> tagIds; // required
-
 
146674
 
-
 
146675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
146676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
146677
      ITEM_IDS((short)-1, "itemIds"),
-
 
146678
      TAG_IDS((short)-2, "tagIds");
-
 
146679
 
-
 
146680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
146681
 
-
 
146682
      static {
-
 
146683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
146684
          byName.put(field.getFieldName(), field);
-
 
146685
        }
-
 
146686
      }
-
 
146687
 
-
 
146688
      /**
-
 
146689
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
146690
       */
-
 
146691
      public static _Fields findByThriftId(int fieldId) {
-
 
146692
        switch(fieldId) {
-
 
146693
          case -1: // ITEM_IDS
-
 
146694
            return ITEM_IDS;
-
 
146695
          case -2: // TAG_IDS
-
 
146696
            return TAG_IDS;
-
 
146697
          default:
-
 
146698
            return null;
-
 
146699
        }
-
 
146700
      }
-
 
146701
 
-
 
146702
      /**
-
 
146703
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
146704
       * if it is not found.
-
 
146705
       */
-
 
146706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
146707
        _Fields fields = findByThriftId(fieldId);
-
 
146708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
146709
        return fields;
-
 
146710
      }
-
 
146711
 
-
 
146712
      /**
-
 
146713
       * Find the _Fields constant that matches name, or null if its not found.
-
 
146714
       */
-
 
146715
      public static _Fields findByName(String name) {
-
 
146716
        return byName.get(name);
-
 
146717
      }
-
 
146718
 
-
 
146719
      private final short _thriftId;
-
 
146720
      private final String _fieldName;
-
 
146721
 
-
 
146722
      _Fields(short thriftId, String fieldName) {
-
 
146723
        _thriftId = thriftId;
-
 
146724
        _fieldName = fieldName;
-
 
146725
      }
-
 
146726
 
-
 
146727
      public short getThriftFieldId() {
-
 
146728
        return _thriftId;
-
 
146729
      }
-
 
146730
 
-
 
146731
      public String getFieldName() {
-
 
146732
        return _fieldName;
-
 
146733
      }
-
 
146734
    }
-
 
146735
 
-
 
146736
    // isset id assignments
-
 
146737
 
-
 
146738
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
146739
    static {
-
 
146740
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
146741
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146742
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
146743
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
146744
      tmpMap.put(_Fields.TAG_IDS, new org.apache.thrift.meta_data.FieldMetaData("tagIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146745
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
146746
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
146747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
146748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFofoDeals_args.class, metaDataMap);
-
 
146749
    }
-
 
146750
 
-
 
146751
    public getAllFofoDeals_args() {
-
 
146752
    }
-
 
146753
 
-
 
146754
    public getAllFofoDeals_args(
-
 
146755
      List<Long> itemIds,
-
 
146756
      List<Long> tagIds)
-
 
146757
    {
-
 
146758
      this();
-
 
146759
      this.itemIds = itemIds;
-
 
146760
      this.tagIds = tagIds;
-
 
146761
    }
-
 
146762
 
-
 
146763
    /**
-
 
146764
     * Performs a deep copy on <i>other</i>.
-
 
146765
     */
-
 
146766
    public getAllFofoDeals_args(getAllFofoDeals_args other) {
-
 
146767
      if (other.isSetItemIds()) {
-
 
146768
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
146769
        for (Long other_element : other.itemIds) {
-
 
146770
          __this__itemIds.add(other_element);
-
 
146771
        }
-
 
146772
        this.itemIds = __this__itemIds;
-
 
146773
      }
-
 
146774
      if (other.isSetTagIds()) {
-
 
146775
        List<Long> __this__tagIds = new ArrayList<Long>();
-
 
146776
        for (Long other_element : other.tagIds) {
-
 
146777
          __this__tagIds.add(other_element);
-
 
146778
        }
-
 
146779
        this.tagIds = __this__tagIds;
-
 
146780
      }
-
 
146781
    }
-
 
146782
 
-
 
146783
    public getAllFofoDeals_args deepCopy() {
-
 
146784
      return new getAllFofoDeals_args(this);
-
 
146785
    }
-
 
146786
 
-
 
146787
    @Override
-
 
146788
    public void clear() {
-
 
146789
      this.itemIds = null;
-
 
146790
      this.tagIds = null;
-
 
146791
    }
-
 
146792
 
-
 
146793
    public int getItemIdsSize() {
-
 
146794
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
146795
    }
-
 
146796
 
-
 
146797
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
146798
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
146799
    }
-
 
146800
 
-
 
146801
    public void addToItemIds(long elem) {
-
 
146802
      if (this.itemIds == null) {
-
 
146803
        this.itemIds = new ArrayList<Long>();
-
 
146804
      }
-
 
146805
      this.itemIds.add(elem);
-
 
146806
    }
-
 
146807
 
-
 
146808
    public List<Long> getItemIds() {
-
 
146809
      return this.itemIds;
-
 
146810
    }
-
 
146811
 
-
 
146812
    public void setItemIds(List<Long> itemIds) {
-
 
146813
      this.itemIds = itemIds;
-
 
146814
    }
-
 
146815
 
-
 
146816
    public void unsetItemIds() {
-
 
146817
      this.itemIds = null;
-
 
146818
    }
-
 
146819
 
-
 
146820
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
146821
    public boolean isSetItemIds() {
-
 
146822
      return this.itemIds != null;
-
 
146823
    }
-
 
146824
 
-
 
146825
    public void setItemIdsIsSet(boolean value) {
-
 
146826
      if (!value) {
-
 
146827
        this.itemIds = null;
-
 
146828
      }
-
 
146829
    }
-
 
146830
 
-
 
146831
    public int getTagIdsSize() {
-
 
146832
      return (this.tagIds == null) ? 0 : this.tagIds.size();
-
 
146833
    }
-
 
146834
 
-
 
146835
    public java.util.Iterator<Long> getTagIdsIterator() {
-
 
146836
      return (this.tagIds == null) ? null : this.tagIds.iterator();
-
 
146837
    }
-
 
146838
 
-
 
146839
    public void addToTagIds(long elem) {
-
 
146840
      if (this.tagIds == null) {
-
 
146841
        this.tagIds = new ArrayList<Long>();
-
 
146842
      }
-
 
146843
      this.tagIds.add(elem);
-
 
146844
    }
-
 
146845
 
-
 
146846
    public List<Long> getTagIds() {
-
 
146847
      return this.tagIds;
-
 
146848
    }
-
 
146849
 
-
 
146850
    public void setTagIds(List<Long> tagIds) {
-
 
146851
      this.tagIds = tagIds;
-
 
146852
    }
-
 
146853
 
-
 
146854
    public void unsetTagIds() {
-
 
146855
      this.tagIds = null;
-
 
146856
    }
-
 
146857
 
-
 
146858
    /** Returns true if field tagIds is set (has been assigned a value) and false otherwise */
-
 
146859
    public boolean isSetTagIds() {
-
 
146860
      return this.tagIds != null;
-
 
146861
    }
-
 
146862
 
-
 
146863
    public void setTagIdsIsSet(boolean value) {
-
 
146864
      if (!value) {
-
 
146865
        this.tagIds = null;
-
 
146866
      }
-
 
146867
    }
-
 
146868
 
-
 
146869
    public void setFieldValue(_Fields field, Object value) {
-
 
146870
      switch (field) {
-
 
146871
      case ITEM_IDS:
-
 
146872
        if (value == null) {
-
 
146873
          unsetItemIds();
-
 
146874
        } else {
-
 
146875
          setItemIds((List<Long>)value);
-
 
146876
        }
-
 
146877
        break;
-
 
146878
 
-
 
146879
      case TAG_IDS:
-
 
146880
        if (value == null) {
-
 
146881
          unsetTagIds();
-
 
146882
        } else {
-
 
146883
          setTagIds((List<Long>)value);
-
 
146884
        }
-
 
146885
        break;
-
 
146886
 
-
 
146887
      }
-
 
146888
    }
-
 
146889
 
-
 
146890
    public Object getFieldValue(_Fields field) {
-
 
146891
      switch (field) {
-
 
146892
      case ITEM_IDS:
-
 
146893
        return getItemIds();
-
 
146894
 
-
 
146895
      case TAG_IDS:
-
 
146896
        return getTagIds();
-
 
146897
 
-
 
146898
      }
-
 
146899
      throw new IllegalStateException();
-
 
146900
    }
-
 
146901
 
-
 
146902
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
146903
    public boolean isSet(_Fields field) {
-
 
146904
      if (field == null) {
-
 
146905
        throw new IllegalArgumentException();
-
 
146906
      }
-
 
146907
 
-
 
146908
      switch (field) {
-
 
146909
      case ITEM_IDS:
-
 
146910
        return isSetItemIds();
-
 
146911
      case TAG_IDS:
-
 
146912
        return isSetTagIds();
-
 
146913
      }
-
 
146914
      throw new IllegalStateException();
-
 
146915
    }
-
 
146916
 
-
 
146917
    @Override
-
 
146918
    public boolean equals(Object that) {
-
 
146919
      if (that == null)
-
 
146920
        return false;
-
 
146921
      if (that instanceof getAllFofoDeals_args)
-
 
146922
        return this.equals((getAllFofoDeals_args)that);
-
 
146923
      return false;
-
 
146924
    }
-
 
146925
 
-
 
146926
    public boolean equals(getAllFofoDeals_args that) {
-
 
146927
      if (that == null)
-
 
146928
        return false;
-
 
146929
 
-
 
146930
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
146931
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
146932
      if (this_present_itemIds || that_present_itemIds) {
-
 
146933
        if (!(this_present_itemIds && that_present_itemIds))
-
 
146934
          return false;
-
 
146935
        if (!this.itemIds.equals(that.itemIds))
-
 
146936
          return false;
-
 
146937
      }
-
 
146938
 
-
 
146939
      boolean this_present_tagIds = true && this.isSetTagIds();
-
 
146940
      boolean that_present_tagIds = true && that.isSetTagIds();
-
 
146941
      if (this_present_tagIds || that_present_tagIds) {
-
 
146942
        if (!(this_present_tagIds && that_present_tagIds))
-
 
146943
          return false;
-
 
146944
        if (!this.tagIds.equals(that.tagIds))
-
 
146945
          return false;
-
 
146946
      }
-
 
146947
 
-
 
146948
      return true;
-
 
146949
    }
-
 
146950
 
-
 
146951
    @Override
-
 
146952
    public int hashCode() {
-
 
146953
      return 0;
-
 
146954
    }
-
 
146955
 
-
 
146956
    public int compareTo(getAllFofoDeals_args other) {
-
 
146957
      if (!getClass().equals(other.getClass())) {
-
 
146958
        return getClass().getName().compareTo(other.getClass().getName());
-
 
146959
      }
-
 
146960
 
-
 
146961
      int lastComparison = 0;
-
 
146962
      getAllFofoDeals_args typedOther = (getAllFofoDeals_args)other;
-
 
146963
 
-
 
146964
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
146965
      if (lastComparison != 0) {
-
 
146966
        return lastComparison;
-
 
146967
      }
-
 
146968
      if (isSetItemIds()) {
-
 
146969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
146970
        if (lastComparison != 0) {
-
 
146971
          return lastComparison;
-
 
146972
        }
-
 
146973
      }
-
 
146974
      lastComparison = Boolean.valueOf(isSetTagIds()).compareTo(typedOther.isSetTagIds());
-
 
146975
      if (lastComparison != 0) {
-
 
146976
        return lastComparison;
-
 
146977
      }
-
 
146978
      if (isSetTagIds()) {
-
 
146979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagIds, typedOther.tagIds);
-
 
146980
        if (lastComparison != 0) {
-
 
146981
          return lastComparison;
-
 
146982
        }
-
 
146983
      }
-
 
146984
      return 0;
-
 
146985
    }
-
 
146986
 
-
 
146987
    public _Fields fieldForId(int fieldId) {
-
 
146988
      return _Fields.findByThriftId(fieldId);
-
 
146989
    }
-
 
146990
 
-
 
146991
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
146992
      org.apache.thrift.protocol.TField field;
-
 
146993
      iprot.readStructBegin();
-
 
146994
      while (true)
-
 
146995
      {
-
 
146996
        field = iprot.readFieldBegin();
-
 
146997
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
146998
          break;
-
 
146999
        }
-
 
147000
        switch (field.id) {
-
 
147001
          case -1: // ITEM_IDS
-
 
147002
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
147003
              {
-
 
147004
                org.apache.thrift.protocol.TList _list567 = iprot.readListBegin();
-
 
147005
                this.itemIds = new ArrayList<Long>(_list567.size);
-
 
147006
                for (int _i568 = 0; _i568 < _list567.size; ++_i568)
-
 
147007
                {
-
 
147008
                  long _elem569; // required
-
 
147009
                  _elem569 = iprot.readI64();
-
 
147010
                  this.itemIds.add(_elem569);
-
 
147011
                }
-
 
147012
                iprot.readListEnd();
-
 
147013
              }
-
 
147014
            } else { 
-
 
147015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147016
            }
-
 
147017
            break;
-
 
147018
          case -2: // TAG_IDS
-
 
147019
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
147020
              {
-
 
147021
                org.apache.thrift.protocol.TList _list570 = iprot.readListBegin();
-
 
147022
                this.tagIds = new ArrayList<Long>(_list570.size);
-
 
147023
                for (int _i571 = 0; _i571 < _list570.size; ++_i571)
-
 
147024
                {
-
 
147025
                  long _elem572; // required
-
 
147026
                  _elem572 = iprot.readI64();
-
 
147027
                  this.tagIds.add(_elem572);
-
 
147028
                }
-
 
147029
                iprot.readListEnd();
-
 
147030
              }
-
 
147031
            } else { 
-
 
147032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147033
            }
-
 
147034
            break;
-
 
147035
          default:
-
 
147036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147037
        }
-
 
147038
        iprot.readFieldEnd();
-
 
147039
      }
-
 
147040
      iprot.readStructEnd();
-
 
147041
      validate();
-
 
147042
    }
-
 
147043
 
-
 
147044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147045
      validate();
-
 
147046
 
-
 
147047
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147048
      if (this.tagIds != null) {
-
 
147049
        oprot.writeFieldBegin(TAG_IDS_FIELD_DESC);
-
 
147050
        {
-
 
147051
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.tagIds.size()));
-
 
147052
          for (long _iter573 : this.tagIds)
-
 
147053
          {
-
 
147054
            oprot.writeI64(_iter573);
-
 
147055
          }
-
 
147056
          oprot.writeListEnd();
-
 
147057
        }
-
 
147058
        oprot.writeFieldEnd();
-
 
147059
      }
-
 
147060
      if (this.itemIds != null) {
-
 
147061
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
147062
        {
-
 
147063
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
147064
          for (long _iter574 : this.itemIds)
-
 
147065
          {
-
 
147066
            oprot.writeI64(_iter574);
-
 
147067
          }
-
 
147068
          oprot.writeListEnd();
-
 
147069
        }
-
 
147070
        oprot.writeFieldEnd();
-
 
147071
      }
-
 
147072
      oprot.writeFieldStop();
-
 
147073
      oprot.writeStructEnd();
-
 
147074
    }
-
 
147075
 
-
 
147076
    @Override
-
 
147077
    public String toString() {
-
 
147078
      StringBuilder sb = new StringBuilder("getAllFofoDeals_args(");
-
 
147079
      boolean first = true;
-
 
147080
 
-
 
147081
      sb.append("itemIds:");
-
 
147082
      if (this.itemIds == null) {
-
 
147083
        sb.append("null");
-
 
147084
      } else {
-
 
147085
        sb.append(this.itemIds);
-
 
147086
      }
-
 
147087
      first = false;
-
 
147088
      if (!first) sb.append(", ");
-
 
147089
      sb.append("tagIds:");
-
 
147090
      if (this.tagIds == null) {
-
 
147091
        sb.append("null");
-
 
147092
      } else {
-
 
147093
        sb.append(this.tagIds);
-
 
147094
      }
-
 
147095
      first = false;
-
 
147096
      sb.append(")");
-
 
147097
      return sb.toString();
-
 
147098
    }
-
 
147099
 
-
 
147100
    public void validate() throws org.apache.thrift.TException {
-
 
147101
      // check for required fields
-
 
147102
    }
-
 
147103
 
-
 
147104
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
147105
      try {
-
 
147106
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
147107
      } catch (org.apache.thrift.TException te) {
-
 
147108
        throw new java.io.IOException(te);
-
 
147109
      }
-
 
147110
    }
-
 
147111
 
-
 
147112
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
147113
      try {
-
 
147114
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
147115
      } catch (org.apache.thrift.TException te) {
-
 
147116
        throw new java.io.IOException(te);
-
 
147117
      }
-
 
147118
    }
-
 
147119
 
-
 
147120
  }
-
 
147121
 
-
 
147122
  public static class getAllFofoDeals_result implements org.apache.thrift.TBase<getAllFofoDeals_result, getAllFofoDeals_result._Fields>, java.io.Serializable, Cloneable   {
-
 
147123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFofoDeals_result");
-
 
147124
 
-
 
147125
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
147126
 
-
 
147127
    private Map<Long,Double> success; // required
-
 
147128
 
-
 
147129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
147130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
147131
      SUCCESS((short)0, "success");
-
 
147132
 
-
 
147133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
147134
 
-
 
147135
      static {
-
 
147136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
147137
          byName.put(field.getFieldName(), field);
-
 
147138
        }
-
 
147139
      }
-
 
147140
 
-
 
147141
      /**
-
 
147142
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
147143
       */
-
 
147144
      public static _Fields findByThriftId(int fieldId) {
-
 
147145
        switch(fieldId) {
-
 
147146
          case 0: // SUCCESS
-
 
147147
            return SUCCESS;
-
 
147148
          default:
-
 
147149
            return null;
-
 
147150
        }
-
 
147151
      }
-
 
147152
 
-
 
147153
      /**
-
 
147154
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
147155
       * if it is not found.
-
 
147156
       */
-
 
147157
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
147158
        _Fields fields = findByThriftId(fieldId);
-
 
147159
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
147160
        return fields;
-
 
147161
      }
-
 
147162
 
-
 
147163
      /**
-
 
147164
       * Find the _Fields constant that matches name, or null if its not found.
-
 
147165
       */
-
 
147166
      public static _Fields findByName(String name) {
-
 
147167
        return byName.get(name);
-
 
147168
      }
-
 
147169
 
-
 
147170
      private final short _thriftId;
-
 
147171
      private final String _fieldName;
-
 
147172
 
-
 
147173
      _Fields(short thriftId, String fieldName) {
-
 
147174
        _thriftId = thriftId;
-
 
147175
        _fieldName = fieldName;
-
 
147176
      }
-
 
147177
 
-
 
147178
      public short getThriftFieldId() {
-
 
147179
        return _thriftId;
-
 
147180
      }
-
 
147181
 
-
 
147182
      public String getFieldName() {
-
 
147183
        return _fieldName;
-
 
147184
      }
-
 
147185
    }
-
 
147186
 
-
 
147187
    // isset id assignments
-
 
147188
 
-
 
147189
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
147190
    static {
-
 
147191
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
147192
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
147193
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
147194
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
147195
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
-
 
147196
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
147197
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFofoDeals_result.class, metaDataMap);
-
 
147198
    }
-
 
147199
 
-
 
147200
    public getAllFofoDeals_result() {
-
 
147201
    }
-
 
147202
 
-
 
147203
    public getAllFofoDeals_result(
-
 
147204
      Map<Long,Double> success)
-
 
147205
    {
-
 
147206
      this();
-
 
147207
      this.success = success;
-
 
147208
    }
-
 
147209
 
-
 
147210
    /**
-
 
147211
     * Performs a deep copy on <i>other</i>.
-
 
147212
     */
-
 
147213
    public getAllFofoDeals_result(getAllFofoDeals_result other) {
-
 
147214
      if (other.isSetSuccess()) {
-
 
147215
        Map<Long,Double> __this__success = new HashMap<Long,Double>();
-
 
147216
        for (Map.Entry<Long, Double> other_element : other.success.entrySet()) {
-
 
147217
 
-
 
147218
          Long other_element_key = other_element.getKey();
-
 
147219
          Double other_element_value = other_element.getValue();
-
 
147220
 
-
 
147221
          Long __this__success_copy_key = other_element_key;
-
 
147222
 
-
 
147223
          Double __this__success_copy_value = other_element_value;
-
 
147224
 
-
 
147225
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
147226
        }
-
 
147227
        this.success = __this__success;
-
 
147228
      }
-
 
147229
    }
-
 
147230
 
-
 
147231
    public getAllFofoDeals_result deepCopy() {
-
 
147232
      return new getAllFofoDeals_result(this);
-
 
147233
    }
-
 
147234
 
-
 
147235
    @Override
-
 
147236
    public void clear() {
-
 
147237
      this.success = null;
-
 
147238
    }
-
 
147239
 
-
 
147240
    public int getSuccessSize() {
-
 
147241
      return (this.success == null) ? 0 : this.success.size();
-
 
147242
    }
-
 
147243
 
-
 
147244
    public void putToSuccess(long key, double val) {
-
 
147245
      if (this.success == null) {
-
 
147246
        this.success = new HashMap<Long,Double>();
-
 
147247
      }
-
 
147248
      this.success.put(key, val);
-
 
147249
    }
-
 
147250
 
-
 
147251
    public Map<Long,Double> getSuccess() {
-
 
147252
      return this.success;
-
 
147253
    }
-
 
147254
 
-
 
147255
    public void setSuccess(Map<Long,Double> success) {
-
 
147256
      this.success = success;
-
 
147257
    }
-
 
147258
 
-
 
147259
    public void unsetSuccess() {
-
 
147260
      this.success = null;
-
 
147261
    }
-
 
147262
 
-
 
147263
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
147264
    public boolean isSetSuccess() {
-
 
147265
      return this.success != null;
-
 
147266
    }
-
 
147267
 
-
 
147268
    public void setSuccessIsSet(boolean value) {
-
 
147269
      if (!value) {
-
 
147270
        this.success = null;
-
 
147271
      }
-
 
147272
    }
-
 
147273
 
-
 
147274
    public void setFieldValue(_Fields field, Object value) {
-
 
147275
      switch (field) {
-
 
147276
      case SUCCESS:
-
 
147277
        if (value == null) {
-
 
147278
          unsetSuccess();
-
 
147279
        } else {
-
 
147280
          setSuccess((Map<Long,Double>)value);
-
 
147281
        }
-
 
147282
        break;
-
 
147283
 
-
 
147284
      }
-
 
147285
    }
-
 
147286
 
-
 
147287
    public Object getFieldValue(_Fields field) {
-
 
147288
      switch (field) {
-
 
147289
      case SUCCESS:
-
 
147290
        return getSuccess();
-
 
147291
 
-
 
147292
      }
-
 
147293
      throw new IllegalStateException();
-
 
147294
    }
-
 
147295
 
-
 
147296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
147297
    public boolean isSet(_Fields field) {
-
 
147298
      if (field == null) {
-
 
147299
        throw new IllegalArgumentException();
-
 
147300
      }
-
 
147301
 
-
 
147302
      switch (field) {
-
 
147303
      case SUCCESS:
-
 
147304
        return isSetSuccess();
-
 
147305
      }
-
 
147306
      throw new IllegalStateException();
-
 
147307
    }
-
 
147308
 
-
 
147309
    @Override
-
 
147310
    public boolean equals(Object that) {
-
 
147311
      if (that == null)
-
 
147312
        return false;
-
 
147313
      if (that instanceof getAllFofoDeals_result)
-
 
147314
        return this.equals((getAllFofoDeals_result)that);
-
 
147315
      return false;
-
 
147316
    }
-
 
147317
 
-
 
147318
    public boolean equals(getAllFofoDeals_result that) {
-
 
147319
      if (that == null)
-
 
147320
        return false;
-
 
147321
 
-
 
147322
      boolean this_present_success = true && this.isSetSuccess();
-
 
147323
      boolean that_present_success = true && that.isSetSuccess();
-
 
147324
      if (this_present_success || that_present_success) {
-
 
147325
        if (!(this_present_success && that_present_success))
-
 
147326
          return false;
-
 
147327
        if (!this.success.equals(that.success))
-
 
147328
          return false;
-
 
147329
      }
-
 
147330
 
-
 
147331
      return true;
-
 
147332
    }
-
 
147333
 
-
 
147334
    @Override
-
 
147335
    public int hashCode() {
-
 
147336
      return 0;
-
 
147337
    }
-
 
147338
 
-
 
147339
    public int compareTo(getAllFofoDeals_result other) {
-
 
147340
      if (!getClass().equals(other.getClass())) {
-
 
147341
        return getClass().getName().compareTo(other.getClass().getName());
-
 
147342
      }
-
 
147343
 
-
 
147344
      int lastComparison = 0;
-
 
147345
      getAllFofoDeals_result typedOther = (getAllFofoDeals_result)other;
-
 
147346
 
-
 
147347
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
147348
      if (lastComparison != 0) {
-
 
147349
        return lastComparison;
-
 
147350
      }
-
 
147351
      if (isSetSuccess()) {
-
 
147352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
147353
        if (lastComparison != 0) {
-
 
147354
          return lastComparison;
-
 
147355
        }
-
 
147356
      }
-
 
147357
      return 0;
-
 
147358
    }
-
 
147359
 
-
 
147360
    public _Fields fieldForId(int fieldId) {
-
 
147361
      return _Fields.findByThriftId(fieldId);
-
 
147362
    }
-
 
147363
 
-
 
147364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
147365
      org.apache.thrift.protocol.TField field;
-
 
147366
      iprot.readStructBegin();
-
 
147367
      while (true)
-
 
147368
      {
-
 
147369
        field = iprot.readFieldBegin();
-
 
147370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
147371
          break;
-
 
147372
        }
-
 
147373
        switch (field.id) {
-
 
147374
          case 0: // SUCCESS
-
 
147375
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
147376
              {
-
 
147377
                org.apache.thrift.protocol.TMap _map575 = iprot.readMapBegin();
-
 
147378
                this.success = new HashMap<Long,Double>(2*_map575.size);
-
 
147379
                for (int _i576 = 0; _i576 < _map575.size; ++_i576)
-
 
147380
                {
-
 
147381
                  long _key577; // required
-
 
147382
                  double _val578; // required
-
 
147383
                  _key577 = iprot.readI64();
-
 
147384
                  _val578 = iprot.readDouble();
-
 
147385
                  this.success.put(_key577, _val578);
-
 
147386
                }
-
 
147387
                iprot.readMapEnd();
-
 
147388
              }
-
 
147389
            } else { 
-
 
147390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147391
            }
-
 
147392
            break;
-
 
147393
          default:
-
 
147394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147395
        }
-
 
147396
        iprot.readFieldEnd();
-
 
147397
      }
-
 
147398
      iprot.readStructEnd();
-
 
147399
      validate();
-
 
147400
    }
-
 
147401
 
-
 
147402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147403
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147404
 
-
 
147405
      if (this.isSetSuccess()) {
-
 
147406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
147407
        {
-
 
147408
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
-
 
147409
          for (Map.Entry<Long, Double> _iter579 : this.success.entrySet())
-
 
147410
          {
-
 
147411
            oprot.writeI64(_iter579.getKey());
-
 
147412
            oprot.writeDouble(_iter579.getValue());
-
 
147413
          }
-
 
147414
          oprot.writeMapEnd();
-
 
147415
        }
-
 
147416
        oprot.writeFieldEnd();
-
 
147417
      }
-
 
147418
      oprot.writeFieldStop();
-
 
147419
      oprot.writeStructEnd();
-
 
147420
    }
-
 
147421
 
-
 
147422
    @Override
-
 
147423
    public String toString() {
-
 
147424
      StringBuilder sb = new StringBuilder("getAllFofoDeals_result(");
-
 
147425
      boolean first = true;
-
 
147426
 
-
 
147427
      sb.append("success:");
-
 
147428
      if (this.success == null) {
-
 
147429
        sb.append("null");
-
 
147430
      } else {
-
 
147431
        sb.append(this.success);
-
 
147432
      }
-
 
147433
      first = false;
-
 
147434
      sb.append(")");
-
 
147435
      return sb.toString();
-
 
147436
    }
146567
 
147437
 
146568
    public void validate() throws org.apache.thrift.TException {
147438
    public void validate() throws org.apache.thrift.TException {
146569
      // check for required fields
147439
      // check for required fields
146570
    }
147440
    }
146571
 
147441