Subversion Repositories SmartDukaan

Rev

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

Rev 9776 Rev 9779
Line 498... Line 498...
498
 
498
 
499
    public MarketplaceItems getMarketplacedetailsForItem(long itemId, long sourceId) throws org.apache.thrift.TException;
499
    public MarketplaceItems getMarketplacedetailsForItem(long itemId, long sourceId) throws org.apache.thrift.TException;
500
 
500
 
501
    public boolean updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem) throws org.apache.thrift.TException;
501
    public boolean updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem) throws org.apache.thrift.TException;
502
 
502
 
-
 
503
    public MarketplacePercentage getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException;
-
 
504
 
503
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException;
505
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException;
504
 
506
 
505
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp) throws org.apache.thrift.TException;
507
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp) throws org.apache.thrift.TException;
506
 
508
 
507
  }
509
  }
Line 784... Line 786...
784
 
786
 
785
    public void getMarketplacedetailsForItem(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplacedetailsForItem_call> resultHandler) throws org.apache.thrift.TException;
787
    public void getMarketplacedetailsForItem(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplacedetailsForItem_call> resultHandler) throws org.apache.thrift.TException;
786
 
788
 
787
    public void updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketplaceAttributesForItem_call> resultHandler) throws org.apache.thrift.TException;
789
    public void updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketplaceAttributesForItem_call> resultHandler) throws org.apache.thrift.TException;
788
 
790
 
-
 
791
    public void getCostingForMarketplace(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingForMarketplace_call> resultHandler) throws org.apache.thrift.TException;
-
 
792
 
789
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException;
793
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException;
790
 
794
 
791
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
795
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
792
 
796
 
793
  }
797
  }
Line 4112... Line 4116...
4112
        return result.success;
4116
        return result.success;
4113
      }
4117
      }
4114
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
4118
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
4115
    }
4119
    }
4116
 
4120
 
-
 
4121
    public MarketplacePercentage getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException
-
 
4122
    {
-
 
4123
      send_getCostingForMarketplace(source, item_id);
-
 
4124
      return recv_getCostingForMarketplace();
-
 
4125
    }
-
 
4126
 
-
 
4127
    public void send_getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException
-
 
4128
    {
-
 
4129
      getCostingForMarketplace_args args = new getCostingForMarketplace_args();
-
 
4130
      args.setSource(source);
-
 
4131
      args.setItem_id(item_id);
-
 
4132
      sendBase("getCostingForMarketplace", args);
-
 
4133
    }
-
 
4134
 
-
 
4135
    public MarketplacePercentage recv_getCostingForMarketplace() throws org.apache.thrift.TException
-
 
4136
    {
-
 
4137
      getCostingForMarketplace_result result = new getCostingForMarketplace_result();
-
 
4138
      receiveBase(result, "getCostingForMarketplace");
-
 
4139
      if (result.isSetSuccess()) {
-
 
4140
        return result.success;
-
 
4141
      }
-
 
4142
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
-
 
4143
    }
-
 
4144
 
4117
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException
4145
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException
4118
    {
4146
    {
4119
      send_getMarketPlaceItemsForPriceUpdate(source);
4147
      send_getMarketPlaceItemsForPriceUpdate(source);
4120
      return recv_getMarketPlaceItemsForPriceUpdate();
4148
      return recv_getMarketPlaceItemsForPriceUpdate();
4121
    }
4149
    }
Line 8739... Line 8767...
8739
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8767
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8740
        return (new Client(prot)).recv_updateMarketplaceAttributesForItem();
8768
        return (new Client(prot)).recv_updateMarketplaceAttributesForItem();
8741
      }
8769
      }
8742
    }
8770
    }
8743
 
8771
 
-
 
8772
    public void getCostingForMarketplace(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getCostingForMarketplace_call> resultHandler) throws org.apache.thrift.TException {
-
 
8773
      checkReady();
-
 
8774
      getCostingForMarketplace_call method_call = new getCostingForMarketplace_call(source, item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
8775
      this.___currentMethod = method_call;
-
 
8776
      ___manager.call(method_call);
-
 
8777
    }
-
 
8778
 
-
 
8779
    public static class getCostingForMarketplace_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8780
      private long source;
-
 
8781
      private long item_id;
-
 
8782
      public getCostingForMarketplace_call(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getCostingForMarketplace_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 {
-
 
8783
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8784
        this.source = source;
-
 
8785
        this.item_id = item_id;
-
 
8786
      }
-
 
8787
 
-
 
8788
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8789
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingForMarketplace", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8790
        getCostingForMarketplace_args args = new getCostingForMarketplace_args();
-
 
8791
        args.setSource(source);
-
 
8792
        args.setItem_id(item_id);
-
 
8793
        args.write(prot);
-
 
8794
        prot.writeMessageEnd();
-
 
8795
      }
-
 
8796
 
-
 
8797
      public MarketplacePercentage getResult() throws org.apache.thrift.TException {
-
 
8798
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8799
          throw new IllegalStateException("Method call not finished!");
-
 
8800
        }
-
 
8801
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8802
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8803
        return (new Client(prot)).recv_getCostingForMarketplace();
-
 
8804
      }
-
 
8805
    }
-
 
8806
 
8744
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException {
8807
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException {
8745
      checkReady();
8808
      checkReady();
8746
      getMarketPlaceItemsForPriceUpdate_call method_call = new getMarketPlaceItemsForPriceUpdate_call(source, resultHandler, this, ___protocolFactory, ___transport);
8809
      getMarketPlaceItemsForPriceUpdate_call method_call = new getMarketPlaceItemsForPriceUpdate_call(source, resultHandler, this, ___protocolFactory, ___transport);
8747
      this.___currentMethod = method_call;
8810
      this.___currentMethod = method_call;
8748
      ___manager.call(method_call);
8811
      ___manager.call(method_call);
Line 8958... Line 9021...
8958
      processMap.put("updateProductFeedSubmit", new updateProductFeedSubmit());
9021
      processMap.put("updateProductFeedSubmit", new updateProductFeedSubmit());
8959
      processMap.put("deleteProductFeedSubmit", new deleteProductFeedSubmit());
9022
      processMap.put("deleteProductFeedSubmit", new deleteProductFeedSubmit());
8960
      processMap.put("getAllProductFeedSubmit", new getAllProductFeedSubmit());
9023
      processMap.put("getAllProductFeedSubmit", new getAllProductFeedSubmit());
8961
      processMap.put("getMarketplacedetailsForItem", new getMarketplacedetailsForItem());
9024
      processMap.put("getMarketplacedetailsForItem", new getMarketplacedetailsForItem());
8962
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
9025
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
-
 
9026
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
8963
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9027
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
8964
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9028
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
8965
      return processMap;
9029
      return processMap;
8966
    }
9030
    }
8967
 
9031
 
Line 11404... Line 11468...
11404
        result.setSuccessIsSet(true);
11468
        result.setSuccessIsSet(true);
11405
        return result;
11469
        return result;
11406
      }
11470
      }
11407
    }
11471
    }
11408
 
11472
 
-
 
11473
    private static class getCostingForMarketplace<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingForMarketplace_args> {
-
 
11474
      public getCostingForMarketplace() {
-
 
11475
        super("getCostingForMarketplace");
-
 
11476
      }
-
 
11477
 
-
 
11478
      protected getCostingForMarketplace_args getEmptyArgsInstance() {
-
 
11479
        return new getCostingForMarketplace_args();
-
 
11480
      }
-
 
11481
 
-
 
11482
      protected getCostingForMarketplace_result getResult(I iface, getCostingForMarketplace_args args) throws org.apache.thrift.TException {
-
 
11483
        getCostingForMarketplace_result result = new getCostingForMarketplace_result();
-
 
11484
        result.success = iface.getCostingForMarketplace(args.source, args.item_id);
-
 
11485
        return result;
-
 
11486
      }
-
 
11487
    }
-
 
11488
 
11409
    private static class getMarketPlaceItemsForPriceUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketPlaceItemsForPriceUpdate_args> {
11489
    private static class getMarketPlaceItemsForPriceUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketPlaceItemsForPriceUpdate_args> {
11410
      public getMarketPlaceItemsForPriceUpdate() {
11490
      public getMarketPlaceItemsForPriceUpdate() {
11411
        super("getMarketPlaceItemsForPriceUpdate");
11491
        super("getMarketPlaceItemsForPriceUpdate");
11412
      }
11492
      }
11413
 
11493
 
Line 100741... Line 100821...
100741
      first = false;
100821
      first = false;
100742
      sb.append(")");
100822
      sb.append(")");
100743
      return sb.toString();
100823
      return sb.toString();
100744
    }
100824
    }
100745
 
100825
 
-
 
100826
    public void validate() throws org.apache.thrift.TException {
-
 
100827
      // check for required fields
-
 
100828
    }
-
 
100829
 
-
 
100830
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
100831
      try {
-
 
100832
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
100833
      } catch (org.apache.thrift.TException te) {
-
 
100834
        throw new java.io.IOException(te);
-
 
100835
      }
-
 
100836
    }
-
 
100837
 
-
 
100838
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
100839
      try {
-
 
100840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
100841
      } catch (org.apache.thrift.TException te) {
-
 
100842
        throw new java.io.IOException(te);
-
 
100843
      }
-
 
100844
    }
-
 
100845
 
-
 
100846
  }
-
 
100847
 
-
 
100848
  public static class getCostingForMarketplace_args implements org.apache.thrift.TBase<getCostingForMarketplace_args, getCostingForMarketplace_args._Fields>, java.io.Serializable, Cloneable   {
-
 
100849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingForMarketplace_args");
-
 
100850
 
-
 
100851
    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);
-
 
100852
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
100853
 
-
 
100854
    private long source; // required
-
 
100855
    private long item_id; // required
-
 
100856
 
-
 
100857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
100858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
100859
      SOURCE((short)1, "source"),
-
 
100860
      ITEM_ID((short)2, "item_id");
-
 
100861
 
-
 
100862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
100863
 
-
 
100864
      static {
-
 
100865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
100866
          byName.put(field.getFieldName(), field);
-
 
100867
        }
-
 
100868
      }
-
 
100869
 
-
 
100870
      /**
-
 
100871
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
100872
       */
-
 
100873
      public static _Fields findByThriftId(int fieldId) {
-
 
100874
        switch(fieldId) {
-
 
100875
          case 1: // SOURCE
-
 
100876
            return SOURCE;
-
 
100877
          case 2: // ITEM_ID
-
 
100878
            return ITEM_ID;
-
 
100879
          default:
-
 
100880
            return null;
-
 
100881
        }
-
 
100882
      }
-
 
100883
 
-
 
100884
      /**
-
 
100885
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
100886
       * if it is not found.
-
 
100887
       */
-
 
100888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
100889
        _Fields fields = findByThriftId(fieldId);
-
 
100890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
100891
        return fields;
-
 
100892
      }
-
 
100893
 
-
 
100894
      /**
-
 
100895
       * Find the _Fields constant that matches name, or null if its not found.
-
 
100896
       */
-
 
100897
      public static _Fields findByName(String name) {
-
 
100898
        return byName.get(name);
-
 
100899
      }
-
 
100900
 
-
 
100901
      private final short _thriftId;
-
 
100902
      private final String _fieldName;
-
 
100903
 
-
 
100904
      _Fields(short thriftId, String fieldName) {
-
 
100905
        _thriftId = thriftId;
-
 
100906
        _fieldName = fieldName;
-
 
100907
      }
-
 
100908
 
-
 
100909
      public short getThriftFieldId() {
-
 
100910
        return _thriftId;
-
 
100911
      }
-
 
100912
 
-
 
100913
      public String getFieldName() {
-
 
100914
        return _fieldName;
-
 
100915
      }
-
 
100916
    }
-
 
100917
 
-
 
100918
    // isset id assignments
-
 
100919
    private static final int __SOURCE_ISSET_ID = 0;
-
 
100920
    private static final int __ITEM_ID_ISSET_ID = 1;
-
 
100921
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
100922
 
-
 
100923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
100924
    static {
-
 
100925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
100926
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
100927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
100928
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
100929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
100930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
100931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingForMarketplace_args.class, metaDataMap);
-
 
100932
    }
-
 
100933
 
-
 
100934
    public getCostingForMarketplace_args() {
-
 
100935
    }
-
 
100936
 
-
 
100937
    public getCostingForMarketplace_args(
-
 
100938
      long source,
-
 
100939
      long item_id)
-
 
100940
    {
-
 
100941
      this();
-
 
100942
      this.source = source;
-
 
100943
      setSourceIsSet(true);
-
 
100944
      this.item_id = item_id;
-
 
100945
      setItem_idIsSet(true);
-
 
100946
    }
-
 
100947
 
-
 
100948
    /**
-
 
100949
     * Performs a deep copy on <i>other</i>.
-
 
100950
     */
-
 
100951
    public getCostingForMarketplace_args(getCostingForMarketplace_args other) {
-
 
100952
      __isset_bit_vector.clear();
-
 
100953
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
100954
      this.source = other.source;
-
 
100955
      this.item_id = other.item_id;
-
 
100956
    }
-
 
100957
 
-
 
100958
    public getCostingForMarketplace_args deepCopy() {
-
 
100959
      return new getCostingForMarketplace_args(this);
-
 
100960
    }
-
 
100961
 
-
 
100962
    @Override
-
 
100963
    public void clear() {
-
 
100964
      setSourceIsSet(false);
-
 
100965
      this.source = 0;
-
 
100966
      setItem_idIsSet(false);
-
 
100967
      this.item_id = 0;
-
 
100968
    }
-
 
100969
 
-
 
100970
    public long getSource() {
-
 
100971
      return this.source;
-
 
100972
    }
-
 
100973
 
-
 
100974
    public void setSource(long source) {
-
 
100975
      this.source = source;
-
 
100976
      setSourceIsSet(true);
-
 
100977
    }
-
 
100978
 
-
 
100979
    public void unsetSource() {
-
 
100980
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
100981
    }
-
 
100982
 
-
 
100983
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
100984
    public boolean isSetSource() {
-
 
100985
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
100986
    }
-
 
100987
 
-
 
100988
    public void setSourceIsSet(boolean value) {
-
 
100989
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
100990
    }
-
 
100991
 
-
 
100992
    public long getItem_id() {
-
 
100993
      return this.item_id;
-
 
100994
    }
-
 
100995
 
-
 
100996
    public void setItem_id(long item_id) {
-
 
100997
      this.item_id = item_id;
-
 
100998
      setItem_idIsSet(true);
-
 
100999
    }
-
 
101000
 
-
 
101001
    public void unsetItem_id() {
-
 
101002
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
101003
    }
-
 
101004
 
-
 
101005
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
101006
    public boolean isSetItem_id() {
-
 
101007
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
101008
    }
-
 
101009
 
-
 
101010
    public void setItem_idIsSet(boolean value) {
-
 
101011
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
101012
    }
-
 
101013
 
-
 
101014
    public void setFieldValue(_Fields field, Object value) {
-
 
101015
      switch (field) {
-
 
101016
      case SOURCE:
-
 
101017
        if (value == null) {
-
 
101018
          unsetSource();
-
 
101019
        } else {
-
 
101020
          setSource((Long)value);
-
 
101021
        }
-
 
101022
        break;
-
 
101023
 
-
 
101024
      case ITEM_ID:
-
 
101025
        if (value == null) {
-
 
101026
          unsetItem_id();
-
 
101027
        } else {
-
 
101028
          setItem_id((Long)value);
-
 
101029
        }
-
 
101030
        break;
-
 
101031
 
-
 
101032
      }
-
 
101033
    }
-
 
101034
 
-
 
101035
    public Object getFieldValue(_Fields field) {
-
 
101036
      switch (field) {
-
 
101037
      case SOURCE:
-
 
101038
        return Long.valueOf(getSource());
-
 
101039
 
-
 
101040
      case ITEM_ID:
-
 
101041
        return Long.valueOf(getItem_id());
-
 
101042
 
-
 
101043
      }
-
 
101044
      throw new IllegalStateException();
-
 
101045
    }
-
 
101046
 
-
 
101047
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
101048
    public boolean isSet(_Fields field) {
-
 
101049
      if (field == null) {
-
 
101050
        throw new IllegalArgumentException();
-
 
101051
      }
-
 
101052
 
-
 
101053
      switch (field) {
-
 
101054
      case SOURCE:
-
 
101055
        return isSetSource();
-
 
101056
      case ITEM_ID:
-
 
101057
        return isSetItem_id();
-
 
101058
      }
-
 
101059
      throw new IllegalStateException();
-
 
101060
    }
-
 
101061
 
-
 
101062
    @Override
-
 
101063
    public boolean equals(Object that) {
-
 
101064
      if (that == null)
-
 
101065
        return false;
-
 
101066
      if (that instanceof getCostingForMarketplace_args)
-
 
101067
        return this.equals((getCostingForMarketplace_args)that);
-
 
101068
      return false;
-
 
101069
    }
-
 
101070
 
-
 
101071
    public boolean equals(getCostingForMarketplace_args that) {
-
 
101072
      if (that == null)
-
 
101073
        return false;
-
 
101074
 
-
 
101075
      boolean this_present_source = true;
-
 
101076
      boolean that_present_source = true;
-
 
101077
      if (this_present_source || that_present_source) {
-
 
101078
        if (!(this_present_source && that_present_source))
-
 
101079
          return false;
-
 
101080
        if (this.source != that.source)
-
 
101081
          return false;
-
 
101082
      }
-
 
101083
 
-
 
101084
      boolean this_present_item_id = true;
-
 
101085
      boolean that_present_item_id = true;
-
 
101086
      if (this_present_item_id || that_present_item_id) {
-
 
101087
        if (!(this_present_item_id && that_present_item_id))
-
 
101088
          return false;
-
 
101089
        if (this.item_id != that.item_id)
-
 
101090
          return false;
-
 
101091
      }
-
 
101092
 
-
 
101093
      return true;
-
 
101094
    }
-
 
101095
 
-
 
101096
    @Override
-
 
101097
    public int hashCode() {
-
 
101098
      return 0;
-
 
101099
    }
-
 
101100
 
-
 
101101
    public int compareTo(getCostingForMarketplace_args other) {
-
 
101102
      if (!getClass().equals(other.getClass())) {
-
 
101103
        return getClass().getName().compareTo(other.getClass().getName());
-
 
101104
      }
-
 
101105
 
-
 
101106
      int lastComparison = 0;
-
 
101107
      getCostingForMarketplace_args typedOther = (getCostingForMarketplace_args)other;
-
 
101108
 
-
 
101109
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
101110
      if (lastComparison != 0) {
-
 
101111
        return lastComparison;
-
 
101112
      }
-
 
101113
      if (isSetSource()) {
-
 
101114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
101115
        if (lastComparison != 0) {
-
 
101116
          return lastComparison;
-
 
101117
        }
-
 
101118
      }
-
 
101119
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
101120
      if (lastComparison != 0) {
-
 
101121
        return lastComparison;
-
 
101122
      }
-
 
101123
      if (isSetItem_id()) {
-
 
101124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
101125
        if (lastComparison != 0) {
-
 
101126
          return lastComparison;
-
 
101127
        }
-
 
101128
      }
-
 
101129
      return 0;
-
 
101130
    }
-
 
101131
 
-
 
101132
    public _Fields fieldForId(int fieldId) {
-
 
101133
      return _Fields.findByThriftId(fieldId);
-
 
101134
    }
-
 
101135
 
-
 
101136
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
101137
      org.apache.thrift.protocol.TField field;
-
 
101138
      iprot.readStructBegin();
-
 
101139
      while (true)
-
 
101140
      {
-
 
101141
        field = iprot.readFieldBegin();
-
 
101142
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
101143
          break;
-
 
101144
        }
-
 
101145
        switch (field.id) {
-
 
101146
          case 1: // SOURCE
-
 
101147
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
101148
              this.source = iprot.readI64();
-
 
101149
              setSourceIsSet(true);
-
 
101150
            } else { 
-
 
101151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
101152
            }
-
 
101153
            break;
-
 
101154
          case 2: // ITEM_ID
-
 
101155
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
101156
              this.item_id = iprot.readI64();
-
 
101157
              setItem_idIsSet(true);
-
 
101158
            } else { 
-
 
101159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
101160
            }
-
 
101161
            break;
-
 
101162
          default:
-
 
101163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
101164
        }
-
 
101165
        iprot.readFieldEnd();
-
 
101166
      }
-
 
101167
      iprot.readStructEnd();
-
 
101168
      validate();
-
 
101169
    }
-
 
101170
 
-
 
101171
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
101172
      validate();
-
 
101173
 
-
 
101174
      oprot.writeStructBegin(STRUCT_DESC);
-
 
101175
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
101176
      oprot.writeI64(this.source);
-
 
101177
      oprot.writeFieldEnd();
-
 
101178
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
101179
      oprot.writeI64(this.item_id);
-
 
101180
      oprot.writeFieldEnd();
-
 
101181
      oprot.writeFieldStop();
-
 
101182
      oprot.writeStructEnd();
-
 
101183
    }
-
 
101184
 
-
 
101185
    @Override
-
 
101186
    public String toString() {
-
 
101187
      StringBuilder sb = new StringBuilder("getCostingForMarketplace_args(");
-
 
101188
      boolean first = true;
-
 
101189
 
-
 
101190
      sb.append("source:");
-
 
101191
      sb.append(this.source);
-
 
101192
      first = false;
-
 
101193
      if (!first) sb.append(", ");
-
 
101194
      sb.append("item_id:");
-
 
101195
      sb.append(this.item_id);
-
 
101196
      first = false;
-
 
101197
      sb.append(")");
-
 
101198
      return sb.toString();
-
 
101199
    }
-
 
101200
 
-
 
101201
    public void validate() throws org.apache.thrift.TException {
-
 
101202
      // check for required fields
-
 
101203
    }
-
 
101204
 
-
 
101205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
101206
      try {
-
 
101207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
101208
      } catch (org.apache.thrift.TException te) {
-
 
101209
        throw new java.io.IOException(te);
-
 
101210
      }
-
 
101211
    }
-
 
101212
 
-
 
101213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
101214
      try {
-
 
101215
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
101216
        __isset_bit_vector = new BitSet(1);
-
 
101217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
101218
      } catch (org.apache.thrift.TException te) {
-
 
101219
        throw new java.io.IOException(te);
-
 
101220
      }
-
 
101221
    }
-
 
101222
 
-
 
101223
  }
-
 
101224
 
-
 
101225
  public static class getCostingForMarketplace_result implements org.apache.thrift.TBase<getCostingForMarketplace_result, getCostingForMarketplace_result._Fields>, java.io.Serializable, Cloneable   {
-
 
101226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingForMarketplace_result");
-
 
101227
 
-
 
101228
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
101229
 
-
 
101230
    private MarketplacePercentage success; // required
-
 
101231
 
-
 
101232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
101233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
101234
      SUCCESS((short)0, "success");
-
 
101235
 
-
 
101236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
101237
 
-
 
101238
      static {
-
 
101239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
101240
          byName.put(field.getFieldName(), field);
-
 
101241
        }
-
 
101242
      }
-
 
101243
 
-
 
101244
      /**
-
 
101245
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
101246
       */
-
 
101247
      public static _Fields findByThriftId(int fieldId) {
-
 
101248
        switch(fieldId) {
-
 
101249
          case 0: // SUCCESS
-
 
101250
            return SUCCESS;
-
 
101251
          default:
-
 
101252
            return null;
-
 
101253
        }
-
 
101254
      }
-
 
101255
 
-
 
101256
      /**
-
 
101257
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
101258
       * if it is not found.
-
 
101259
       */
-
 
101260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
101261
        _Fields fields = findByThriftId(fieldId);
-
 
101262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
101263
        return fields;
-
 
101264
      }
-
 
101265
 
-
 
101266
      /**
-
 
101267
       * Find the _Fields constant that matches name, or null if its not found.
-
 
101268
       */
-
 
101269
      public static _Fields findByName(String name) {
-
 
101270
        return byName.get(name);
-
 
101271
      }
-
 
101272
 
-
 
101273
      private final short _thriftId;
-
 
101274
      private final String _fieldName;
-
 
101275
 
-
 
101276
      _Fields(short thriftId, String fieldName) {
-
 
101277
        _thriftId = thriftId;
-
 
101278
        _fieldName = fieldName;
-
 
101279
      }
-
 
101280
 
-
 
101281
      public short getThriftFieldId() {
-
 
101282
        return _thriftId;
-
 
101283
      }
-
 
101284
 
-
 
101285
      public String getFieldName() {
-
 
101286
        return _fieldName;
-
 
101287
      }
-
 
101288
    }
-
 
101289
 
-
 
101290
    // isset id assignments
-
 
101291
 
-
 
101292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
101293
    static {
-
 
101294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
101295
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
101296
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplacePercentage.class)));
-
 
101297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
101298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingForMarketplace_result.class, metaDataMap);
-
 
101299
    }
-
 
101300
 
-
 
101301
    public getCostingForMarketplace_result() {
-
 
101302
    }
-
 
101303
 
-
 
101304
    public getCostingForMarketplace_result(
-
 
101305
      MarketplacePercentage success)
-
 
101306
    {
-
 
101307
      this();
-
 
101308
      this.success = success;
-
 
101309
    }
-
 
101310
 
-
 
101311
    /**
-
 
101312
     * Performs a deep copy on <i>other</i>.
-
 
101313
     */
-
 
101314
    public getCostingForMarketplace_result(getCostingForMarketplace_result other) {
-
 
101315
      if (other.isSetSuccess()) {
-
 
101316
        this.success = new MarketplacePercentage(other.success);
-
 
101317
      }
-
 
101318
    }
-
 
101319
 
-
 
101320
    public getCostingForMarketplace_result deepCopy() {
-
 
101321
      return new getCostingForMarketplace_result(this);
-
 
101322
    }
-
 
101323
 
-
 
101324
    @Override
-
 
101325
    public void clear() {
-
 
101326
      this.success = null;
-
 
101327
    }
-
 
101328
 
-
 
101329
    public MarketplacePercentage getSuccess() {
-
 
101330
      return this.success;
-
 
101331
    }
-
 
101332
 
-
 
101333
    public void setSuccess(MarketplacePercentage success) {
-
 
101334
      this.success = success;
-
 
101335
    }
-
 
101336
 
-
 
101337
    public void unsetSuccess() {
-
 
101338
      this.success = null;
-
 
101339
    }
-
 
101340
 
-
 
101341
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
101342
    public boolean isSetSuccess() {
-
 
101343
      return this.success != null;
-
 
101344
    }
-
 
101345
 
-
 
101346
    public void setSuccessIsSet(boolean value) {
-
 
101347
      if (!value) {
-
 
101348
        this.success = null;
-
 
101349
      }
-
 
101350
    }
-
 
101351
 
-
 
101352
    public void setFieldValue(_Fields field, Object value) {
-
 
101353
      switch (field) {
-
 
101354
      case SUCCESS:
-
 
101355
        if (value == null) {
-
 
101356
          unsetSuccess();
-
 
101357
        } else {
-
 
101358
          setSuccess((MarketplacePercentage)value);
-
 
101359
        }
-
 
101360
        break;
-
 
101361
 
-
 
101362
      }
-
 
101363
    }
-
 
101364
 
-
 
101365
    public Object getFieldValue(_Fields field) {
-
 
101366
      switch (field) {
-
 
101367
      case SUCCESS:
-
 
101368
        return getSuccess();
-
 
101369
 
-
 
101370
      }
-
 
101371
      throw new IllegalStateException();
-
 
101372
    }
-
 
101373
 
-
 
101374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
101375
    public boolean isSet(_Fields field) {
-
 
101376
      if (field == null) {
-
 
101377
        throw new IllegalArgumentException();
-
 
101378
      }
-
 
101379
 
-
 
101380
      switch (field) {
-
 
101381
      case SUCCESS:
-
 
101382
        return isSetSuccess();
-
 
101383
      }
-
 
101384
      throw new IllegalStateException();
-
 
101385
    }
-
 
101386
 
-
 
101387
    @Override
-
 
101388
    public boolean equals(Object that) {
-
 
101389
      if (that == null)
-
 
101390
        return false;
-
 
101391
      if (that instanceof getCostingForMarketplace_result)
-
 
101392
        return this.equals((getCostingForMarketplace_result)that);
-
 
101393
      return false;
-
 
101394
    }
-
 
101395
 
-
 
101396
    public boolean equals(getCostingForMarketplace_result that) {
-
 
101397
      if (that == null)
-
 
101398
        return false;
-
 
101399
 
-
 
101400
      boolean this_present_success = true && this.isSetSuccess();
-
 
101401
      boolean that_present_success = true && that.isSetSuccess();
-
 
101402
      if (this_present_success || that_present_success) {
-
 
101403
        if (!(this_present_success && that_present_success))
-
 
101404
          return false;
-
 
101405
        if (!this.success.equals(that.success))
-
 
101406
          return false;
-
 
101407
      }
-
 
101408
 
-
 
101409
      return true;
-
 
101410
    }
-
 
101411
 
-
 
101412
    @Override
-
 
101413
    public int hashCode() {
-
 
101414
      return 0;
-
 
101415
    }
-
 
101416
 
-
 
101417
    public int compareTo(getCostingForMarketplace_result other) {
-
 
101418
      if (!getClass().equals(other.getClass())) {
-
 
101419
        return getClass().getName().compareTo(other.getClass().getName());
-
 
101420
      }
-
 
101421
 
-
 
101422
      int lastComparison = 0;
-
 
101423
      getCostingForMarketplace_result typedOther = (getCostingForMarketplace_result)other;
-
 
101424
 
-
 
101425
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
101426
      if (lastComparison != 0) {
-
 
101427
        return lastComparison;
-
 
101428
      }
-
 
101429
      if (isSetSuccess()) {
-
 
101430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
101431
        if (lastComparison != 0) {
-
 
101432
          return lastComparison;
-
 
101433
        }
-
 
101434
      }
-
 
101435
      return 0;
-
 
101436
    }
-
 
101437
 
-
 
101438
    public _Fields fieldForId(int fieldId) {
-
 
101439
      return _Fields.findByThriftId(fieldId);
-
 
101440
    }
-
 
101441
 
-
 
101442
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
101443
      org.apache.thrift.protocol.TField field;
-
 
101444
      iprot.readStructBegin();
-
 
101445
      while (true)
-
 
101446
      {
-
 
101447
        field = iprot.readFieldBegin();
-
 
101448
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
101449
          break;
-
 
101450
        }
-
 
101451
        switch (field.id) {
-
 
101452
          case 0: // SUCCESS
-
 
101453
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
101454
              this.success = new MarketplacePercentage();
-
 
101455
              this.success.read(iprot);
-
 
101456
            } else { 
-
 
101457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
101458
            }
-
 
101459
            break;
-
 
101460
          default:
-
 
101461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
101462
        }
-
 
101463
        iprot.readFieldEnd();
-
 
101464
      }
-
 
101465
      iprot.readStructEnd();
-
 
101466
      validate();
-
 
101467
    }
-
 
101468
 
-
 
101469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
101470
      oprot.writeStructBegin(STRUCT_DESC);
-
 
101471
 
-
 
101472
      if (this.isSetSuccess()) {
-
 
101473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
101474
        this.success.write(oprot);
-
 
101475
        oprot.writeFieldEnd();
-
 
101476
      }
-
 
101477
      oprot.writeFieldStop();
-
 
101478
      oprot.writeStructEnd();
-
 
101479
    }
-
 
101480
 
-
 
101481
    @Override
-
 
101482
    public String toString() {
-
 
101483
      StringBuilder sb = new StringBuilder("getCostingForMarketplace_result(");
-
 
101484
      boolean first = true;
-
 
101485
 
-
 
101486
      sb.append("success:");
-
 
101487
      if (this.success == null) {
-
 
101488
        sb.append("null");
-
 
101489
      } else {
-
 
101490
        sb.append(this.success);
-
 
101491
      }
-
 
101492
      first = false;
-
 
101493
      sb.append(")");
-
 
101494
      return sb.toString();
-
 
101495
    }
-
 
101496
 
100746
    public void validate() throws org.apache.thrift.TException {
101497
    public void validate() throws org.apache.thrift.TException {
100747
      // check for required fields
101498
      // check for required fields
100748
    }
101499
    }
100749
 
101500
 
100750
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
101501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {