Subversion Repositories SmartDukaan

Rev

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

Rev 8488 Rev 8532
Line 1039... Line 1039...
1039
 
1039
 
1040
    public SnapdealOrder getSnapdealOrder(long orderId, String referenceCode, long subrderId) throws org.apache.thrift.TException;
1040
    public SnapdealOrder getSnapdealOrder(long orderId, String referenceCode, long subrderId) throws org.apache.thrift.TException;
1041
 
1041
 
1042
    public boolean snapdealOrderExists(long subOrderId) throws org.apache.thrift.TException;
1042
    public boolean snapdealOrderExists(long subOrderId) throws org.apache.thrift.TException;
1043
 
1043
 
-
 
1044
    public void updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices) throws org.apache.thrift.TException;
-
 
1045
 
1044
  }
1046
  }
1045
 
1047
 
1046
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1048
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1047
 
1049
 
1048
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1050
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1465... Line 1467...
1465
 
1467
 
1466
    public void getSnapdealOrder(long orderId, String referenceCode, long subrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException;
1468
    public void getSnapdealOrder(long orderId, String referenceCode, long subrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealOrder_call> resultHandler) throws org.apache.thrift.TException;
1467
 
1469
 
1468
    public void snapdealOrderExists(long subOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.snapdealOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1470
    public void snapdealOrderExists(long subOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.snapdealOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1469
 
1471
 
-
 
1472
    public void updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLatestFbaPricesForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1473
 
1470
  }
1474
  }
1471
 
1475
 
1472
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1476
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1473
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1477
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1474
      public Factory() {}
1478
      public Factory() {}
Line 6704... Line 6708...
6704
        return result.success;
6708
        return result.success;
6705
      }
6709
      }
6706
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
6710
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
6707
    }
6711
    }
6708
 
6712
 
-
 
6713
    public void updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices) throws org.apache.thrift.TException
-
 
6714
    {
-
 
6715
      send_updateLatestFbaPricesForItem(fbaitemprices);
-
 
6716
      recv_updateLatestFbaPricesForItem();
-
 
6717
    }
-
 
6718
 
-
 
6719
    public void send_updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices) throws org.apache.thrift.TException
-
 
6720
    {
-
 
6721
      updateLatestFbaPricesForItem_args args = new updateLatestFbaPricesForItem_args();
-
 
6722
      args.setFbaitemprices(fbaitemprices);
-
 
6723
      sendBase("updateLatestFbaPricesForItem", args);
-
 
6724
    }
-
 
6725
 
-
 
6726
    public void recv_updateLatestFbaPricesForItem() throws org.apache.thrift.TException
-
 
6727
    {
-
 
6728
      updateLatestFbaPricesForItem_result result = new updateLatestFbaPricesForItem_result();
-
 
6729
      receiveBase(result, "updateLatestFbaPricesForItem");
-
 
6730
      return;
-
 
6731
    }
-
 
6732
 
6709
  }
6733
  }
6710
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6734
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6711
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6735
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6712
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6736
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6713
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6737
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 14062... Line 14086...
14062
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14086
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14063
        return (new Client(prot)).recv_snapdealOrderExists();
14087
        return (new Client(prot)).recv_snapdealOrderExists();
14064
      }
14088
      }
14065
    }
14089
    }
14066
 
14090
 
-
 
14091
    public void updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices, org.apache.thrift.async.AsyncMethodCallback<updateLatestFbaPricesForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
14092
      checkReady();
-
 
14093
      updateLatestFbaPricesForItem_call method_call = new updateLatestFbaPricesForItem_call(fbaitemprices, resultHandler, this, ___protocolFactory, ___transport);
-
 
14094
      this.___currentMethod = method_call;
-
 
14095
      ___manager.call(method_call);
-
 
14096
    }
-
 
14097
 
-
 
14098
    public static class updateLatestFbaPricesForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14099
      private FbaItemPrices fbaitemprices;
-
 
14100
      public updateLatestFbaPricesForItem_call(FbaItemPrices fbaitemprices, org.apache.thrift.async.AsyncMethodCallback<updateLatestFbaPricesForItem_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 {
-
 
14101
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14102
        this.fbaitemprices = fbaitemprices;
-
 
14103
      }
-
 
14104
 
-
 
14105
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14106
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLatestFbaPricesForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14107
        updateLatestFbaPricesForItem_args args = new updateLatestFbaPricesForItem_args();
-
 
14108
        args.setFbaitemprices(fbaitemprices);
-
 
14109
        args.write(prot);
-
 
14110
        prot.writeMessageEnd();
-
 
14111
      }
-
 
14112
 
-
 
14113
      public void getResult() throws org.apache.thrift.TException {
-
 
14114
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14115
          throw new IllegalStateException("Method call not finished!");
-
 
14116
        }
-
 
14117
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14118
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14119
        (new Client(prot)).recv_updateLatestFbaPricesForItem();
-
 
14120
      }
-
 
14121
    }
-
 
14122
 
14067
  }
14123
  }
14068
 
14124
 
14069
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14125
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14070
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14126
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14071
    public Processor(I iface) {
14127
    public Processor(I iface) {
Line 14286... Line 14342...
14286
      processMap.put("getAmazonFbaSalesSnapshotForDays", new getAmazonFbaSalesSnapshotForDays());
14342
      processMap.put("getAmazonFbaSalesSnapshotForDays", new getAmazonFbaSalesSnapshotForDays());
14287
      processMap.put("getAmazonFbaSalesLatestSnapshotForItem", new getAmazonFbaSalesLatestSnapshotForItem());
14343
      processMap.put("getAmazonFbaSalesLatestSnapshotForItem", new getAmazonFbaSalesLatestSnapshotForItem());
14288
      processMap.put("createSnapdealOrder", new createSnapdealOrder());
14344
      processMap.put("createSnapdealOrder", new createSnapdealOrder());
14289
      processMap.put("getSnapdealOrder", new getSnapdealOrder());
14345
      processMap.put("getSnapdealOrder", new getSnapdealOrder());
14290
      processMap.put("snapdealOrderExists", new snapdealOrderExists());
14346
      processMap.put("snapdealOrderExists", new snapdealOrderExists());
-
 
14347
      processMap.put("updateLatestFbaPricesForItem", new updateLatestFbaPricesForItem());
14291
      return processMap;
14348
      return processMap;
14292
    }
14349
    }
14293
 
14350
 
14294
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14351
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14295
      public createTransaction() {
14352
      public createTransaction() {
Line 18115... Line 18172...
18115
        result.setSuccessIsSet(true);
18172
        result.setSuccessIsSet(true);
18116
        return result;
18173
        return result;
18117
      }
18174
      }
18118
    }
18175
    }
18119
 
18176
 
-
 
18177
    private static class updateLatestFbaPricesForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLatestFbaPricesForItem_args> {
-
 
18178
      public updateLatestFbaPricesForItem() {
-
 
18179
        super("updateLatestFbaPricesForItem");
-
 
18180
      }
-
 
18181
 
-
 
18182
      protected updateLatestFbaPricesForItem_args getEmptyArgsInstance() {
-
 
18183
        return new updateLatestFbaPricesForItem_args();
-
 
18184
      }
-
 
18185
 
-
 
18186
      protected updateLatestFbaPricesForItem_result getResult(I iface, updateLatestFbaPricesForItem_args args) throws org.apache.thrift.TException {
-
 
18187
        updateLatestFbaPricesForItem_result result = new updateLatestFbaPricesForItem_result();
-
 
18188
        iface.updateLatestFbaPricesForItem(args.fbaitemprices);
-
 
18189
        return result;
-
 
18190
      }
-
 
18191
    }
-
 
18192
 
18120
  }
18193
  }
18121
 
18194
 
18122
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18195
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18124
 
18197
 
Line 167708... Line 167781...
167708
      sb.append(")");
167781
      sb.append(")");
167709
      return sb.toString();
167782
      return sb.toString();
167710
    }
167783
    }
167711
 
167784
 
167712
    public void validate() throws org.apache.thrift.TException {
167785
    public void validate() throws org.apache.thrift.TException {
-
 
167786
      // check for required fields
-
 
167787
    }
-
 
167788
 
-
 
167789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
167790
      try {
-
 
167791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
167792
      } catch (org.apache.thrift.TException te) {
-
 
167793
        throw new java.io.IOException(te);
-
 
167794
      }
-
 
167795
    }
-
 
167796
 
-
 
167797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
167798
      try {
-
 
167799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
167800
      } catch (org.apache.thrift.TException te) {
-
 
167801
        throw new java.io.IOException(te);
-
 
167802
      }
-
 
167803
    }
-
 
167804
 
-
 
167805
  }
-
 
167806
 
-
 
167807
  public static class updateLatestFbaPricesForItem_args implements org.apache.thrift.TBase<updateLatestFbaPricesForItem_args, updateLatestFbaPricesForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
167808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLatestFbaPricesForItem_args");
-
 
167809
 
-
 
167810
    private static final org.apache.thrift.protocol.TField FBAITEMPRICES_FIELD_DESC = new org.apache.thrift.protocol.TField("fbaitemprices", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
167811
 
-
 
167812
    private FbaItemPrices fbaitemprices; // required
-
 
167813
 
-
 
167814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
167815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
167816
      FBAITEMPRICES((short)1, "fbaitemprices");
-
 
167817
 
-
 
167818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
167819
 
-
 
167820
      static {
-
 
167821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
167822
          byName.put(field.getFieldName(), field);
-
 
167823
        }
-
 
167824
      }
-
 
167825
 
-
 
167826
      /**
-
 
167827
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
167828
       */
-
 
167829
      public static _Fields findByThriftId(int fieldId) {
-
 
167830
        switch(fieldId) {
-
 
167831
          case 1: // FBAITEMPRICES
-
 
167832
            return FBAITEMPRICES;
-
 
167833
          default:
-
 
167834
            return null;
-
 
167835
        }
-
 
167836
      }
-
 
167837
 
-
 
167838
      /**
-
 
167839
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
167840
       * if it is not found.
-
 
167841
       */
-
 
167842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
167843
        _Fields fields = findByThriftId(fieldId);
-
 
167844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
167845
        return fields;
-
 
167846
      }
-
 
167847
 
-
 
167848
      /**
-
 
167849
       * Find the _Fields constant that matches name, or null if its not found.
-
 
167850
       */
-
 
167851
      public static _Fields findByName(String name) {
-
 
167852
        return byName.get(name);
-
 
167853
      }
-
 
167854
 
-
 
167855
      private final short _thriftId;
-
 
167856
      private final String _fieldName;
-
 
167857
 
-
 
167858
      _Fields(short thriftId, String fieldName) {
-
 
167859
        _thriftId = thriftId;
-
 
167860
        _fieldName = fieldName;
-
 
167861
      }
-
 
167862
 
-
 
167863
      public short getThriftFieldId() {
-
 
167864
        return _thriftId;
-
 
167865
      }
-
 
167866
 
-
 
167867
      public String getFieldName() {
-
 
167868
        return _fieldName;
-
 
167869
      }
-
 
167870
    }
-
 
167871
 
-
 
167872
    // isset id assignments
-
 
167873
 
-
 
167874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
167875
    static {
-
 
167876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
167877
      tmpMap.put(_Fields.FBAITEMPRICES, new org.apache.thrift.meta_data.FieldMetaData("fbaitemprices", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167878
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FbaItemPrices.class)));
-
 
167879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
167880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLatestFbaPricesForItem_args.class, metaDataMap);
-
 
167881
    }
-
 
167882
 
-
 
167883
    public updateLatestFbaPricesForItem_args() {
-
 
167884
    }
-
 
167885
 
-
 
167886
    public updateLatestFbaPricesForItem_args(
-
 
167887
      FbaItemPrices fbaitemprices)
-
 
167888
    {
-
 
167889
      this();
-
 
167890
      this.fbaitemprices = fbaitemprices;
-
 
167891
    }
-
 
167892
 
-
 
167893
    /**
-
 
167894
     * Performs a deep copy on <i>other</i>.
-
 
167895
     */
-
 
167896
    public updateLatestFbaPricesForItem_args(updateLatestFbaPricesForItem_args other) {
-
 
167897
      if (other.isSetFbaitemprices()) {
-
 
167898
        this.fbaitemprices = new FbaItemPrices(other.fbaitemprices);
-
 
167899
      }
-
 
167900
    }
-
 
167901
 
-
 
167902
    public updateLatestFbaPricesForItem_args deepCopy() {
-
 
167903
      return new updateLatestFbaPricesForItem_args(this);
-
 
167904
    }
-
 
167905
 
-
 
167906
    @Override
-
 
167907
    public void clear() {
-
 
167908
      this.fbaitemprices = null;
-
 
167909
    }
-
 
167910
 
-
 
167911
    public FbaItemPrices getFbaitemprices() {
-
 
167912
      return this.fbaitemprices;
-
 
167913
    }
-
 
167914
 
-
 
167915
    public void setFbaitemprices(FbaItemPrices fbaitemprices) {
-
 
167916
      this.fbaitemprices = fbaitemprices;
-
 
167917
    }
-
 
167918
 
-
 
167919
    public void unsetFbaitemprices() {
-
 
167920
      this.fbaitemprices = null;
-
 
167921
    }
-
 
167922
 
-
 
167923
    /** Returns true if field fbaitemprices is set (has been assigned a value) and false otherwise */
-
 
167924
    public boolean isSetFbaitemprices() {
-
 
167925
      return this.fbaitemprices != null;
-
 
167926
    }
-
 
167927
 
-
 
167928
    public void setFbaitempricesIsSet(boolean value) {
-
 
167929
      if (!value) {
-
 
167930
        this.fbaitemprices = null;
-
 
167931
      }
-
 
167932
    }
-
 
167933
 
-
 
167934
    public void setFieldValue(_Fields field, Object value) {
-
 
167935
      switch (field) {
-
 
167936
      case FBAITEMPRICES:
-
 
167937
        if (value == null) {
-
 
167938
          unsetFbaitemprices();
-
 
167939
        } else {
-
 
167940
          setFbaitemprices((FbaItemPrices)value);
-
 
167941
        }
-
 
167942
        break;
-
 
167943
 
-
 
167944
      }
-
 
167945
    }
-
 
167946
 
-
 
167947
    public Object getFieldValue(_Fields field) {
-
 
167948
      switch (field) {
-
 
167949
      case FBAITEMPRICES:
-
 
167950
        return getFbaitemprices();
-
 
167951
 
-
 
167952
      }
-
 
167953
      throw new IllegalStateException();
-
 
167954
    }
-
 
167955
 
-
 
167956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
167957
    public boolean isSet(_Fields field) {
-
 
167958
      if (field == null) {
-
 
167959
        throw new IllegalArgumentException();
-
 
167960
      }
-
 
167961
 
-
 
167962
      switch (field) {
-
 
167963
      case FBAITEMPRICES:
-
 
167964
        return isSetFbaitemprices();
-
 
167965
      }
-
 
167966
      throw new IllegalStateException();
-
 
167967
    }
-
 
167968
 
-
 
167969
    @Override
-
 
167970
    public boolean equals(Object that) {
-
 
167971
      if (that == null)
-
 
167972
        return false;
-
 
167973
      if (that instanceof updateLatestFbaPricesForItem_args)
-
 
167974
        return this.equals((updateLatestFbaPricesForItem_args)that);
-
 
167975
      return false;
-
 
167976
    }
-
 
167977
 
-
 
167978
    public boolean equals(updateLatestFbaPricesForItem_args that) {
-
 
167979
      if (that == null)
-
 
167980
        return false;
-
 
167981
 
-
 
167982
      boolean this_present_fbaitemprices = true && this.isSetFbaitemprices();
-
 
167983
      boolean that_present_fbaitemprices = true && that.isSetFbaitemprices();
-
 
167984
      if (this_present_fbaitemprices || that_present_fbaitemprices) {
-
 
167985
        if (!(this_present_fbaitemprices && that_present_fbaitemprices))
-
 
167986
          return false;
-
 
167987
        if (!this.fbaitemprices.equals(that.fbaitemprices))
-
 
167988
          return false;
-
 
167989
      }
-
 
167990
 
-
 
167991
      return true;
-
 
167992
    }
-
 
167993
 
-
 
167994
    @Override
-
 
167995
    public int hashCode() {
-
 
167996
      return 0;
-
 
167997
    }
-
 
167998
 
-
 
167999
    public int compareTo(updateLatestFbaPricesForItem_args other) {
-
 
168000
      if (!getClass().equals(other.getClass())) {
-
 
168001
        return getClass().getName().compareTo(other.getClass().getName());
-
 
168002
      }
-
 
168003
 
-
 
168004
      int lastComparison = 0;
-
 
168005
      updateLatestFbaPricesForItem_args typedOther = (updateLatestFbaPricesForItem_args)other;
-
 
168006
 
-
 
168007
      lastComparison = Boolean.valueOf(isSetFbaitemprices()).compareTo(typedOther.isSetFbaitemprices());
-
 
168008
      if (lastComparison != 0) {
-
 
168009
        return lastComparison;
-
 
168010
      }
-
 
168011
      if (isSetFbaitemprices()) {
-
 
168012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fbaitemprices, typedOther.fbaitemprices);
-
 
168013
        if (lastComparison != 0) {
-
 
168014
          return lastComparison;
-
 
168015
        }
-
 
168016
      }
-
 
168017
      return 0;
-
 
168018
    }
-
 
168019
 
-
 
168020
    public _Fields fieldForId(int fieldId) {
-
 
168021
      return _Fields.findByThriftId(fieldId);
-
 
168022
    }
-
 
168023
 
-
 
168024
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
168025
      org.apache.thrift.protocol.TField field;
-
 
168026
      iprot.readStructBegin();
-
 
168027
      while (true)
-
 
168028
      {
-
 
168029
        field = iprot.readFieldBegin();
-
 
168030
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
168031
          break;
-
 
168032
        }
-
 
168033
        switch (field.id) {
-
 
168034
          case 1: // FBAITEMPRICES
-
 
168035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
168036
              this.fbaitemprices = new FbaItemPrices();
-
 
168037
              this.fbaitemprices.read(iprot);
-
 
168038
            } else { 
-
 
168039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
168040
            }
-
 
168041
            break;
-
 
168042
          default:
-
 
168043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
168044
        }
-
 
168045
        iprot.readFieldEnd();
-
 
168046
      }
-
 
168047
      iprot.readStructEnd();
-
 
168048
      validate();
-
 
168049
    }
-
 
168050
 
-
 
168051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
168052
      validate();
-
 
168053
 
-
 
168054
      oprot.writeStructBegin(STRUCT_DESC);
-
 
168055
      if (this.fbaitemprices != null) {
-
 
168056
        oprot.writeFieldBegin(FBAITEMPRICES_FIELD_DESC);
-
 
168057
        this.fbaitemprices.write(oprot);
-
 
168058
        oprot.writeFieldEnd();
-
 
168059
      }
-
 
168060
      oprot.writeFieldStop();
-
 
168061
      oprot.writeStructEnd();
-
 
168062
    }
-
 
168063
 
-
 
168064
    @Override
-
 
168065
    public String toString() {
-
 
168066
      StringBuilder sb = new StringBuilder("updateLatestFbaPricesForItem_args(");
-
 
168067
      boolean first = true;
-
 
168068
 
-
 
168069
      sb.append("fbaitemprices:");
-
 
168070
      if (this.fbaitemprices == null) {
-
 
168071
        sb.append("null");
-
 
168072
      } else {
-
 
168073
        sb.append(this.fbaitemprices);
-
 
168074
      }
-
 
168075
      first = false;
-
 
168076
      sb.append(")");
-
 
168077
      return sb.toString();
-
 
168078
    }
-
 
168079
 
-
 
168080
    public void validate() throws org.apache.thrift.TException {
-
 
168081
      // check for required fields
-
 
168082
    }
-
 
168083
 
-
 
168084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
168085
      try {
-
 
168086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
168087
      } catch (org.apache.thrift.TException te) {
-
 
168088
        throw new java.io.IOException(te);
-
 
168089
      }
-
 
168090
    }
-
 
168091
 
-
 
168092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
168093
      try {
-
 
168094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
168095
      } catch (org.apache.thrift.TException te) {
-
 
168096
        throw new java.io.IOException(te);
-
 
168097
      }
-
 
168098
    }
-
 
168099
 
-
 
168100
  }
-
 
168101
 
-
 
168102
  public static class updateLatestFbaPricesForItem_result implements org.apache.thrift.TBase<updateLatestFbaPricesForItem_result, updateLatestFbaPricesForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
168103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLatestFbaPricesForItem_result");
-
 
168104
 
-
 
168105
 
-
 
168106
 
-
 
168107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
168108
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
168109
;
-
 
168110
 
-
 
168111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
168112
 
-
 
168113
      static {
-
 
168114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
168115
          byName.put(field.getFieldName(), field);
-
 
168116
        }
-
 
168117
      }
-
 
168118
 
-
 
168119
      /**
-
 
168120
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
168121
       */
-
 
168122
      public static _Fields findByThriftId(int fieldId) {
-
 
168123
        switch(fieldId) {
-
 
168124
          default:
-
 
168125
            return null;
-
 
168126
        }
-
 
168127
      }
-
 
168128
 
-
 
168129
      /**
-
 
168130
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
168131
       * if it is not found.
-
 
168132
       */
-
 
168133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
168134
        _Fields fields = findByThriftId(fieldId);
-
 
168135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
168136
        return fields;
-
 
168137
      }
-
 
168138
 
-
 
168139
      /**
-
 
168140
       * Find the _Fields constant that matches name, or null if its not found.
-
 
168141
       */
-
 
168142
      public static _Fields findByName(String name) {
-
 
168143
        return byName.get(name);
-
 
168144
      }
-
 
168145
 
-
 
168146
      private final short _thriftId;
-
 
168147
      private final String _fieldName;
-
 
168148
 
-
 
168149
      _Fields(short thriftId, String fieldName) {
-
 
168150
        _thriftId = thriftId;
-
 
168151
        _fieldName = fieldName;
-
 
168152
      }
-
 
168153
 
-
 
168154
      public short getThriftFieldId() {
-
 
168155
        return _thriftId;
-
 
168156
      }
-
 
168157
 
-
 
168158
      public String getFieldName() {
-
 
168159
        return _fieldName;
-
 
168160
      }
-
 
168161
    }
-
 
168162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
168163
    static {
-
 
168164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
168165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
168166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLatestFbaPricesForItem_result.class, metaDataMap);
-
 
168167
    }
-
 
168168
 
-
 
168169
    public updateLatestFbaPricesForItem_result() {
-
 
168170
    }
-
 
168171
 
-
 
168172
    /**
-
 
168173
     * Performs a deep copy on <i>other</i>.
-
 
168174
     */
-
 
168175
    public updateLatestFbaPricesForItem_result(updateLatestFbaPricesForItem_result other) {
-
 
168176
    }
-
 
168177
 
-
 
168178
    public updateLatestFbaPricesForItem_result deepCopy() {
-
 
168179
      return new updateLatestFbaPricesForItem_result(this);
-
 
168180
    }
-
 
168181
 
-
 
168182
    @Override
-
 
168183
    public void clear() {
-
 
168184
    }
-
 
168185
 
-
 
168186
    public void setFieldValue(_Fields field, Object value) {
-
 
168187
      switch (field) {
-
 
168188
      }
-
 
168189
    }
-
 
168190
 
-
 
168191
    public Object getFieldValue(_Fields field) {
-
 
168192
      switch (field) {
-
 
168193
      }
-
 
168194
      throw new IllegalStateException();
-
 
168195
    }
-
 
168196
 
-
 
168197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
168198
    public boolean isSet(_Fields field) {
-
 
168199
      if (field == null) {
-
 
168200
        throw new IllegalArgumentException();
-
 
168201
      }
-
 
168202
 
-
 
168203
      switch (field) {
-
 
168204
      }
-
 
168205
      throw new IllegalStateException();
-
 
168206
    }
-
 
168207
 
-
 
168208
    @Override
-
 
168209
    public boolean equals(Object that) {
-
 
168210
      if (that == null)
-
 
168211
        return false;
-
 
168212
      if (that instanceof updateLatestFbaPricesForItem_result)
-
 
168213
        return this.equals((updateLatestFbaPricesForItem_result)that);
-
 
168214
      return false;
-
 
168215
    }
-
 
168216
 
-
 
168217
    public boolean equals(updateLatestFbaPricesForItem_result that) {
-
 
168218
      if (that == null)
-
 
168219
        return false;
-
 
168220
 
-
 
168221
      return true;
-
 
168222
    }
-
 
168223
 
-
 
168224
    @Override
-
 
168225
    public int hashCode() {
-
 
168226
      return 0;
-
 
168227
    }
-
 
168228
 
-
 
168229
    public int compareTo(updateLatestFbaPricesForItem_result other) {
-
 
168230
      if (!getClass().equals(other.getClass())) {
-
 
168231
        return getClass().getName().compareTo(other.getClass().getName());
-
 
168232
      }
-
 
168233
 
-
 
168234
      int lastComparison = 0;
-
 
168235
      updateLatestFbaPricesForItem_result typedOther = (updateLatestFbaPricesForItem_result)other;
-
 
168236
 
-
 
168237
      return 0;
-
 
168238
    }
-
 
168239
 
-
 
168240
    public _Fields fieldForId(int fieldId) {
-
 
168241
      return _Fields.findByThriftId(fieldId);
-
 
168242
    }
-
 
168243
 
-
 
168244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
168245
      org.apache.thrift.protocol.TField field;
-
 
168246
      iprot.readStructBegin();
-
 
168247
      while (true)
-
 
168248
      {
-
 
168249
        field = iprot.readFieldBegin();
-
 
168250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
168251
          break;
-
 
168252
        }
-
 
168253
        switch (field.id) {
-
 
168254
          default:
-
 
168255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
168256
        }
-
 
168257
        iprot.readFieldEnd();
-
 
168258
      }
-
 
168259
      iprot.readStructEnd();
-
 
168260
      validate();
-
 
168261
    }
-
 
168262
 
-
 
168263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
168264
      oprot.writeStructBegin(STRUCT_DESC);
-
 
168265
 
-
 
168266
      oprot.writeFieldStop();
-
 
168267
      oprot.writeStructEnd();
-
 
168268
    }
-
 
168269
 
-
 
168270
    @Override
-
 
168271
    public String toString() {
-
 
168272
      StringBuilder sb = new StringBuilder("updateLatestFbaPricesForItem_result(");
-
 
168273
      boolean first = true;
-
 
168274
 
-
 
168275
      sb.append(")");
-
 
168276
      return sb.toString();
-
 
168277
    }
-
 
168278
 
-
 
168279
    public void validate() throws org.apache.thrift.TException {
167713
      // check for required fields
168280
      // check for required fields
167714
    }
168281
    }
167715
 
168282
 
167716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
168283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
167717
      try {
168284
      try {