Subversion Repositories SmartDukaan

Rev

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

Rev 12523 Rev 12620
Line 576... Line 576...
576
 
576
 
577
    public boolean markPartiallyActive(long itemId, long categoryId) throws org.apache.thrift.TException;
577
    public boolean markPartiallyActive(long itemId, long categoryId) throws org.apache.thrift.TException;
578
 
578
 
579
    public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException;
579
    public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException;
580
 
580
 
-
 
581
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;
-
 
582
 
581
  }
583
  }
582
 
584
 
583
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
585
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
584
 
586
 
585
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
587
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 936... Line 938...
936
 
938
 
937
    public void markPartiallyActive(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPartiallyActive_call> resultHandler) throws org.apache.thrift.TException;
939
    public void markPartiallyActive(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPartiallyActive_call> resultHandler) throws org.apache.thrift.TException;
938
 
940
 
939
    public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException;
941
    public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException;
940
 
942
 
-
 
943
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
944
 
941
  }
945
  }
942
 
946
 
943
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
947
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
944
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
948
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
945
      public Factory() {}
949
      public Factory() {}
Line 5168... Line 5172...
5168
        return result.success;
5172
        return result.success;
5169
      }
5173
      }
5170
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
5174
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
5171
    }
5175
    }
5172
 
5176
 
-
 
5177
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException
-
 
5178
    {
-
 
5179
      send_getExAffiliateItemInfo();
-
 
5180
      return recv_getExAffiliateItemInfo();
-
 
5181
    }
-
 
5182
 
-
 
5183
    public void send_getExAffiliateItemInfo() throws org.apache.thrift.TException
-
 
5184
    {
-
 
5185
      getExAffiliateItemInfo_args args = new getExAffiliateItemInfo_args();
-
 
5186
      sendBase("getExAffiliateItemInfo", args);
-
 
5187
    }
-
 
5188
 
-
 
5189
    public Map<Long,ExclusiveAffiliateItemInfo> recv_getExAffiliateItemInfo() throws org.apache.thrift.TException
-
 
5190
    {
-
 
5191
      getExAffiliateItemInfo_result result = new getExAffiliateItemInfo_result();
-
 
5192
      receiveBase(result, "getExAffiliateItemInfo");
-
 
5193
      if (result.isSetSuccess()) {
-
 
5194
        return result.success;
-
 
5195
      }
-
 
5196
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
-
 
5197
    }
-
 
5198
 
5173
  }
5199
  }
5174
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5200
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5175
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5201
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5176
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5202
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5177
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5203
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11041... Line 11067...
11041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11067
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11042
        return (new Client(prot)).recv_updateItemStateVat();
11068
        return (new Client(prot)).recv_updateItemStateVat();
11043
      }
11069
      }
11044
    }
11070
    }
11045
 
11071
 
-
 
11072
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
11073
      checkReady();
-
 
11074
      getExAffiliateItemInfo_call method_call = new getExAffiliateItemInfo_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11075
      this.___currentMethod = method_call;
-
 
11076
      ___manager.call(method_call);
-
 
11077
    }
-
 
11078
 
-
 
11079
    public static class getExAffiliateItemInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11080
      public getExAffiliateItemInfo_call(org.apache.thrift.async.AsyncMethodCallback<getExAffiliateItemInfo_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 {
-
 
11081
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11082
      }
-
 
11083
 
-
 
11084
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11085
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getExAffiliateItemInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11086
        getExAffiliateItemInfo_args args = new getExAffiliateItemInfo_args();
-
 
11087
        args.write(prot);
-
 
11088
        prot.writeMessageEnd();
-
 
11089
      }
-
 
11090
 
-
 
11091
      public Map<Long,ExclusiveAffiliateItemInfo> getResult() throws org.apache.thrift.TException {
-
 
11092
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11093
          throw new IllegalStateException("Method call not finished!");
-
 
11094
        }
-
 
11095
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11097
        return (new Client(prot)).recv_getExAffiliateItemInfo();
-
 
11098
      }
-
 
11099
    }
-
 
11100
 
11046
  }
11101
  }
11047
 
11102
 
11048
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11103
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11049
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11104
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11050
    public Processor(I iface) {
11105
    public Processor(I iface) {
Line 11232... Line 11287...
11232
      processMap.put("addAmazonPromotion", new addAmazonPromotion());
11287
      processMap.put("addAmazonPromotion", new addAmazonPromotion());
11233
      processMap.put("getAmazonPromotion", new getAmazonPromotion());
11288
      processMap.put("getAmazonPromotion", new getAmazonPromotion());
11234
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11289
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11235
      processMap.put("markPartiallyActive", new markPartiallyActive());
11290
      processMap.put("markPartiallyActive", new markPartiallyActive());
11236
      processMap.put("updateItemStateVat", new updateItemStateVat());
11291
      processMap.put("updateItemStateVat", new updateItemStateVat());
-
 
11292
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11237
      return processMap;
11293
      return processMap;
11238
    }
11294
    }
11239
 
11295
 
11240
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11296
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11241
      public addItem() {
11297
      public addItem() {
Line 14319... Line 14375...
14319
        result.setSuccessIsSet(true);
14375
        result.setSuccessIsSet(true);
14320
        return result;
14376
        return result;
14321
      }
14377
      }
14322
    }
14378
    }
14323
 
14379
 
-
 
14380
    private static class getExAffiliateItemInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getExAffiliateItemInfo_args> {
-
 
14381
      public getExAffiliateItemInfo() {
-
 
14382
        super("getExAffiliateItemInfo");
-
 
14383
      }
-
 
14384
 
-
 
14385
      protected getExAffiliateItemInfo_args getEmptyArgsInstance() {
-
 
14386
        return new getExAffiliateItemInfo_args();
-
 
14387
      }
-
 
14388
 
-
 
14389
      protected getExAffiliateItemInfo_result getResult(I iface, getExAffiliateItemInfo_args args) throws org.apache.thrift.TException {
-
 
14390
        getExAffiliateItemInfo_result result = new getExAffiliateItemInfo_result();
-
 
14391
        result.success = iface.getExAffiliateItemInfo();
-
 
14392
        return result;
-
 
14393
      }
-
 
14394
    }
-
 
14395
 
14324
  }
14396
  }
14325
 
14397
 
14326
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14398
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14328
 
14400
 
Line 128608... Line 128680...
128608
      first = false;
128680
      first = false;
128609
      sb.append(")");
128681
      sb.append(")");
128610
      return sb.toString();
128682
      return sb.toString();
128611
    }
128683
    }
128612
 
128684
 
-
 
128685
    public void validate() throws org.apache.thrift.TException {
-
 
128686
      // check for required fields
-
 
128687
    }
-
 
128688
 
-
 
128689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
128690
      try {
-
 
128691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
128692
      } catch (org.apache.thrift.TException te) {
-
 
128693
        throw new java.io.IOException(te);
-
 
128694
      }
-
 
128695
    }
-
 
128696
 
-
 
128697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
128698
      try {
-
 
128699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
128700
      } catch (org.apache.thrift.TException te) {
-
 
128701
        throw new java.io.IOException(te);
-
 
128702
      }
-
 
128703
    }
-
 
128704
 
-
 
128705
  }
-
 
128706
 
-
 
128707
  public static class getExAffiliateItemInfo_args implements org.apache.thrift.TBase<getExAffiliateItemInfo_args, getExAffiliateItemInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
128708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExAffiliateItemInfo_args");
-
 
128709
 
-
 
128710
 
-
 
128711
 
-
 
128712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
128713
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
128714
;
-
 
128715
 
-
 
128716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
128717
 
-
 
128718
      static {
-
 
128719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
128720
          byName.put(field.getFieldName(), field);
-
 
128721
        }
-
 
128722
      }
-
 
128723
 
-
 
128724
      /**
-
 
128725
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
128726
       */
-
 
128727
      public static _Fields findByThriftId(int fieldId) {
-
 
128728
        switch(fieldId) {
-
 
128729
          default:
-
 
128730
            return null;
-
 
128731
        }
-
 
128732
      }
-
 
128733
 
-
 
128734
      /**
-
 
128735
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
128736
       * if it is not found.
-
 
128737
       */
-
 
128738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
128739
        _Fields fields = findByThriftId(fieldId);
-
 
128740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
128741
        return fields;
-
 
128742
      }
-
 
128743
 
-
 
128744
      /**
-
 
128745
       * Find the _Fields constant that matches name, or null if its not found.
-
 
128746
       */
-
 
128747
      public static _Fields findByName(String name) {
-
 
128748
        return byName.get(name);
-
 
128749
      }
-
 
128750
 
-
 
128751
      private final short _thriftId;
-
 
128752
      private final String _fieldName;
-
 
128753
 
-
 
128754
      _Fields(short thriftId, String fieldName) {
-
 
128755
        _thriftId = thriftId;
-
 
128756
        _fieldName = fieldName;
-
 
128757
      }
-
 
128758
 
-
 
128759
      public short getThriftFieldId() {
-
 
128760
        return _thriftId;
-
 
128761
      }
-
 
128762
 
-
 
128763
      public String getFieldName() {
-
 
128764
        return _fieldName;
-
 
128765
      }
-
 
128766
    }
-
 
128767
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
128768
    static {
-
 
128769
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
128770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
128771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExAffiliateItemInfo_args.class, metaDataMap);
-
 
128772
    }
-
 
128773
 
-
 
128774
    public getExAffiliateItemInfo_args() {
-
 
128775
    }
-
 
128776
 
-
 
128777
    /**
-
 
128778
     * Performs a deep copy on <i>other</i>.
-
 
128779
     */
-
 
128780
    public getExAffiliateItemInfo_args(getExAffiliateItemInfo_args other) {
-
 
128781
    }
-
 
128782
 
-
 
128783
    public getExAffiliateItemInfo_args deepCopy() {
-
 
128784
      return new getExAffiliateItemInfo_args(this);
-
 
128785
    }
-
 
128786
 
-
 
128787
    @Override
-
 
128788
    public void clear() {
-
 
128789
    }
-
 
128790
 
-
 
128791
    public void setFieldValue(_Fields field, Object value) {
-
 
128792
      switch (field) {
-
 
128793
      }
-
 
128794
    }
-
 
128795
 
-
 
128796
    public Object getFieldValue(_Fields field) {
-
 
128797
      switch (field) {
-
 
128798
      }
-
 
128799
      throw new IllegalStateException();
-
 
128800
    }
-
 
128801
 
-
 
128802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
128803
    public boolean isSet(_Fields field) {
-
 
128804
      if (field == null) {
-
 
128805
        throw new IllegalArgumentException();
-
 
128806
      }
-
 
128807
 
-
 
128808
      switch (field) {
-
 
128809
      }
-
 
128810
      throw new IllegalStateException();
-
 
128811
    }
-
 
128812
 
-
 
128813
    @Override
-
 
128814
    public boolean equals(Object that) {
-
 
128815
      if (that == null)
-
 
128816
        return false;
-
 
128817
      if (that instanceof getExAffiliateItemInfo_args)
-
 
128818
        return this.equals((getExAffiliateItemInfo_args)that);
-
 
128819
      return false;
-
 
128820
    }
-
 
128821
 
-
 
128822
    public boolean equals(getExAffiliateItemInfo_args that) {
-
 
128823
      if (that == null)
-
 
128824
        return false;
-
 
128825
 
-
 
128826
      return true;
-
 
128827
    }
-
 
128828
 
-
 
128829
    @Override
-
 
128830
    public int hashCode() {
-
 
128831
      return 0;
-
 
128832
    }
-
 
128833
 
-
 
128834
    public int compareTo(getExAffiliateItemInfo_args other) {
-
 
128835
      if (!getClass().equals(other.getClass())) {
-
 
128836
        return getClass().getName().compareTo(other.getClass().getName());
-
 
128837
      }
-
 
128838
 
-
 
128839
      int lastComparison = 0;
-
 
128840
      getExAffiliateItemInfo_args typedOther = (getExAffiliateItemInfo_args)other;
-
 
128841
 
-
 
128842
      return 0;
-
 
128843
    }
-
 
128844
 
-
 
128845
    public _Fields fieldForId(int fieldId) {
-
 
128846
      return _Fields.findByThriftId(fieldId);
-
 
128847
    }
-
 
128848
 
-
 
128849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
128850
      org.apache.thrift.protocol.TField field;
-
 
128851
      iprot.readStructBegin();
-
 
128852
      while (true)
-
 
128853
      {
-
 
128854
        field = iprot.readFieldBegin();
-
 
128855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
128856
          break;
-
 
128857
        }
-
 
128858
        switch (field.id) {
-
 
128859
          default:
-
 
128860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
128861
        }
-
 
128862
        iprot.readFieldEnd();
-
 
128863
      }
-
 
128864
      iprot.readStructEnd();
-
 
128865
      validate();
-
 
128866
    }
-
 
128867
 
-
 
128868
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
128869
      validate();
-
 
128870
 
-
 
128871
      oprot.writeStructBegin(STRUCT_DESC);
-
 
128872
      oprot.writeFieldStop();
-
 
128873
      oprot.writeStructEnd();
-
 
128874
    }
-
 
128875
 
-
 
128876
    @Override
-
 
128877
    public String toString() {
-
 
128878
      StringBuilder sb = new StringBuilder("getExAffiliateItemInfo_args(");
-
 
128879
      boolean first = true;
-
 
128880
 
-
 
128881
      sb.append(")");
-
 
128882
      return sb.toString();
-
 
128883
    }
-
 
128884
 
-
 
128885
    public void validate() throws org.apache.thrift.TException {
-
 
128886
      // check for required fields
-
 
128887
    }
-
 
128888
 
-
 
128889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
128890
      try {
-
 
128891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
128892
      } catch (org.apache.thrift.TException te) {
-
 
128893
        throw new java.io.IOException(te);
-
 
128894
      }
-
 
128895
    }
-
 
128896
 
-
 
128897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
128898
      try {
-
 
128899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
128900
      } catch (org.apache.thrift.TException te) {
-
 
128901
        throw new java.io.IOException(te);
-
 
128902
      }
-
 
128903
    }
-
 
128904
 
-
 
128905
  }
-
 
128906
 
-
 
128907
  public static class getExAffiliateItemInfo_result implements org.apache.thrift.TBase<getExAffiliateItemInfo_result, getExAffiliateItemInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
128908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExAffiliateItemInfo_result");
-
 
128909
 
-
 
128910
    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);
-
 
128911
 
-
 
128912
    private Map<Long,ExclusiveAffiliateItemInfo> success; // required
-
 
128913
 
-
 
128914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
128915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
128916
      SUCCESS((short)0, "success");
-
 
128917
 
-
 
128918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
128919
 
-
 
128920
      static {
-
 
128921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
128922
          byName.put(field.getFieldName(), field);
-
 
128923
        }
-
 
128924
      }
-
 
128925
 
-
 
128926
      /**
-
 
128927
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
128928
       */
-
 
128929
      public static _Fields findByThriftId(int fieldId) {
-
 
128930
        switch(fieldId) {
-
 
128931
          case 0: // SUCCESS
-
 
128932
            return SUCCESS;
-
 
128933
          default:
-
 
128934
            return null;
-
 
128935
        }
-
 
128936
      }
-
 
128937
 
-
 
128938
      /**
-
 
128939
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
128940
       * if it is not found.
-
 
128941
       */
-
 
128942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
128943
        _Fields fields = findByThriftId(fieldId);
-
 
128944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
128945
        return fields;
-
 
128946
      }
-
 
128947
 
-
 
128948
      /**
-
 
128949
       * Find the _Fields constant that matches name, or null if its not found.
-
 
128950
       */
-
 
128951
      public static _Fields findByName(String name) {
-
 
128952
        return byName.get(name);
-
 
128953
      }
-
 
128954
 
-
 
128955
      private final short _thriftId;
-
 
128956
      private final String _fieldName;
-
 
128957
 
-
 
128958
      _Fields(short thriftId, String fieldName) {
-
 
128959
        _thriftId = thriftId;
-
 
128960
        _fieldName = fieldName;
-
 
128961
      }
-
 
128962
 
-
 
128963
      public short getThriftFieldId() {
-
 
128964
        return _thriftId;
-
 
128965
      }
-
 
128966
 
-
 
128967
      public String getFieldName() {
-
 
128968
        return _fieldName;
-
 
128969
      }
-
 
128970
    }
-
 
128971
 
-
 
128972
    // isset id assignments
-
 
128973
 
-
 
128974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
128975
    static {
-
 
128976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
128977
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
128978
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
128979
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
128980
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ExclusiveAffiliateItemInfo.class))));
-
 
128981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
128982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExAffiliateItemInfo_result.class, metaDataMap);
-
 
128983
    }
-
 
128984
 
-
 
128985
    public getExAffiliateItemInfo_result() {
-
 
128986
    }
-
 
128987
 
-
 
128988
    public getExAffiliateItemInfo_result(
-
 
128989
      Map<Long,ExclusiveAffiliateItemInfo> success)
-
 
128990
    {
-
 
128991
      this();
-
 
128992
      this.success = success;
-
 
128993
    }
-
 
128994
 
-
 
128995
    /**
-
 
128996
     * Performs a deep copy on <i>other</i>.
-
 
128997
     */
-
 
128998
    public getExAffiliateItemInfo_result(getExAffiliateItemInfo_result other) {
-
 
128999
      if (other.isSetSuccess()) {
-
 
129000
        Map<Long,ExclusiveAffiliateItemInfo> __this__success = new HashMap<Long,ExclusiveAffiliateItemInfo>();
-
 
129001
        for (Map.Entry<Long, ExclusiveAffiliateItemInfo> other_element : other.success.entrySet()) {
-
 
129002
 
-
 
129003
          Long other_element_key = other_element.getKey();
-
 
129004
          ExclusiveAffiliateItemInfo other_element_value = other_element.getValue();
-
 
129005
 
-
 
129006
          Long __this__success_copy_key = other_element_key;
-
 
129007
 
-
 
129008
          ExclusiveAffiliateItemInfo __this__success_copy_value = new ExclusiveAffiliateItemInfo(other_element_value);
-
 
129009
 
-
 
129010
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
129011
        }
-
 
129012
        this.success = __this__success;
-
 
129013
      }
-
 
129014
    }
-
 
129015
 
-
 
129016
    public getExAffiliateItemInfo_result deepCopy() {
-
 
129017
      return new getExAffiliateItemInfo_result(this);
-
 
129018
    }
-
 
129019
 
-
 
129020
    @Override
-
 
129021
    public void clear() {
-
 
129022
      this.success = null;
-
 
129023
    }
-
 
129024
 
-
 
129025
    public int getSuccessSize() {
-
 
129026
      return (this.success == null) ? 0 : this.success.size();
-
 
129027
    }
-
 
129028
 
-
 
129029
    public void putToSuccess(long key, ExclusiveAffiliateItemInfo val) {
-
 
129030
      if (this.success == null) {
-
 
129031
        this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>();
-
 
129032
      }
-
 
129033
      this.success.put(key, val);
-
 
129034
    }
-
 
129035
 
-
 
129036
    public Map<Long,ExclusiveAffiliateItemInfo> getSuccess() {
-
 
129037
      return this.success;
-
 
129038
    }
-
 
129039
 
-
 
129040
    public void setSuccess(Map<Long,ExclusiveAffiliateItemInfo> success) {
-
 
129041
      this.success = success;
-
 
129042
    }
-
 
129043
 
-
 
129044
    public void unsetSuccess() {
-
 
129045
      this.success = null;
-
 
129046
    }
-
 
129047
 
-
 
129048
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
129049
    public boolean isSetSuccess() {
-
 
129050
      return this.success != null;
-
 
129051
    }
-
 
129052
 
-
 
129053
    public void setSuccessIsSet(boolean value) {
-
 
129054
      if (!value) {
-
 
129055
        this.success = null;
-
 
129056
      }
-
 
129057
    }
-
 
129058
 
-
 
129059
    public void setFieldValue(_Fields field, Object value) {
-
 
129060
      switch (field) {
-
 
129061
      case SUCCESS:
-
 
129062
        if (value == null) {
-
 
129063
          unsetSuccess();
-
 
129064
        } else {
-
 
129065
          setSuccess((Map<Long,ExclusiveAffiliateItemInfo>)value);
-
 
129066
        }
-
 
129067
        break;
-
 
129068
 
-
 
129069
      }
-
 
129070
    }
-
 
129071
 
-
 
129072
    public Object getFieldValue(_Fields field) {
-
 
129073
      switch (field) {
-
 
129074
      case SUCCESS:
-
 
129075
        return getSuccess();
-
 
129076
 
-
 
129077
      }
-
 
129078
      throw new IllegalStateException();
-
 
129079
    }
-
 
129080
 
-
 
129081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
129082
    public boolean isSet(_Fields field) {
-
 
129083
      if (field == null) {
-
 
129084
        throw new IllegalArgumentException();
-
 
129085
      }
-
 
129086
 
-
 
129087
      switch (field) {
-
 
129088
      case SUCCESS:
-
 
129089
        return isSetSuccess();
-
 
129090
      }
-
 
129091
      throw new IllegalStateException();
-
 
129092
    }
-
 
129093
 
-
 
129094
    @Override
-
 
129095
    public boolean equals(Object that) {
-
 
129096
      if (that == null)
-
 
129097
        return false;
-
 
129098
      if (that instanceof getExAffiliateItemInfo_result)
-
 
129099
        return this.equals((getExAffiliateItemInfo_result)that);
-
 
129100
      return false;
-
 
129101
    }
-
 
129102
 
-
 
129103
    public boolean equals(getExAffiliateItemInfo_result that) {
-
 
129104
      if (that == null)
-
 
129105
        return false;
-
 
129106
 
-
 
129107
      boolean this_present_success = true && this.isSetSuccess();
-
 
129108
      boolean that_present_success = true && that.isSetSuccess();
-
 
129109
      if (this_present_success || that_present_success) {
-
 
129110
        if (!(this_present_success && that_present_success))
-
 
129111
          return false;
-
 
129112
        if (!this.success.equals(that.success))
-
 
129113
          return false;
-
 
129114
      }
-
 
129115
 
-
 
129116
      return true;
-
 
129117
    }
-
 
129118
 
-
 
129119
    @Override
-
 
129120
    public int hashCode() {
-
 
129121
      return 0;
-
 
129122
    }
-
 
129123
 
-
 
129124
    public int compareTo(getExAffiliateItemInfo_result other) {
-
 
129125
      if (!getClass().equals(other.getClass())) {
-
 
129126
        return getClass().getName().compareTo(other.getClass().getName());
-
 
129127
      }
-
 
129128
 
-
 
129129
      int lastComparison = 0;
-
 
129130
      getExAffiliateItemInfo_result typedOther = (getExAffiliateItemInfo_result)other;
-
 
129131
 
-
 
129132
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
129133
      if (lastComparison != 0) {
-
 
129134
        return lastComparison;
-
 
129135
      }
-
 
129136
      if (isSetSuccess()) {
-
 
129137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
129138
        if (lastComparison != 0) {
-
 
129139
          return lastComparison;
-
 
129140
        }
-
 
129141
      }
-
 
129142
      return 0;
-
 
129143
    }
-
 
129144
 
-
 
129145
    public _Fields fieldForId(int fieldId) {
-
 
129146
      return _Fields.findByThriftId(fieldId);
-
 
129147
    }
-
 
129148
 
-
 
129149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
129150
      org.apache.thrift.protocol.TField field;
-
 
129151
      iprot.readStructBegin();
-
 
129152
      while (true)
-
 
129153
      {
-
 
129154
        field = iprot.readFieldBegin();
-
 
129155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
129156
          break;
-
 
129157
        }
-
 
129158
        switch (field.id) {
-
 
129159
          case 0: // SUCCESS
-
 
129160
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
129161
              {
-
 
129162
                org.apache.thrift.protocol.TMap _map434 = iprot.readMapBegin();
-
 
129163
                this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>(2*_map434.size);
-
 
129164
                for (int _i435 = 0; _i435 < _map434.size; ++_i435)
-
 
129165
                {
-
 
129166
                  long _key436; // required
-
 
129167
                  ExclusiveAffiliateItemInfo _val437; // required
-
 
129168
                  _key436 = iprot.readI64();
-
 
129169
                  _val437 = new ExclusiveAffiliateItemInfo();
-
 
129170
                  _val437.read(iprot);
-
 
129171
                  this.success.put(_key436, _val437);
-
 
129172
                }
-
 
129173
                iprot.readMapEnd();
-
 
129174
              }
-
 
129175
            } else { 
-
 
129176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129177
            }
-
 
129178
            break;
-
 
129179
          default:
-
 
129180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129181
        }
-
 
129182
        iprot.readFieldEnd();
-
 
129183
      }
-
 
129184
      iprot.readStructEnd();
-
 
129185
      validate();
-
 
129186
    }
-
 
129187
 
-
 
129188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
129189
      oprot.writeStructBegin(STRUCT_DESC);
-
 
129190
 
-
 
129191
      if (this.isSetSuccess()) {
-
 
129192
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
129193
        {
-
 
129194
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
129195
          for (Map.Entry<Long, ExclusiveAffiliateItemInfo> _iter438 : this.success.entrySet())
-
 
129196
          {
-
 
129197
            oprot.writeI64(_iter438.getKey());
-
 
129198
            _iter438.getValue().write(oprot);
-
 
129199
          }
-
 
129200
          oprot.writeMapEnd();
-
 
129201
        }
-
 
129202
        oprot.writeFieldEnd();
-
 
129203
      }
-
 
129204
      oprot.writeFieldStop();
-
 
129205
      oprot.writeStructEnd();
-
 
129206
    }
-
 
129207
 
-
 
129208
    @Override
-
 
129209
    public String toString() {
-
 
129210
      StringBuilder sb = new StringBuilder("getExAffiliateItemInfo_result(");
-
 
129211
      boolean first = true;
-
 
129212
 
-
 
129213
      sb.append("success:");
-
 
129214
      if (this.success == null) {
-
 
129215
        sb.append("null");
-
 
129216
      } else {
-
 
129217
        sb.append(this.success);
-
 
129218
      }
-
 
129219
      first = false;
-
 
129220
      sb.append(")");
-
 
129221
      return sb.toString();
-
 
129222
    }
-
 
129223
 
128613
    public void validate() throws org.apache.thrift.TException {
129224
    public void validate() throws org.apache.thrift.TException {
128614
      // check for required fields
129225
      // check for required fields
128615
    }
129226
    }
128616
 
129227
 
128617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
129228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {