Subversion Repositories SmartDukaan

Rev

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

Rev 8590 Rev 8616
Line 454... Line 454...
454
 
454
 
455
    public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException;
455
    public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException;
456
 
456
 
457
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
457
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
458
 
458
 
-
 
459
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
-
 
460
 
459
  }
461
  }
460
 
462
 
461
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
463
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
462
 
464
 
463
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
465
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 692... Line 694...
692
 
694
 
693
    public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException;
695
    public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException;
694
 
696
 
695
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
697
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
696
 
698
 
-
 
699
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
700
 
697
  }
701
  }
698
 
702
 
699
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
703
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
700
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
704
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
701
      public Factory() {}
705
      public Factory() {}
Line 3491... Line 3495...
3491
        return result.success;
3495
        return result.success;
3492
      }
3496
      }
3493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
3497
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
3494
    }
3498
    }
3495
 
3499
 
-
 
3500
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3501
    {
-
 
3502
      send_getAllSnapdealListedActiveItems();
-
 
3503
      return recv_getAllSnapdealListedActiveItems();
-
 
3504
    }
-
 
3505
 
-
 
3506
    public void send_getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3507
    {
-
 
3508
      getAllSnapdealListedActiveItems_args args = new getAllSnapdealListedActiveItems_args();
-
 
3509
      sendBase("getAllSnapdealListedActiveItems", args);
-
 
3510
    }
-
 
3511
 
-
 
3512
    public List<Item> recv_getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3513
    {
-
 
3514
      getAllSnapdealListedActiveItems_result result = new getAllSnapdealListedActiveItems_result();
-
 
3515
      receiveBase(result, "getAllSnapdealListedActiveItems");
-
 
3516
      if (result.isSetSuccess()) {
-
 
3517
        return result.success;
-
 
3518
      }
-
 
3519
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
-
 
3520
    }
-
 
3521
 
3496
  }
3522
  }
3497
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3523
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3498
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3524
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3499
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3525
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3500
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3526
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7349... Line 7375...
7349
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7375
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7350
        return (new Client(prot)).recv_getAllItemstoListOnNonFba();
7376
        return (new Client(prot)).recv_getAllItemstoListOnNonFba();
7351
      }
7377
      }
7352
    }
7378
    }
7353
 
7379
 
-
 
7380
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
7381
      checkReady();
-
 
7382
      getAllSnapdealListedActiveItems_call method_call = new getAllSnapdealListedActiveItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
7383
      this.___currentMethod = method_call;
-
 
7384
      ___manager.call(method_call);
-
 
7385
    }
-
 
7386
 
-
 
7387
    public static class getAllSnapdealListedActiveItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7388
      public getAllSnapdealListedActiveItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealListedActiveItems_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 {
-
 
7389
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7390
      }
-
 
7391
 
-
 
7392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealListedActiveItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7394
        getAllSnapdealListedActiveItems_args args = new getAllSnapdealListedActiveItems_args();
-
 
7395
        args.write(prot);
-
 
7396
        prot.writeMessageEnd();
-
 
7397
      }
-
 
7398
 
-
 
7399
      public List<Item> getResult() throws org.apache.thrift.TException {
-
 
7400
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7401
          throw new IllegalStateException("Method call not finished!");
-
 
7402
        }
-
 
7403
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7404
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7405
        return (new Client(prot)).recv_getAllSnapdealListedActiveItems();
-
 
7406
      }
-
 
7407
    }
-
 
7408
 
7354
  }
7409
  }
7355
 
7410
 
7356
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7411
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7357
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7412
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7358
    public Processor(I iface) {
7413
    public Processor(I iface) {
Line 7479... Line 7534...
7479
      processMap.put("updateEbayItem", new updateEbayItem());
7534
      processMap.put("updateEbayItem", new updateEbayItem());
7480
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
7535
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
7481
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7536
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7482
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7537
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7483
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
7538
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
-
 
7539
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
7484
      return processMap;
7540
      return processMap;
7485
    }
7541
    }
7486
 
7542
 
7487
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7543
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7488
      public addItem() {
7544
      public addItem() {
Line 9541... Line 9597...
9541
        result.success = iface.getAllItemstoListOnNonFba();
9597
        result.success = iface.getAllItemstoListOnNonFba();
9542
        return result;
9598
        return result;
9543
      }
9599
      }
9544
    }
9600
    }
9545
 
9601
 
-
 
9602
    private static class getAllSnapdealListedActiveItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealListedActiveItems_args> {
-
 
9603
      public getAllSnapdealListedActiveItems() {
-
 
9604
        super("getAllSnapdealListedActiveItems");
-
 
9605
      }
-
 
9606
 
-
 
9607
      protected getAllSnapdealListedActiveItems_args getEmptyArgsInstance() {
-
 
9608
        return new getAllSnapdealListedActiveItems_args();
-
 
9609
      }
-
 
9610
 
-
 
9611
      protected getAllSnapdealListedActiveItems_result getResult(I iface, getAllSnapdealListedActiveItems_args args) throws org.apache.thrift.TException {
-
 
9612
        getAllSnapdealListedActiveItems_result result = new getAllSnapdealListedActiveItems_result();
-
 
9613
        result.success = iface.getAllSnapdealListedActiveItems();
-
 
9614
        return result;
-
 
9615
      }
-
 
9616
    }
-
 
9617
 
9546
  }
9618
  }
9547
 
9619
 
9548
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
9620
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
9549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
9621
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
9550
 
9622
 
Line 84499... Line 84571...
84499
      boolean first = true;
84571
      boolean first = true;
84500
 
84572
 
84501
      sb.append("success:");
84573
      sb.append("success:");
84502
      if (this.success == null) {
84574
      if (this.success == null) {
84503
        sb.append("null");
84575
        sb.append("null");
-
 
84576
      } else {
-
 
84577
        sb.append(this.success);
-
 
84578
      }
-
 
84579
      first = false;
-
 
84580
      sb.append(")");
-
 
84581
      return sb.toString();
-
 
84582
    }
-
 
84583
 
-
 
84584
    public void validate() throws org.apache.thrift.TException {
-
 
84585
      // check for required fields
-
 
84586
    }
-
 
84587
 
-
 
84588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
84589
      try {
-
 
84590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
84591
      } catch (org.apache.thrift.TException te) {
-
 
84592
        throw new java.io.IOException(te);
-
 
84593
      }
-
 
84594
    }
-
 
84595
 
-
 
84596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
84597
      try {
-
 
84598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
84599
      } catch (org.apache.thrift.TException te) {
-
 
84600
        throw new java.io.IOException(te);
-
 
84601
      }
-
 
84602
    }
-
 
84603
 
-
 
84604
  }
-
 
84605
 
-
 
84606
  public static class getAllSnapdealListedActiveItems_args implements org.apache.thrift.TBase<getAllSnapdealListedActiveItems_args, getAllSnapdealListedActiveItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
84607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealListedActiveItems_args");
-
 
84608
 
-
 
84609
 
-
 
84610
 
-
 
84611
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
84612
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
84613
;
-
 
84614
 
-
 
84615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
84616
 
-
 
84617
      static {
-
 
84618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
84619
          byName.put(field.getFieldName(), field);
-
 
84620
        }
-
 
84621
      }
-
 
84622
 
-
 
84623
      /**
-
 
84624
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
84625
       */
-
 
84626
      public static _Fields findByThriftId(int fieldId) {
-
 
84627
        switch(fieldId) {
-
 
84628
          default:
-
 
84629
            return null;
-
 
84630
        }
-
 
84631
      }
-
 
84632
 
-
 
84633
      /**
-
 
84634
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
84635
       * if it is not found.
-
 
84636
       */
-
 
84637
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
84638
        _Fields fields = findByThriftId(fieldId);
-
 
84639
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
84640
        return fields;
-
 
84641
      }
-
 
84642
 
-
 
84643
      /**
-
 
84644
       * Find the _Fields constant that matches name, or null if its not found.
-
 
84645
       */
-
 
84646
      public static _Fields findByName(String name) {
-
 
84647
        return byName.get(name);
-
 
84648
      }
-
 
84649
 
-
 
84650
      private final short _thriftId;
-
 
84651
      private final String _fieldName;
-
 
84652
 
-
 
84653
      _Fields(short thriftId, String fieldName) {
-
 
84654
        _thriftId = thriftId;
-
 
84655
        _fieldName = fieldName;
-
 
84656
      }
-
 
84657
 
-
 
84658
      public short getThriftFieldId() {
-
 
84659
        return _thriftId;
-
 
84660
      }
-
 
84661
 
-
 
84662
      public String getFieldName() {
-
 
84663
        return _fieldName;
-
 
84664
      }
-
 
84665
    }
-
 
84666
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
84667
    static {
-
 
84668
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
84669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
84670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealListedActiveItems_args.class, metaDataMap);
-
 
84671
    }
-
 
84672
 
-
 
84673
    public getAllSnapdealListedActiveItems_args() {
-
 
84674
    }
-
 
84675
 
-
 
84676
    /**
-
 
84677
     * Performs a deep copy on <i>other</i>.
-
 
84678
     */
-
 
84679
    public getAllSnapdealListedActiveItems_args(getAllSnapdealListedActiveItems_args other) {
-
 
84680
    }
-
 
84681
 
-
 
84682
    public getAllSnapdealListedActiveItems_args deepCopy() {
-
 
84683
      return new getAllSnapdealListedActiveItems_args(this);
-
 
84684
    }
-
 
84685
 
-
 
84686
    @Override
-
 
84687
    public void clear() {
-
 
84688
    }
-
 
84689
 
-
 
84690
    public void setFieldValue(_Fields field, Object value) {
-
 
84691
      switch (field) {
-
 
84692
      }
-
 
84693
    }
-
 
84694
 
-
 
84695
    public Object getFieldValue(_Fields field) {
-
 
84696
      switch (field) {
-
 
84697
      }
-
 
84698
      throw new IllegalStateException();
-
 
84699
    }
-
 
84700
 
-
 
84701
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
84702
    public boolean isSet(_Fields field) {
-
 
84703
      if (field == null) {
-
 
84704
        throw new IllegalArgumentException();
-
 
84705
      }
-
 
84706
 
-
 
84707
      switch (field) {
-
 
84708
      }
-
 
84709
      throw new IllegalStateException();
-
 
84710
    }
-
 
84711
 
-
 
84712
    @Override
-
 
84713
    public boolean equals(Object that) {
-
 
84714
      if (that == null)
-
 
84715
        return false;
-
 
84716
      if (that instanceof getAllSnapdealListedActiveItems_args)
-
 
84717
        return this.equals((getAllSnapdealListedActiveItems_args)that);
-
 
84718
      return false;
-
 
84719
    }
-
 
84720
 
-
 
84721
    public boolean equals(getAllSnapdealListedActiveItems_args that) {
-
 
84722
      if (that == null)
-
 
84723
        return false;
-
 
84724
 
-
 
84725
      return true;
-
 
84726
    }
-
 
84727
 
-
 
84728
    @Override
-
 
84729
    public int hashCode() {
-
 
84730
      return 0;
-
 
84731
    }
-
 
84732
 
-
 
84733
    public int compareTo(getAllSnapdealListedActiveItems_args other) {
-
 
84734
      if (!getClass().equals(other.getClass())) {
-
 
84735
        return getClass().getName().compareTo(other.getClass().getName());
-
 
84736
      }
-
 
84737
 
-
 
84738
      int lastComparison = 0;
-
 
84739
      getAllSnapdealListedActiveItems_args typedOther = (getAllSnapdealListedActiveItems_args)other;
-
 
84740
 
-
 
84741
      return 0;
-
 
84742
    }
-
 
84743
 
-
 
84744
    public _Fields fieldForId(int fieldId) {
-
 
84745
      return _Fields.findByThriftId(fieldId);
-
 
84746
    }
-
 
84747
 
-
 
84748
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
84749
      org.apache.thrift.protocol.TField field;
-
 
84750
      iprot.readStructBegin();
-
 
84751
      while (true)
-
 
84752
      {
-
 
84753
        field = iprot.readFieldBegin();
-
 
84754
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
84755
          break;
-
 
84756
        }
-
 
84757
        switch (field.id) {
-
 
84758
          default:
-
 
84759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
84760
        }
-
 
84761
        iprot.readFieldEnd();
-
 
84762
      }
-
 
84763
      iprot.readStructEnd();
-
 
84764
      validate();
-
 
84765
    }
-
 
84766
 
-
 
84767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
84768
      validate();
-
 
84769
 
-
 
84770
      oprot.writeStructBegin(STRUCT_DESC);
-
 
84771
      oprot.writeFieldStop();
-
 
84772
      oprot.writeStructEnd();
-
 
84773
    }
-
 
84774
 
-
 
84775
    @Override
-
 
84776
    public String toString() {
-
 
84777
      StringBuilder sb = new StringBuilder("getAllSnapdealListedActiveItems_args(");
-
 
84778
      boolean first = true;
-
 
84779
 
-
 
84780
      sb.append(")");
-
 
84781
      return sb.toString();
-
 
84782
    }
-
 
84783
 
-
 
84784
    public void validate() throws org.apache.thrift.TException {
-
 
84785
      // check for required fields
-
 
84786
    }
-
 
84787
 
-
 
84788
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
84789
      try {
-
 
84790
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
84791
      } catch (org.apache.thrift.TException te) {
-
 
84792
        throw new java.io.IOException(te);
-
 
84793
      }
-
 
84794
    }
-
 
84795
 
-
 
84796
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
84797
      try {
-
 
84798
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
84799
      } catch (org.apache.thrift.TException te) {
-
 
84800
        throw new java.io.IOException(te);
-
 
84801
      }
-
 
84802
    }
-
 
84803
 
-
 
84804
  }
-
 
84805
 
-
 
84806
  public static class getAllSnapdealListedActiveItems_result implements org.apache.thrift.TBase<getAllSnapdealListedActiveItems_result, getAllSnapdealListedActiveItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
84807
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealListedActiveItems_result");
-
 
84808
 
-
 
84809
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
84810
 
-
 
84811
    private List<Item> success; // required
-
 
84812
 
-
 
84813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
84814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
84815
      SUCCESS((short)0, "success");
-
 
84816
 
-
 
84817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
84818
 
-
 
84819
      static {
-
 
84820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
84821
          byName.put(field.getFieldName(), field);
-
 
84822
        }
-
 
84823
      }
-
 
84824
 
-
 
84825
      /**
-
 
84826
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
84827
       */
-
 
84828
      public static _Fields findByThriftId(int fieldId) {
-
 
84829
        switch(fieldId) {
-
 
84830
          case 0: // SUCCESS
-
 
84831
            return SUCCESS;
-
 
84832
          default:
-
 
84833
            return null;
-
 
84834
        }
-
 
84835
      }
-
 
84836
 
-
 
84837
      /**
-
 
84838
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
84839
       * if it is not found.
-
 
84840
       */
-
 
84841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
84842
        _Fields fields = findByThriftId(fieldId);
-
 
84843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
84844
        return fields;
-
 
84845
      }
-
 
84846
 
-
 
84847
      /**
-
 
84848
       * Find the _Fields constant that matches name, or null if its not found.
-
 
84849
       */
-
 
84850
      public static _Fields findByName(String name) {
-
 
84851
        return byName.get(name);
-
 
84852
      }
-
 
84853
 
-
 
84854
      private final short _thriftId;
-
 
84855
      private final String _fieldName;
-
 
84856
 
-
 
84857
      _Fields(short thriftId, String fieldName) {
-
 
84858
        _thriftId = thriftId;
-
 
84859
        _fieldName = fieldName;
-
 
84860
      }
-
 
84861
 
-
 
84862
      public short getThriftFieldId() {
-
 
84863
        return _thriftId;
-
 
84864
      }
-
 
84865
 
-
 
84866
      public String getFieldName() {
-
 
84867
        return _fieldName;
-
 
84868
      }
-
 
84869
    }
-
 
84870
 
-
 
84871
    // isset id assignments
-
 
84872
 
-
 
84873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
84874
    static {
-
 
84875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
84876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
84877
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
84878
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
84879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
84880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealListedActiveItems_result.class, metaDataMap);
-
 
84881
    }
-
 
84882
 
-
 
84883
    public getAllSnapdealListedActiveItems_result() {
-
 
84884
    }
-
 
84885
 
-
 
84886
    public getAllSnapdealListedActiveItems_result(
-
 
84887
      List<Item> success)
-
 
84888
    {
-
 
84889
      this();
-
 
84890
      this.success = success;
-
 
84891
    }
-
 
84892
 
-
 
84893
    /**
-
 
84894
     * Performs a deep copy on <i>other</i>.
-
 
84895
     */
-
 
84896
    public getAllSnapdealListedActiveItems_result(getAllSnapdealListedActiveItems_result other) {
-
 
84897
      if (other.isSetSuccess()) {
-
 
84898
        List<Item> __this__success = new ArrayList<Item>();
-
 
84899
        for (Item other_element : other.success) {
-
 
84900
          __this__success.add(new Item(other_element));
-
 
84901
        }
-
 
84902
        this.success = __this__success;
-
 
84903
      }
-
 
84904
    }
-
 
84905
 
-
 
84906
    public getAllSnapdealListedActiveItems_result deepCopy() {
-
 
84907
      return new getAllSnapdealListedActiveItems_result(this);
-
 
84908
    }
-
 
84909
 
-
 
84910
    @Override
-
 
84911
    public void clear() {
-
 
84912
      this.success = null;
-
 
84913
    }
-
 
84914
 
-
 
84915
    public int getSuccessSize() {
-
 
84916
      return (this.success == null) ? 0 : this.success.size();
-
 
84917
    }
-
 
84918
 
-
 
84919
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
84920
      return (this.success == null) ? null : this.success.iterator();
-
 
84921
    }
-
 
84922
 
-
 
84923
    public void addToSuccess(Item elem) {
-
 
84924
      if (this.success == null) {
-
 
84925
        this.success = new ArrayList<Item>();
-
 
84926
      }
-
 
84927
      this.success.add(elem);
-
 
84928
    }
-
 
84929
 
-
 
84930
    public List<Item> getSuccess() {
-
 
84931
      return this.success;
-
 
84932
    }
-
 
84933
 
-
 
84934
    public void setSuccess(List<Item> success) {
-
 
84935
      this.success = success;
-
 
84936
    }
-
 
84937
 
-
 
84938
    public void unsetSuccess() {
-
 
84939
      this.success = null;
-
 
84940
    }
-
 
84941
 
-
 
84942
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
84943
    public boolean isSetSuccess() {
-
 
84944
      return this.success != null;
-
 
84945
    }
-
 
84946
 
-
 
84947
    public void setSuccessIsSet(boolean value) {
-
 
84948
      if (!value) {
-
 
84949
        this.success = null;
-
 
84950
      }
-
 
84951
    }
-
 
84952
 
-
 
84953
    public void setFieldValue(_Fields field, Object value) {
-
 
84954
      switch (field) {
-
 
84955
      case SUCCESS:
-
 
84956
        if (value == null) {
-
 
84957
          unsetSuccess();
-
 
84958
        } else {
-
 
84959
          setSuccess((List<Item>)value);
-
 
84960
        }
-
 
84961
        break;
-
 
84962
 
-
 
84963
      }
-
 
84964
    }
-
 
84965
 
-
 
84966
    public Object getFieldValue(_Fields field) {
-
 
84967
      switch (field) {
-
 
84968
      case SUCCESS:
-
 
84969
        return getSuccess();
-
 
84970
 
-
 
84971
      }
-
 
84972
      throw new IllegalStateException();
-
 
84973
    }
-
 
84974
 
-
 
84975
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
84976
    public boolean isSet(_Fields field) {
-
 
84977
      if (field == null) {
-
 
84978
        throw new IllegalArgumentException();
-
 
84979
      }
-
 
84980
 
-
 
84981
      switch (field) {
-
 
84982
      case SUCCESS:
-
 
84983
        return isSetSuccess();
-
 
84984
      }
-
 
84985
      throw new IllegalStateException();
-
 
84986
    }
-
 
84987
 
-
 
84988
    @Override
-
 
84989
    public boolean equals(Object that) {
-
 
84990
      if (that == null)
-
 
84991
        return false;
-
 
84992
      if (that instanceof getAllSnapdealListedActiveItems_result)
-
 
84993
        return this.equals((getAllSnapdealListedActiveItems_result)that);
-
 
84994
      return false;
-
 
84995
    }
-
 
84996
 
-
 
84997
    public boolean equals(getAllSnapdealListedActiveItems_result that) {
-
 
84998
      if (that == null)
-
 
84999
        return false;
-
 
85000
 
-
 
85001
      boolean this_present_success = true && this.isSetSuccess();
-
 
85002
      boolean that_present_success = true && that.isSetSuccess();
-
 
85003
      if (this_present_success || that_present_success) {
-
 
85004
        if (!(this_present_success && that_present_success))
-
 
85005
          return false;
-
 
85006
        if (!this.success.equals(that.success))
-
 
85007
          return false;
-
 
85008
      }
-
 
85009
 
-
 
85010
      return true;
-
 
85011
    }
-
 
85012
 
-
 
85013
    @Override
-
 
85014
    public int hashCode() {
-
 
85015
      return 0;
-
 
85016
    }
-
 
85017
 
-
 
85018
    public int compareTo(getAllSnapdealListedActiveItems_result other) {
-
 
85019
      if (!getClass().equals(other.getClass())) {
-
 
85020
        return getClass().getName().compareTo(other.getClass().getName());
-
 
85021
      }
-
 
85022
 
-
 
85023
      int lastComparison = 0;
-
 
85024
      getAllSnapdealListedActiveItems_result typedOther = (getAllSnapdealListedActiveItems_result)other;
-
 
85025
 
-
 
85026
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
85027
      if (lastComparison != 0) {
-
 
85028
        return lastComparison;
-
 
85029
      }
-
 
85030
      if (isSetSuccess()) {
-
 
85031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
85032
        if (lastComparison != 0) {
-
 
85033
          return lastComparison;
-
 
85034
        }
-
 
85035
      }
-
 
85036
      return 0;
-
 
85037
    }
-
 
85038
 
-
 
85039
    public _Fields fieldForId(int fieldId) {
-
 
85040
      return _Fields.findByThriftId(fieldId);
-
 
85041
    }
-
 
85042
 
-
 
85043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
85044
      org.apache.thrift.protocol.TField field;
-
 
85045
      iprot.readStructBegin();
-
 
85046
      while (true)
-
 
85047
      {
-
 
85048
        field = iprot.readFieldBegin();
-
 
85049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
85050
          break;
-
 
85051
        }
-
 
85052
        switch (field.id) {
-
 
85053
          case 0: // SUCCESS
-
 
85054
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
85055
              {
-
 
85056
                org.apache.thrift.protocol.TList _list266 = iprot.readListBegin();
-
 
85057
                this.success = new ArrayList<Item>(_list266.size);
-
 
85058
                for (int _i267 = 0; _i267 < _list266.size; ++_i267)
-
 
85059
                {
-
 
85060
                  Item _elem268; // required
-
 
85061
                  _elem268 = new Item();
-
 
85062
                  _elem268.read(iprot);
-
 
85063
                  this.success.add(_elem268);
-
 
85064
                }
-
 
85065
                iprot.readListEnd();
-
 
85066
              }
-
 
85067
            } else { 
-
 
85068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
85069
            }
-
 
85070
            break;
-
 
85071
          default:
-
 
85072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
85073
        }
-
 
85074
        iprot.readFieldEnd();
-
 
85075
      }
-
 
85076
      iprot.readStructEnd();
-
 
85077
      validate();
-
 
85078
    }
-
 
85079
 
-
 
85080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
85081
      oprot.writeStructBegin(STRUCT_DESC);
-
 
85082
 
-
 
85083
      if (this.isSetSuccess()) {
-
 
85084
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
85085
        {
-
 
85086
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
85087
          for (Item _iter269 : this.success)
-
 
85088
          {
-
 
85089
            _iter269.write(oprot);
-
 
85090
          }
-
 
85091
          oprot.writeListEnd();
-
 
85092
        }
-
 
85093
        oprot.writeFieldEnd();
-
 
85094
      }
-
 
85095
      oprot.writeFieldStop();
-
 
85096
      oprot.writeStructEnd();
-
 
85097
    }
-
 
85098
 
-
 
85099
    @Override
-
 
85100
    public String toString() {
-
 
85101
      StringBuilder sb = new StringBuilder("getAllSnapdealListedActiveItems_result(");
-
 
85102
      boolean first = true;
-
 
85103
 
-
 
85104
      sb.append("success:");
-
 
85105
      if (this.success == null) {
-
 
85106
        sb.append("null");
84504
      } else {
85107
      } else {
84505
        sb.append(this.success);
85108
        sb.append(this.success);
84506
      }
85109
      }
84507
      first = false;
85110
      first = false;
84508
      sb.append(")");
85111
      sb.append(")");