Subversion Repositories SmartDukaan

Rev

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

Rev 8619 Rev 8739
Line 464... Line 464...
464
 
464
 
465
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
465
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
466
 
466
 
467
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;
467
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;
468
 
468
 
-
 
469
    public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException;
-
 
470
 
-
 
471
    public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException;
-
 
472
 
-
 
473
    public List<SnapdealItem> getAllSnapdealItems() throws org.apache.thrift.TException;
-
 
474
 
469
  }
475
  }
470
 
476
 
471
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
477
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
472
 
478
 
473
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
479
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 712... Line 718...
712
 
718
 
713
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
719
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
714
 
720
 
715
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;
721
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;
716
 
722
 
-
 
723
    public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
724
 
-
 
725
    public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
726
 
-
 
727
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
728
 
717
  }
729
  }
718
 
730
 
719
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
731
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
720
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
732
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
721
      public Factory() {}
733
      public Factory() {}
Line 3623... Line 3635...
3623
      updateAsin_result result = new updateAsin_result();
3635
      updateAsin_result result = new updateAsin_result();
3624
      receiveBase(result, "updateAsin");
3636
      receiveBase(result, "updateAsin");
3625
      return;
3637
      return;
3626
    }
3638
    }
3627
 
3639
 
-
 
3640
    public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException
-
 
3641
    {
-
 
3642
      send_addOrUpdateSnapdealItem(snapdealitem);
-
 
3643
      return recv_addOrUpdateSnapdealItem();
-
 
3644
    }
-
 
3645
 
-
 
3646
    public void send_addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException
-
 
3647
    {
-
 
3648
      addOrUpdateSnapdealItem_args args = new addOrUpdateSnapdealItem_args();
-
 
3649
      args.setSnapdealitem(snapdealitem);
-
 
3650
      sendBase("addOrUpdateSnapdealItem", args);
-
 
3651
    }
-
 
3652
 
-
 
3653
    public boolean recv_addOrUpdateSnapdealItem() throws org.apache.thrift.TException
-
 
3654
    {
-
 
3655
      addOrUpdateSnapdealItem_result result = new addOrUpdateSnapdealItem_result();
-
 
3656
      receiveBase(result, "addOrUpdateSnapdealItem");
-
 
3657
      if (result.isSetSuccess()) {
-
 
3658
        return result.success;
-
 
3659
      }
-
 
3660
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
-
 
3661
    }
-
 
3662
 
-
 
3663
    public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException
-
 
3664
    {
-
 
3665
      send_getSnapdealItem(item_id);
-
 
3666
      return recv_getSnapdealItem();
-
 
3667
    }
-
 
3668
 
-
 
3669
    public void send_getSnapdealItem(long item_id) throws org.apache.thrift.TException
-
 
3670
    {
-
 
3671
      getSnapdealItem_args args = new getSnapdealItem_args();
-
 
3672
      args.setItem_id(item_id);
-
 
3673
      sendBase("getSnapdealItem", args);
-
 
3674
    }
-
 
3675
 
-
 
3676
    public SnapdealItem recv_getSnapdealItem() throws org.apache.thrift.TException
-
 
3677
    {
-
 
3678
      getSnapdealItem_result result = new getSnapdealItem_result();
-
 
3679
      receiveBase(result, "getSnapdealItem");
-
 
3680
      if (result.isSetSuccess()) {
-
 
3681
        return result.success;
-
 
3682
      }
-
 
3683
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
-
 
3684
    }
-
 
3685
 
-
 
3686
    public List<SnapdealItem> getAllSnapdealItems() throws org.apache.thrift.TException
-
 
3687
    {
-
 
3688
      send_getAllSnapdealItems();
-
 
3689
      return recv_getAllSnapdealItems();
-
 
3690
    }
-
 
3691
 
-
 
3692
    public void send_getAllSnapdealItems() throws org.apache.thrift.TException
-
 
3693
    {
-
 
3694
      getAllSnapdealItems_args args = new getAllSnapdealItems_args();
-
 
3695
      sendBase("getAllSnapdealItems", args);
-
 
3696
    }
-
 
3697
 
-
 
3698
    public List<SnapdealItem> recv_getAllSnapdealItems() throws org.apache.thrift.TException
-
 
3699
    {
-
 
3700
      getAllSnapdealItems_result result = new getAllSnapdealItems_result();
-
 
3701
      receiveBase(result, "getAllSnapdealItems");
-
 
3702
      if (result.isSetSuccess()) {
-
 
3703
        return result.success;
-
 
3704
      }
-
 
3705
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
-
 
3706
    }
-
 
3707
 
3628
  }
3708
  }
3629
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3709
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3630
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3710
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3631
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3711
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3632
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3712
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7641... Line 7721...
7641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7721
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7642
        (new Client(prot)).recv_updateAsin();
7722
        (new Client(prot)).recv_updateAsin();
7643
      }
7723
      }
7644
    }
7724
    }
7645
 
7725
 
-
 
7726
    public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
7727
      checkReady();
-
 
7728
      addOrUpdateSnapdealItem_call method_call = new addOrUpdateSnapdealItem_call(snapdealitem, resultHandler, this, ___protocolFactory, ___transport);
-
 
7729
      this.___currentMethod = method_call;
-
 
7730
      ___manager.call(method_call);
-
 
7731
    }
-
 
7732
 
-
 
7733
    public static class addOrUpdateSnapdealItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7734
      private SnapdealItem snapdealitem;
-
 
7735
      public addOrUpdateSnapdealItem_call(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealItem_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 {
-
 
7736
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7737
        this.snapdealitem = snapdealitem;
-
 
7738
      }
-
 
7739
 
-
 
7740
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7741
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateSnapdealItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7742
        addOrUpdateSnapdealItem_args args = new addOrUpdateSnapdealItem_args();
-
 
7743
        args.setSnapdealitem(snapdealitem);
-
 
7744
        args.write(prot);
-
 
7745
        prot.writeMessageEnd();
-
 
7746
      }
-
 
7747
 
-
 
7748
      public boolean getResult() throws org.apache.thrift.TException {
-
 
7749
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7750
          throw new IllegalStateException("Method call not finished!");
-
 
7751
        }
-
 
7752
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7753
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7754
        return (new Client(prot)).recv_addOrUpdateSnapdealItem();
-
 
7755
      }
-
 
7756
    }
-
 
7757
 
-
 
7758
    public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
7759
      checkReady();
-
 
7760
      getSnapdealItem_call method_call = new getSnapdealItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
7761
      this.___currentMethod = method_call;
-
 
7762
      ___manager.call(method_call);
-
 
7763
    }
-
 
7764
 
-
 
7765
    public static class getSnapdealItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7766
      private long item_id;
-
 
7767
      public getSnapdealItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItem_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 {
-
 
7768
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7769
        this.item_id = item_id;
-
 
7770
      }
-
 
7771
 
-
 
7772
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7773
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7774
        getSnapdealItem_args args = new getSnapdealItem_args();
-
 
7775
        args.setItem_id(item_id);
-
 
7776
        args.write(prot);
-
 
7777
        prot.writeMessageEnd();
-
 
7778
      }
-
 
7779
 
-
 
7780
      public SnapdealItem getResult() throws org.apache.thrift.TException {
-
 
7781
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7782
          throw new IllegalStateException("Method call not finished!");
-
 
7783
        }
-
 
7784
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7785
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7786
        return (new Client(prot)).recv_getSnapdealItem();
-
 
7787
      }
-
 
7788
    }
-
 
7789
 
-
 
7790
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
7791
      checkReady();
-
 
7792
      getAllSnapdealItems_call method_call = new getAllSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
7793
      this.___currentMethod = method_call;
-
 
7794
      ___manager.call(method_call);
-
 
7795
    }
-
 
7796
 
-
 
7797
    public static class getAllSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7798
      public getAllSnapdealItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_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 {
-
 
7799
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7800
      }
-
 
7801
 
-
 
7802
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7803
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7804
        getAllSnapdealItems_args args = new getAllSnapdealItems_args();
-
 
7805
        args.write(prot);
-
 
7806
        prot.writeMessageEnd();
-
 
7807
      }
-
 
7808
 
-
 
7809
      public List<SnapdealItem> getResult() throws org.apache.thrift.TException {
-
 
7810
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7811
          throw new IllegalStateException("Method call not finished!");
-
 
7812
        }
-
 
7813
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7814
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7815
        return (new Client(prot)).recv_getAllSnapdealItems();
-
 
7816
      }
-
 
7817
    }
-
 
7818
 
7646
  }
7819
  }
7647
 
7820
 
7648
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7821
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7649
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7822
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7650
    public Processor(I iface) {
7823
    public Processor(I iface) {
Line 7776... Line 7949...
7776
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7949
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7777
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7950
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7778
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
7951
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
7779
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
7952
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
7780
      processMap.put("updateAsin", new updateAsin());
7953
      processMap.put("updateAsin", new updateAsin());
-
 
7954
      processMap.put("addOrUpdateSnapdealItem", new addOrUpdateSnapdealItem());
-
 
7955
      processMap.put("getSnapdealItem", new getSnapdealItem());
-
 
7956
      processMap.put("getAllSnapdealItems", new getAllSnapdealItems());
7781
      return processMap;
7957
      return processMap;
7782
    }
7958
    }
7783
 
7959
 
7784
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7960
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7785
      public addItem() {
7961
      public addItem() {
Line 9920... Line 10096...
9920
        iface.updateAsin(args.item);
10096
        iface.updateAsin(args.item);
9921
        return result;
10097
        return result;
9922
      }
10098
      }
9923
    }
10099
    }
9924
 
10100
 
-
 
10101
    private static class addOrUpdateSnapdealItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateSnapdealItem_args> {
-
 
10102
      public addOrUpdateSnapdealItem() {
-
 
10103
        super("addOrUpdateSnapdealItem");
-
 
10104
      }
-
 
10105
 
-
 
10106
      protected addOrUpdateSnapdealItem_args getEmptyArgsInstance() {
-
 
10107
        return new addOrUpdateSnapdealItem_args();
-
 
10108
      }
-
 
10109
 
-
 
10110
      protected addOrUpdateSnapdealItem_result getResult(I iface, addOrUpdateSnapdealItem_args args) throws org.apache.thrift.TException {
-
 
10111
        addOrUpdateSnapdealItem_result result = new addOrUpdateSnapdealItem_result();
-
 
10112
        result.success = iface.addOrUpdateSnapdealItem(args.snapdealitem);
-
 
10113
        result.setSuccessIsSet(true);
-
 
10114
        return result;
-
 
10115
      }
-
 
10116
    }
-
 
10117
 
-
 
10118
    private static class getSnapdealItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItem_args> {
-
 
10119
      public getSnapdealItem() {
-
 
10120
        super("getSnapdealItem");
-
 
10121
      }
-
 
10122
 
-
 
10123
      protected getSnapdealItem_args getEmptyArgsInstance() {
-
 
10124
        return new getSnapdealItem_args();
-
 
10125
      }
-
 
10126
 
-
 
10127
      protected getSnapdealItem_result getResult(I iface, getSnapdealItem_args args) throws org.apache.thrift.TException {
-
 
10128
        getSnapdealItem_result result = new getSnapdealItem_result();
-
 
10129
        result.success = iface.getSnapdealItem(args.item_id);
-
 
10130
        return result;
-
 
10131
      }
-
 
10132
    }
-
 
10133
 
-
 
10134
    private static class getAllSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealItems_args> {
-
 
10135
      public getAllSnapdealItems() {
-
 
10136
        super("getAllSnapdealItems");
-
 
10137
      }
-
 
10138
 
-
 
10139
      protected getAllSnapdealItems_args getEmptyArgsInstance() {
-
 
10140
        return new getAllSnapdealItems_args();
-
 
10141
      }
-
 
10142
 
-
 
10143
      protected getAllSnapdealItems_result getResult(I iface, getAllSnapdealItems_args args) throws org.apache.thrift.TException {
-
 
10144
        getAllSnapdealItems_result result = new getAllSnapdealItems_result();
-
 
10145
        result.success = iface.getAllSnapdealItems();
-
 
10146
        return result;
-
 
10147
      }
-
 
10148
    }
-
 
10149
 
9925
  }
10150
  }
9926
 
10151
 
9927
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
10152
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
9928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
10153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
9929
 
10154
 
Line 49332... Line 49557...
49332
      }
49557
      }
49333
    }
49558
    }
49334
 
49559
 
49335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49336
      try {
49561
      try {
-
 
49562
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
49563
        __isset_bit_vector = new BitSet(1);
49337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49338
      } catch (org.apache.thrift.TException te) {
49565
      } catch (org.apache.thrift.TException te) {
49339
        throw new java.io.IOException(te);
49566
        throw new java.io.IOException(te);
49340
      }
49567
      }
49341
    }
49568
    }
Line 87905... Line 88132...
87905
      sb.append(")");
88132
      sb.append(")");
87906
      return sb.toString();
88133
      return sb.toString();
87907
    }
88134
    }
87908
 
88135
 
87909
    public void validate() throws org.apache.thrift.TException {
88136
    public void validate() throws org.apache.thrift.TException {
-
 
88137
      // check for required fields
-
 
88138
    }
-
 
88139
 
-
 
88140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
88141
      try {
-
 
88142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
88143
      } catch (org.apache.thrift.TException te) {
-
 
88144
        throw new java.io.IOException(te);
-
 
88145
      }
-
 
88146
    }
-
 
88147
 
-
 
88148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
88149
      try {
-
 
88150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
88151
      } catch (org.apache.thrift.TException te) {
-
 
88152
        throw new java.io.IOException(te);
-
 
88153
      }
-
 
88154
    }
-
 
88155
 
-
 
88156
  }
-
 
88157
 
-
 
88158
  public static class addOrUpdateSnapdealItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_args, addOrUpdateSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
88159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_args");
-
 
88160
 
-
 
88161
    private static final org.apache.thrift.protocol.TField SNAPDEALITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);
-
 
88162
 
-
 
88163
    private SnapdealItem snapdealitem; // required
-
 
88164
 
-
 
88165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
88166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
88167
      SNAPDEALITEM((short)-1, "snapdealitem");
-
 
88168
 
-
 
88169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
88170
 
-
 
88171
      static {
-
 
88172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
88173
          byName.put(field.getFieldName(), field);
-
 
88174
        }
-
 
88175
      }
-
 
88176
 
-
 
88177
      /**
-
 
88178
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
88179
       */
-
 
88180
      public static _Fields findByThriftId(int fieldId) {
-
 
88181
        switch(fieldId) {
-
 
88182
          case -1: // SNAPDEALITEM
-
 
88183
            return SNAPDEALITEM;
-
 
88184
          default:
-
 
88185
            return null;
-
 
88186
        }
-
 
88187
      }
-
 
88188
 
-
 
88189
      /**
-
 
88190
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
88191
       * if it is not found.
-
 
88192
       */
-
 
88193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
88194
        _Fields fields = findByThriftId(fieldId);
-
 
88195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
88196
        return fields;
-
 
88197
      }
-
 
88198
 
-
 
88199
      /**
-
 
88200
       * Find the _Fields constant that matches name, or null if its not found.
-
 
88201
       */
-
 
88202
      public static _Fields findByName(String name) {
-
 
88203
        return byName.get(name);
-
 
88204
      }
-
 
88205
 
-
 
88206
      private final short _thriftId;
-
 
88207
      private final String _fieldName;
-
 
88208
 
-
 
88209
      _Fields(short thriftId, String fieldName) {
-
 
88210
        _thriftId = thriftId;
-
 
88211
        _fieldName = fieldName;
-
 
88212
      }
-
 
88213
 
-
 
88214
      public short getThriftFieldId() {
-
 
88215
        return _thriftId;
-
 
88216
      }
-
 
88217
 
-
 
88218
      public String getFieldName() {
-
 
88219
        return _fieldName;
-
 
88220
      }
-
 
88221
    }
-
 
88222
 
-
 
88223
    // isset id assignments
-
 
88224
 
-
 
88225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
88226
    static {
-
 
88227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
88228
      tmpMap.put(_Fields.SNAPDEALITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88229
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
-
 
88230
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
88231
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_args.class, metaDataMap);
-
 
88232
    }
-
 
88233
 
-
 
88234
    public addOrUpdateSnapdealItem_args() {
-
 
88235
    }
-
 
88236
 
-
 
88237
    public addOrUpdateSnapdealItem_args(
-
 
88238
      SnapdealItem snapdealitem)
-
 
88239
    {
-
 
88240
      this();
-
 
88241
      this.snapdealitem = snapdealitem;
-
 
88242
    }
-
 
88243
 
-
 
88244
    /**
-
 
88245
     * Performs a deep copy on <i>other</i>.
-
 
88246
     */
-
 
88247
    public addOrUpdateSnapdealItem_args(addOrUpdateSnapdealItem_args other) {
-
 
88248
      if (other.isSetSnapdealitem()) {
-
 
88249
        this.snapdealitem = new SnapdealItem(other.snapdealitem);
-
 
88250
      }
-
 
88251
    }
-
 
88252
 
-
 
88253
    public addOrUpdateSnapdealItem_args deepCopy() {
-
 
88254
      return new addOrUpdateSnapdealItem_args(this);
-
 
88255
    }
-
 
88256
 
-
 
88257
    @Override
-
 
88258
    public void clear() {
-
 
88259
      this.snapdealitem = null;
-
 
88260
    }
-
 
88261
 
-
 
88262
    public SnapdealItem getSnapdealitem() {
-
 
88263
      return this.snapdealitem;
-
 
88264
    }
-
 
88265
 
-
 
88266
    public void setSnapdealitem(SnapdealItem snapdealitem) {
-
 
88267
      this.snapdealitem = snapdealitem;
-
 
88268
    }
-
 
88269
 
-
 
88270
    public void unsetSnapdealitem() {
-
 
88271
      this.snapdealitem = null;
-
 
88272
    }
-
 
88273
 
-
 
88274
    /** Returns true if field snapdealitem is set (has been assigned a value) and false otherwise */
-
 
88275
    public boolean isSetSnapdealitem() {
-
 
88276
      return this.snapdealitem != null;
-
 
88277
    }
-
 
88278
 
-
 
88279
    public void setSnapdealitemIsSet(boolean value) {
-
 
88280
      if (!value) {
-
 
88281
        this.snapdealitem = null;
-
 
88282
      }
-
 
88283
    }
-
 
88284
 
-
 
88285
    public void setFieldValue(_Fields field, Object value) {
-
 
88286
      switch (field) {
-
 
88287
      case SNAPDEALITEM:
-
 
88288
        if (value == null) {
-
 
88289
          unsetSnapdealitem();
-
 
88290
        } else {
-
 
88291
          setSnapdealitem((SnapdealItem)value);
-
 
88292
        }
-
 
88293
        break;
-
 
88294
 
-
 
88295
      }
-
 
88296
    }
-
 
88297
 
-
 
88298
    public Object getFieldValue(_Fields field) {
-
 
88299
      switch (field) {
-
 
88300
      case SNAPDEALITEM:
-
 
88301
        return getSnapdealitem();
-
 
88302
 
-
 
88303
      }
-
 
88304
      throw new IllegalStateException();
-
 
88305
    }
-
 
88306
 
-
 
88307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
88308
    public boolean isSet(_Fields field) {
-
 
88309
      if (field == null) {
-
 
88310
        throw new IllegalArgumentException();
-
 
88311
      }
-
 
88312
 
-
 
88313
      switch (field) {
-
 
88314
      case SNAPDEALITEM:
-
 
88315
        return isSetSnapdealitem();
-
 
88316
      }
-
 
88317
      throw new IllegalStateException();
-
 
88318
    }
-
 
88319
 
-
 
88320
    @Override
-
 
88321
    public boolean equals(Object that) {
-
 
88322
      if (that == null)
-
 
88323
        return false;
-
 
88324
      if (that instanceof addOrUpdateSnapdealItem_args)
-
 
88325
        return this.equals((addOrUpdateSnapdealItem_args)that);
-
 
88326
      return false;
-
 
88327
    }
-
 
88328
 
-
 
88329
    public boolean equals(addOrUpdateSnapdealItem_args that) {
-
 
88330
      if (that == null)
-
 
88331
        return false;
-
 
88332
 
-
 
88333
      boolean this_present_snapdealitem = true && this.isSetSnapdealitem();
-
 
88334
      boolean that_present_snapdealitem = true && that.isSetSnapdealitem();
-
 
88335
      if (this_present_snapdealitem || that_present_snapdealitem) {
-
 
88336
        if (!(this_present_snapdealitem && that_present_snapdealitem))
-
 
88337
          return false;
-
 
88338
        if (!this.snapdealitem.equals(that.snapdealitem))
-
 
88339
          return false;
-
 
88340
      }
-
 
88341
 
-
 
88342
      return true;
-
 
88343
    }
-
 
88344
 
-
 
88345
    @Override
-
 
88346
    public int hashCode() {
-
 
88347
      return 0;
-
 
88348
    }
-
 
88349
 
-
 
88350
    public int compareTo(addOrUpdateSnapdealItem_args other) {
-
 
88351
      if (!getClass().equals(other.getClass())) {
-
 
88352
        return getClass().getName().compareTo(other.getClass().getName());
-
 
88353
      }
-
 
88354
 
-
 
88355
      int lastComparison = 0;
-
 
88356
      addOrUpdateSnapdealItem_args typedOther = (addOrUpdateSnapdealItem_args)other;
-
 
88357
 
-
 
88358
      lastComparison = Boolean.valueOf(isSetSnapdealitem()).compareTo(typedOther.isSetSnapdealitem());
-
 
88359
      if (lastComparison != 0) {
-
 
88360
        return lastComparison;
-
 
88361
      }
-
 
88362
      if (isSetSnapdealitem()) {
-
 
88363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealitem, typedOther.snapdealitem);
-
 
88364
        if (lastComparison != 0) {
-
 
88365
          return lastComparison;
-
 
88366
        }
-
 
88367
      }
-
 
88368
      return 0;
-
 
88369
    }
-
 
88370
 
-
 
88371
    public _Fields fieldForId(int fieldId) {
-
 
88372
      return _Fields.findByThriftId(fieldId);
-
 
88373
    }
-
 
88374
 
-
 
88375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
88376
      org.apache.thrift.protocol.TField field;
-
 
88377
      iprot.readStructBegin();
-
 
88378
      while (true)
-
 
88379
      {
-
 
88380
        field = iprot.readFieldBegin();
-
 
88381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
88382
          break;
-
 
88383
        }
-
 
88384
        switch (field.id) {
-
 
88385
          case -1: // SNAPDEALITEM
-
 
88386
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
88387
              this.snapdealitem = new SnapdealItem();
-
 
88388
              this.snapdealitem.read(iprot);
-
 
88389
            } else { 
-
 
88390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88391
            }
-
 
88392
            break;
-
 
88393
          default:
-
 
88394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88395
        }
-
 
88396
        iprot.readFieldEnd();
-
 
88397
      }
-
 
88398
      iprot.readStructEnd();
-
 
88399
      validate();
-
 
88400
    }
-
 
88401
 
-
 
88402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
88403
      validate();
-
 
88404
 
-
 
88405
      oprot.writeStructBegin(STRUCT_DESC);
-
 
88406
      if (this.snapdealitem != null) {
-
 
88407
        oprot.writeFieldBegin(SNAPDEALITEM_FIELD_DESC);
-
 
88408
        this.snapdealitem.write(oprot);
-
 
88409
        oprot.writeFieldEnd();
-
 
88410
      }
-
 
88411
      oprot.writeFieldStop();
-
 
88412
      oprot.writeStructEnd();
-
 
88413
    }
-
 
88414
 
-
 
88415
    @Override
-
 
88416
    public String toString() {
-
 
88417
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_args(");
-
 
88418
      boolean first = true;
-
 
88419
 
-
 
88420
      sb.append("snapdealitem:");
-
 
88421
      if (this.snapdealitem == null) {
-
 
88422
        sb.append("null");
-
 
88423
      } else {
-
 
88424
        sb.append(this.snapdealitem);
-
 
88425
      }
-
 
88426
      first = false;
-
 
88427
      sb.append(")");
-
 
88428
      return sb.toString();
-
 
88429
    }
-
 
88430
 
-
 
88431
    public void validate() throws org.apache.thrift.TException {
-
 
88432
      // check for required fields
-
 
88433
    }
-
 
88434
 
-
 
88435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
88436
      try {
-
 
88437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
88438
      } catch (org.apache.thrift.TException te) {
-
 
88439
        throw new java.io.IOException(te);
-
 
88440
      }
-
 
88441
    }
-
 
88442
 
-
 
88443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
88444
      try {
-
 
88445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
88446
      } catch (org.apache.thrift.TException te) {
-
 
88447
        throw new java.io.IOException(te);
-
 
88448
      }
-
 
88449
    }
-
 
88450
 
-
 
88451
  }
-
 
88452
 
-
 
88453
  public static class addOrUpdateSnapdealItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_result, addOrUpdateSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
88454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_result");
-
 
88455
 
-
 
88456
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
88457
 
-
 
88458
    private boolean success; // required
-
 
88459
 
-
 
88460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
88461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
88462
      SUCCESS((short)0, "success");
-
 
88463
 
-
 
88464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
88465
 
-
 
88466
      static {
-
 
88467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
88468
          byName.put(field.getFieldName(), field);
-
 
88469
        }
-
 
88470
      }
-
 
88471
 
-
 
88472
      /**
-
 
88473
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
88474
       */
-
 
88475
      public static _Fields findByThriftId(int fieldId) {
-
 
88476
        switch(fieldId) {
-
 
88477
          case 0: // SUCCESS
-
 
88478
            return SUCCESS;
-
 
88479
          default:
-
 
88480
            return null;
-
 
88481
        }
-
 
88482
      }
-
 
88483
 
-
 
88484
      /**
-
 
88485
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
88486
       * if it is not found.
-
 
88487
       */
-
 
88488
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
88489
        _Fields fields = findByThriftId(fieldId);
-
 
88490
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
88491
        return fields;
-
 
88492
      }
-
 
88493
 
-
 
88494
      /**
-
 
88495
       * Find the _Fields constant that matches name, or null if its not found.
-
 
88496
       */
-
 
88497
      public static _Fields findByName(String name) {
-
 
88498
        return byName.get(name);
-
 
88499
      }
-
 
88500
 
-
 
88501
      private final short _thriftId;
-
 
88502
      private final String _fieldName;
-
 
88503
 
-
 
88504
      _Fields(short thriftId, String fieldName) {
-
 
88505
        _thriftId = thriftId;
-
 
88506
        _fieldName = fieldName;
-
 
88507
      }
-
 
88508
 
-
 
88509
      public short getThriftFieldId() {
-
 
88510
        return _thriftId;
-
 
88511
      }
-
 
88512
 
-
 
88513
      public String getFieldName() {
-
 
88514
        return _fieldName;
-
 
88515
      }
-
 
88516
    }
-
 
88517
 
-
 
88518
    // isset id assignments
-
 
88519
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
88520
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
88521
 
-
 
88522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
88523
    static {
-
 
88524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
88525
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88526
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
88527
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
88528
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_result.class, metaDataMap);
-
 
88529
    }
-
 
88530
 
-
 
88531
    public addOrUpdateSnapdealItem_result() {
-
 
88532
    }
-
 
88533
 
-
 
88534
    public addOrUpdateSnapdealItem_result(
-
 
88535
      boolean success)
-
 
88536
    {
-
 
88537
      this();
-
 
88538
      this.success = success;
-
 
88539
      setSuccessIsSet(true);
-
 
88540
    }
-
 
88541
 
-
 
88542
    /**
-
 
88543
     * Performs a deep copy on <i>other</i>.
-
 
88544
     */
-
 
88545
    public addOrUpdateSnapdealItem_result(addOrUpdateSnapdealItem_result other) {
-
 
88546
      __isset_bit_vector.clear();
-
 
88547
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
88548
      this.success = other.success;
-
 
88549
    }
-
 
88550
 
-
 
88551
    public addOrUpdateSnapdealItem_result deepCopy() {
-
 
88552
      return new addOrUpdateSnapdealItem_result(this);
-
 
88553
    }
-
 
88554
 
-
 
88555
    @Override
-
 
88556
    public void clear() {
-
 
88557
      setSuccessIsSet(false);
-
 
88558
      this.success = false;
-
 
88559
    }
-
 
88560
 
-
 
88561
    public boolean isSuccess() {
-
 
88562
      return this.success;
-
 
88563
    }
-
 
88564
 
-
 
88565
    public void setSuccess(boolean success) {
-
 
88566
      this.success = success;
-
 
88567
      setSuccessIsSet(true);
-
 
88568
    }
-
 
88569
 
-
 
88570
    public void unsetSuccess() {
-
 
88571
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
88572
    }
-
 
88573
 
-
 
88574
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
88575
    public boolean isSetSuccess() {
-
 
88576
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
88577
    }
-
 
88578
 
-
 
88579
    public void setSuccessIsSet(boolean value) {
-
 
88580
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
88581
    }
-
 
88582
 
-
 
88583
    public void setFieldValue(_Fields field, Object value) {
-
 
88584
      switch (field) {
-
 
88585
      case SUCCESS:
-
 
88586
        if (value == null) {
-
 
88587
          unsetSuccess();
-
 
88588
        } else {
-
 
88589
          setSuccess((Boolean)value);
-
 
88590
        }
-
 
88591
        break;
-
 
88592
 
-
 
88593
      }
-
 
88594
    }
-
 
88595
 
-
 
88596
    public Object getFieldValue(_Fields field) {
-
 
88597
      switch (field) {
-
 
88598
      case SUCCESS:
-
 
88599
        return Boolean.valueOf(isSuccess());
-
 
88600
 
-
 
88601
      }
-
 
88602
      throw new IllegalStateException();
-
 
88603
    }
-
 
88604
 
-
 
88605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
88606
    public boolean isSet(_Fields field) {
-
 
88607
      if (field == null) {
-
 
88608
        throw new IllegalArgumentException();
-
 
88609
      }
-
 
88610
 
-
 
88611
      switch (field) {
-
 
88612
      case SUCCESS:
-
 
88613
        return isSetSuccess();
-
 
88614
      }
-
 
88615
      throw new IllegalStateException();
-
 
88616
    }
-
 
88617
 
-
 
88618
    @Override
-
 
88619
    public boolean equals(Object that) {
-
 
88620
      if (that == null)
-
 
88621
        return false;
-
 
88622
      if (that instanceof addOrUpdateSnapdealItem_result)
-
 
88623
        return this.equals((addOrUpdateSnapdealItem_result)that);
-
 
88624
      return false;
-
 
88625
    }
-
 
88626
 
-
 
88627
    public boolean equals(addOrUpdateSnapdealItem_result that) {
-
 
88628
      if (that == null)
-
 
88629
        return false;
-
 
88630
 
-
 
88631
      boolean this_present_success = true;
-
 
88632
      boolean that_present_success = true;
-
 
88633
      if (this_present_success || that_present_success) {
-
 
88634
        if (!(this_present_success && that_present_success))
-
 
88635
          return false;
-
 
88636
        if (this.success != that.success)
-
 
88637
          return false;
-
 
88638
      }
-
 
88639
 
-
 
88640
      return true;
-
 
88641
    }
-
 
88642
 
-
 
88643
    @Override
-
 
88644
    public int hashCode() {
-
 
88645
      return 0;
-
 
88646
    }
-
 
88647
 
-
 
88648
    public int compareTo(addOrUpdateSnapdealItem_result other) {
-
 
88649
      if (!getClass().equals(other.getClass())) {
-
 
88650
        return getClass().getName().compareTo(other.getClass().getName());
-
 
88651
      }
-
 
88652
 
-
 
88653
      int lastComparison = 0;
-
 
88654
      addOrUpdateSnapdealItem_result typedOther = (addOrUpdateSnapdealItem_result)other;
-
 
88655
 
-
 
88656
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
88657
      if (lastComparison != 0) {
-
 
88658
        return lastComparison;
-
 
88659
      }
-
 
88660
      if (isSetSuccess()) {
-
 
88661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
88662
        if (lastComparison != 0) {
-
 
88663
          return lastComparison;
-
 
88664
        }
-
 
88665
      }
-
 
88666
      return 0;
-
 
88667
    }
-
 
88668
 
-
 
88669
    public _Fields fieldForId(int fieldId) {
-
 
88670
      return _Fields.findByThriftId(fieldId);
-
 
88671
    }
-
 
88672
 
-
 
88673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
88674
      org.apache.thrift.protocol.TField field;
-
 
88675
      iprot.readStructBegin();
-
 
88676
      while (true)
-
 
88677
      {
-
 
88678
        field = iprot.readFieldBegin();
-
 
88679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
88680
          break;
-
 
88681
        }
-
 
88682
        switch (field.id) {
-
 
88683
          case 0: // SUCCESS
-
 
88684
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
88685
              this.success = iprot.readBool();
-
 
88686
              setSuccessIsSet(true);
-
 
88687
            } else { 
-
 
88688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88689
            }
-
 
88690
            break;
-
 
88691
          default:
-
 
88692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88693
        }
-
 
88694
        iprot.readFieldEnd();
-
 
88695
      }
-
 
88696
      iprot.readStructEnd();
-
 
88697
      validate();
-
 
88698
    }
-
 
88699
 
-
 
88700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
88701
      oprot.writeStructBegin(STRUCT_DESC);
-
 
88702
 
-
 
88703
      if (this.isSetSuccess()) {
-
 
88704
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
88705
        oprot.writeBool(this.success);
-
 
88706
        oprot.writeFieldEnd();
-
 
88707
      }
-
 
88708
      oprot.writeFieldStop();
-
 
88709
      oprot.writeStructEnd();
-
 
88710
    }
-
 
88711
 
-
 
88712
    @Override
-
 
88713
    public String toString() {
-
 
88714
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_result(");
-
 
88715
      boolean first = true;
-
 
88716
 
-
 
88717
      sb.append("success:");
-
 
88718
      sb.append(this.success);
-
 
88719
      first = false;
-
 
88720
      sb.append(")");
-
 
88721
      return sb.toString();
-
 
88722
    }
-
 
88723
 
-
 
88724
    public void validate() throws org.apache.thrift.TException {
-
 
88725
      // check for required fields
-
 
88726
    }
-
 
88727
 
-
 
88728
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
88729
      try {
-
 
88730
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
88731
      } catch (org.apache.thrift.TException te) {
-
 
88732
        throw new java.io.IOException(te);
-
 
88733
      }
-
 
88734
    }
-
 
88735
 
-
 
88736
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
88737
      try {
-
 
88738
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
88739
      } catch (org.apache.thrift.TException te) {
-
 
88740
        throw new java.io.IOException(te);
-
 
88741
      }
-
 
88742
    }
-
 
88743
 
-
 
88744
  }
-
 
88745
 
-
 
88746
  public static class getSnapdealItem_args implements org.apache.thrift.TBase<getSnapdealItem_args, getSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
88747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_args");
-
 
88748
 
-
 
88749
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
88750
 
-
 
88751
    private long item_id; // required
-
 
88752
 
-
 
88753
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
88754
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
88755
      ITEM_ID((short)1, "item_id");
-
 
88756
 
-
 
88757
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
88758
 
-
 
88759
      static {
-
 
88760
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
88761
          byName.put(field.getFieldName(), field);
-
 
88762
        }
-
 
88763
      }
-
 
88764
 
-
 
88765
      /**
-
 
88766
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
88767
       */
-
 
88768
      public static _Fields findByThriftId(int fieldId) {
-
 
88769
        switch(fieldId) {
-
 
88770
          case 1: // ITEM_ID
-
 
88771
            return ITEM_ID;
-
 
88772
          default:
-
 
88773
            return null;
-
 
88774
        }
-
 
88775
      }
-
 
88776
 
-
 
88777
      /**
-
 
88778
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
88779
       * if it is not found.
-
 
88780
       */
-
 
88781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
88782
        _Fields fields = findByThriftId(fieldId);
-
 
88783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
88784
        return fields;
-
 
88785
      }
-
 
88786
 
-
 
88787
      /**
-
 
88788
       * Find the _Fields constant that matches name, or null if its not found.
-
 
88789
       */
-
 
88790
      public static _Fields findByName(String name) {
-
 
88791
        return byName.get(name);
-
 
88792
      }
-
 
88793
 
-
 
88794
      private final short _thriftId;
-
 
88795
      private final String _fieldName;
-
 
88796
 
-
 
88797
      _Fields(short thriftId, String fieldName) {
-
 
88798
        _thriftId = thriftId;
-
 
88799
        _fieldName = fieldName;
-
 
88800
      }
-
 
88801
 
-
 
88802
      public short getThriftFieldId() {
-
 
88803
        return _thriftId;
-
 
88804
      }
-
 
88805
 
-
 
88806
      public String getFieldName() {
-
 
88807
        return _fieldName;
-
 
88808
      }
-
 
88809
    }
-
 
88810
 
-
 
88811
    // isset id assignments
-
 
88812
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
88813
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
88814
 
-
 
88815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
88816
    static {
-
 
88817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
88818
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
88820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
88821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_args.class, metaDataMap);
-
 
88822
    }
-
 
88823
 
-
 
88824
    public getSnapdealItem_args() {
-
 
88825
    }
-
 
88826
 
-
 
88827
    public getSnapdealItem_args(
-
 
88828
      long item_id)
-
 
88829
    {
-
 
88830
      this();
-
 
88831
      this.item_id = item_id;
-
 
88832
      setItem_idIsSet(true);
-
 
88833
    }
-
 
88834
 
-
 
88835
    /**
-
 
88836
     * Performs a deep copy on <i>other</i>.
-
 
88837
     */
-
 
88838
    public getSnapdealItem_args(getSnapdealItem_args other) {
-
 
88839
      __isset_bit_vector.clear();
-
 
88840
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
88841
      this.item_id = other.item_id;
-
 
88842
    }
-
 
88843
 
-
 
88844
    public getSnapdealItem_args deepCopy() {
-
 
88845
      return new getSnapdealItem_args(this);
-
 
88846
    }
-
 
88847
 
-
 
88848
    @Override
-
 
88849
    public void clear() {
-
 
88850
      setItem_idIsSet(false);
-
 
88851
      this.item_id = 0;
-
 
88852
    }
-
 
88853
 
-
 
88854
    public long getItem_id() {
-
 
88855
      return this.item_id;
-
 
88856
    }
-
 
88857
 
-
 
88858
    public void setItem_id(long item_id) {
-
 
88859
      this.item_id = item_id;
-
 
88860
      setItem_idIsSet(true);
-
 
88861
    }
-
 
88862
 
-
 
88863
    public void unsetItem_id() {
-
 
88864
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
88865
    }
-
 
88866
 
-
 
88867
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
88868
    public boolean isSetItem_id() {
-
 
88869
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
88870
    }
-
 
88871
 
-
 
88872
    public void setItem_idIsSet(boolean value) {
-
 
88873
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
88874
    }
-
 
88875
 
-
 
88876
    public void setFieldValue(_Fields field, Object value) {
-
 
88877
      switch (field) {
-
 
88878
      case ITEM_ID:
-
 
88879
        if (value == null) {
-
 
88880
          unsetItem_id();
-
 
88881
        } else {
-
 
88882
          setItem_id((Long)value);
-
 
88883
        }
-
 
88884
        break;
-
 
88885
 
-
 
88886
      }
-
 
88887
    }
-
 
88888
 
-
 
88889
    public Object getFieldValue(_Fields field) {
-
 
88890
      switch (field) {
-
 
88891
      case ITEM_ID:
-
 
88892
        return Long.valueOf(getItem_id());
-
 
88893
 
-
 
88894
      }
-
 
88895
      throw new IllegalStateException();
-
 
88896
    }
-
 
88897
 
-
 
88898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
88899
    public boolean isSet(_Fields field) {
-
 
88900
      if (field == null) {
-
 
88901
        throw new IllegalArgumentException();
-
 
88902
      }
-
 
88903
 
-
 
88904
      switch (field) {
-
 
88905
      case ITEM_ID:
-
 
88906
        return isSetItem_id();
-
 
88907
      }
-
 
88908
      throw new IllegalStateException();
-
 
88909
    }
-
 
88910
 
-
 
88911
    @Override
-
 
88912
    public boolean equals(Object that) {
-
 
88913
      if (that == null)
-
 
88914
        return false;
-
 
88915
      if (that instanceof getSnapdealItem_args)
-
 
88916
        return this.equals((getSnapdealItem_args)that);
-
 
88917
      return false;
-
 
88918
    }
-
 
88919
 
-
 
88920
    public boolean equals(getSnapdealItem_args that) {
-
 
88921
      if (that == null)
-
 
88922
        return false;
-
 
88923
 
-
 
88924
      boolean this_present_item_id = true;
-
 
88925
      boolean that_present_item_id = true;
-
 
88926
      if (this_present_item_id || that_present_item_id) {
-
 
88927
        if (!(this_present_item_id && that_present_item_id))
-
 
88928
          return false;
-
 
88929
        if (this.item_id != that.item_id)
-
 
88930
          return false;
-
 
88931
      }
-
 
88932
 
-
 
88933
      return true;
-
 
88934
    }
-
 
88935
 
-
 
88936
    @Override
-
 
88937
    public int hashCode() {
-
 
88938
      return 0;
-
 
88939
    }
-
 
88940
 
-
 
88941
    public int compareTo(getSnapdealItem_args other) {
-
 
88942
      if (!getClass().equals(other.getClass())) {
-
 
88943
        return getClass().getName().compareTo(other.getClass().getName());
-
 
88944
      }
-
 
88945
 
-
 
88946
      int lastComparison = 0;
-
 
88947
      getSnapdealItem_args typedOther = (getSnapdealItem_args)other;
-
 
88948
 
-
 
88949
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
88950
      if (lastComparison != 0) {
-
 
88951
        return lastComparison;
-
 
88952
      }
-
 
88953
      if (isSetItem_id()) {
-
 
88954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
88955
        if (lastComparison != 0) {
-
 
88956
          return lastComparison;
-
 
88957
        }
-
 
88958
      }
-
 
88959
      return 0;
-
 
88960
    }
-
 
88961
 
-
 
88962
    public _Fields fieldForId(int fieldId) {
-
 
88963
      return _Fields.findByThriftId(fieldId);
-
 
88964
    }
-
 
88965
 
-
 
88966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
88967
      org.apache.thrift.protocol.TField field;
-
 
88968
      iprot.readStructBegin();
-
 
88969
      while (true)
-
 
88970
      {
-
 
88971
        field = iprot.readFieldBegin();
-
 
88972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
88973
          break;
-
 
88974
        }
-
 
88975
        switch (field.id) {
-
 
88976
          case 1: // ITEM_ID
-
 
88977
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
88978
              this.item_id = iprot.readI64();
-
 
88979
              setItem_idIsSet(true);
-
 
88980
            } else { 
-
 
88981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88982
            }
-
 
88983
            break;
-
 
88984
          default:
-
 
88985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88986
        }
-
 
88987
        iprot.readFieldEnd();
-
 
88988
      }
-
 
88989
      iprot.readStructEnd();
-
 
88990
      validate();
-
 
88991
    }
-
 
88992
 
-
 
88993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
88994
      validate();
-
 
88995
 
-
 
88996
      oprot.writeStructBegin(STRUCT_DESC);
-
 
88997
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
88998
      oprot.writeI64(this.item_id);
-
 
88999
      oprot.writeFieldEnd();
-
 
89000
      oprot.writeFieldStop();
-
 
89001
      oprot.writeStructEnd();
-
 
89002
    }
-
 
89003
 
-
 
89004
    @Override
-
 
89005
    public String toString() {
-
 
89006
      StringBuilder sb = new StringBuilder("getSnapdealItem_args(");
-
 
89007
      boolean first = true;
-
 
89008
 
-
 
89009
      sb.append("item_id:");
-
 
89010
      sb.append(this.item_id);
-
 
89011
      first = false;
-
 
89012
      sb.append(")");
-
 
89013
      return sb.toString();
-
 
89014
    }
-
 
89015
 
-
 
89016
    public void validate() throws org.apache.thrift.TException {
-
 
89017
      // check for required fields
-
 
89018
    }
-
 
89019
 
-
 
89020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
89021
      try {
-
 
89022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
89023
      } catch (org.apache.thrift.TException te) {
-
 
89024
        throw new java.io.IOException(te);
-
 
89025
      }
-
 
89026
    }
-
 
89027
 
-
 
89028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
89029
      try {
-
 
89030
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
89031
        __isset_bit_vector = new BitSet(1);
-
 
89032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
89033
      } catch (org.apache.thrift.TException te) {
-
 
89034
        throw new java.io.IOException(te);
-
 
89035
      }
-
 
89036
    }
-
 
89037
 
-
 
89038
  }
-
 
89039
 
-
 
89040
  public static class getSnapdealItem_result implements org.apache.thrift.TBase<getSnapdealItem_result, getSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
89041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_result");
-
 
89042
 
-
 
89043
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
89044
 
-
 
89045
    private SnapdealItem success; // required
-
 
89046
 
-
 
89047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
89048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
89049
      SUCCESS((short)0, "success");
-
 
89050
 
-
 
89051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
89052
 
-
 
89053
      static {
-
 
89054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
89055
          byName.put(field.getFieldName(), field);
-
 
89056
        }
-
 
89057
      }
-
 
89058
 
-
 
89059
      /**
-
 
89060
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
89061
       */
-
 
89062
      public static _Fields findByThriftId(int fieldId) {
-
 
89063
        switch(fieldId) {
-
 
89064
          case 0: // SUCCESS
-
 
89065
            return SUCCESS;
-
 
89066
          default:
-
 
89067
            return null;
-
 
89068
        }
-
 
89069
      }
-
 
89070
 
-
 
89071
      /**
-
 
89072
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
89073
       * if it is not found.
-
 
89074
       */
-
 
89075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
89076
        _Fields fields = findByThriftId(fieldId);
-
 
89077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
89078
        return fields;
-
 
89079
      }
-
 
89080
 
-
 
89081
      /**
-
 
89082
       * Find the _Fields constant that matches name, or null if its not found.
-
 
89083
       */
-
 
89084
      public static _Fields findByName(String name) {
-
 
89085
        return byName.get(name);
-
 
89086
      }
-
 
89087
 
-
 
89088
      private final short _thriftId;
-
 
89089
      private final String _fieldName;
-
 
89090
 
-
 
89091
      _Fields(short thriftId, String fieldName) {
-
 
89092
        _thriftId = thriftId;
-
 
89093
        _fieldName = fieldName;
-
 
89094
      }
-
 
89095
 
-
 
89096
      public short getThriftFieldId() {
-
 
89097
        return _thriftId;
-
 
89098
      }
-
 
89099
 
-
 
89100
      public String getFieldName() {
-
 
89101
        return _fieldName;
-
 
89102
      }
-
 
89103
    }
-
 
89104
 
-
 
89105
    // isset id assignments
-
 
89106
 
-
 
89107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
89108
    static {
-
 
89109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89110
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89111
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
-
 
89112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
89113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_result.class, metaDataMap);
-
 
89114
    }
-
 
89115
 
-
 
89116
    public getSnapdealItem_result() {
-
 
89117
    }
-
 
89118
 
-
 
89119
    public getSnapdealItem_result(
-
 
89120
      SnapdealItem success)
-
 
89121
    {
-
 
89122
      this();
-
 
89123
      this.success = success;
-
 
89124
    }
-
 
89125
 
-
 
89126
    /**
-
 
89127
     * Performs a deep copy on <i>other</i>.
-
 
89128
     */
-
 
89129
    public getSnapdealItem_result(getSnapdealItem_result other) {
-
 
89130
      if (other.isSetSuccess()) {
-
 
89131
        this.success = new SnapdealItem(other.success);
-
 
89132
      }
-
 
89133
    }
-
 
89134
 
-
 
89135
    public getSnapdealItem_result deepCopy() {
-
 
89136
      return new getSnapdealItem_result(this);
-
 
89137
    }
-
 
89138
 
-
 
89139
    @Override
-
 
89140
    public void clear() {
-
 
89141
      this.success = null;
-
 
89142
    }
-
 
89143
 
-
 
89144
    public SnapdealItem getSuccess() {
-
 
89145
      return this.success;
-
 
89146
    }
-
 
89147
 
-
 
89148
    public void setSuccess(SnapdealItem success) {
-
 
89149
      this.success = success;
-
 
89150
    }
-
 
89151
 
-
 
89152
    public void unsetSuccess() {
-
 
89153
      this.success = null;
-
 
89154
    }
-
 
89155
 
-
 
89156
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
89157
    public boolean isSetSuccess() {
-
 
89158
      return this.success != null;
-
 
89159
    }
-
 
89160
 
-
 
89161
    public void setSuccessIsSet(boolean value) {
-
 
89162
      if (!value) {
-
 
89163
        this.success = null;
-
 
89164
      }
-
 
89165
    }
-
 
89166
 
-
 
89167
    public void setFieldValue(_Fields field, Object value) {
-
 
89168
      switch (field) {
-
 
89169
      case SUCCESS:
-
 
89170
        if (value == null) {
-
 
89171
          unsetSuccess();
-
 
89172
        } else {
-
 
89173
          setSuccess((SnapdealItem)value);
-
 
89174
        }
-
 
89175
        break;
-
 
89176
 
-
 
89177
      }
-
 
89178
    }
-
 
89179
 
-
 
89180
    public Object getFieldValue(_Fields field) {
-
 
89181
      switch (field) {
-
 
89182
      case SUCCESS:
-
 
89183
        return getSuccess();
-
 
89184
 
-
 
89185
      }
-
 
89186
      throw new IllegalStateException();
-
 
89187
    }
-
 
89188
 
-
 
89189
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89190
    public boolean isSet(_Fields field) {
-
 
89191
      if (field == null) {
-
 
89192
        throw new IllegalArgumentException();
-
 
89193
      }
-
 
89194
 
-
 
89195
      switch (field) {
-
 
89196
      case SUCCESS:
-
 
89197
        return isSetSuccess();
-
 
89198
      }
-
 
89199
      throw new IllegalStateException();
-
 
89200
    }
-
 
89201
 
-
 
89202
    @Override
-
 
89203
    public boolean equals(Object that) {
-
 
89204
      if (that == null)
-
 
89205
        return false;
-
 
89206
      if (that instanceof getSnapdealItem_result)
-
 
89207
        return this.equals((getSnapdealItem_result)that);
-
 
89208
      return false;
-
 
89209
    }
-
 
89210
 
-
 
89211
    public boolean equals(getSnapdealItem_result that) {
-
 
89212
      if (that == null)
-
 
89213
        return false;
-
 
89214
 
-
 
89215
      boolean this_present_success = true && this.isSetSuccess();
-
 
89216
      boolean that_present_success = true && that.isSetSuccess();
-
 
89217
      if (this_present_success || that_present_success) {
-
 
89218
        if (!(this_present_success && that_present_success))
-
 
89219
          return false;
-
 
89220
        if (!this.success.equals(that.success))
-
 
89221
          return false;
-
 
89222
      }
-
 
89223
 
-
 
89224
      return true;
-
 
89225
    }
-
 
89226
 
-
 
89227
    @Override
-
 
89228
    public int hashCode() {
-
 
89229
      return 0;
-
 
89230
    }
-
 
89231
 
-
 
89232
    public int compareTo(getSnapdealItem_result other) {
-
 
89233
      if (!getClass().equals(other.getClass())) {
-
 
89234
        return getClass().getName().compareTo(other.getClass().getName());
-
 
89235
      }
-
 
89236
 
-
 
89237
      int lastComparison = 0;
-
 
89238
      getSnapdealItem_result typedOther = (getSnapdealItem_result)other;
-
 
89239
 
-
 
89240
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
89241
      if (lastComparison != 0) {
-
 
89242
        return lastComparison;
-
 
89243
      }
-
 
89244
      if (isSetSuccess()) {
-
 
89245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
89246
        if (lastComparison != 0) {
-
 
89247
          return lastComparison;
-
 
89248
        }
-
 
89249
      }
-
 
89250
      return 0;
-
 
89251
    }
-
 
89252
 
-
 
89253
    public _Fields fieldForId(int fieldId) {
-
 
89254
      return _Fields.findByThriftId(fieldId);
-
 
89255
    }
-
 
89256
 
-
 
89257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
89258
      org.apache.thrift.protocol.TField field;
-
 
89259
      iprot.readStructBegin();
-
 
89260
      while (true)
-
 
89261
      {
-
 
89262
        field = iprot.readFieldBegin();
-
 
89263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
89264
          break;
-
 
89265
        }
-
 
89266
        switch (field.id) {
-
 
89267
          case 0: // SUCCESS
-
 
89268
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
89269
              this.success = new SnapdealItem();
-
 
89270
              this.success.read(iprot);
-
 
89271
            } else { 
-
 
89272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89273
            }
-
 
89274
            break;
-
 
89275
          default:
-
 
89276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89277
        }
-
 
89278
        iprot.readFieldEnd();
-
 
89279
      }
-
 
89280
      iprot.readStructEnd();
-
 
89281
      validate();
-
 
89282
    }
-
 
89283
 
-
 
89284
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
89285
      oprot.writeStructBegin(STRUCT_DESC);
-
 
89286
 
-
 
89287
      if (this.isSetSuccess()) {
-
 
89288
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
89289
        this.success.write(oprot);
-
 
89290
        oprot.writeFieldEnd();
-
 
89291
      }
-
 
89292
      oprot.writeFieldStop();
-
 
89293
      oprot.writeStructEnd();
-
 
89294
    }
-
 
89295
 
-
 
89296
    @Override
-
 
89297
    public String toString() {
-
 
89298
      StringBuilder sb = new StringBuilder("getSnapdealItem_result(");
-
 
89299
      boolean first = true;
-
 
89300
 
-
 
89301
      sb.append("success:");
-
 
89302
      if (this.success == null) {
-
 
89303
        sb.append("null");
-
 
89304
      } else {
-
 
89305
        sb.append(this.success);
-
 
89306
      }
-
 
89307
      first = false;
-
 
89308
      sb.append(")");
-
 
89309
      return sb.toString();
-
 
89310
    }
-
 
89311
 
-
 
89312
    public void validate() throws org.apache.thrift.TException {
-
 
89313
      // check for required fields
-
 
89314
    }
-
 
89315
 
-
 
89316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
89317
      try {
-
 
89318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
89319
      } catch (org.apache.thrift.TException te) {
-
 
89320
        throw new java.io.IOException(te);
-
 
89321
      }
-
 
89322
    }
-
 
89323
 
-
 
89324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
89325
      try {
-
 
89326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
89327
      } catch (org.apache.thrift.TException te) {
-
 
89328
        throw new java.io.IOException(te);
-
 
89329
      }
-
 
89330
    }
-
 
89331
 
-
 
89332
  }
-
 
89333
 
-
 
89334
  public static class getAllSnapdealItems_args implements org.apache.thrift.TBase<getAllSnapdealItems_args, getAllSnapdealItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
89335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_args");
-
 
89336
 
-
 
89337
 
-
 
89338
 
-
 
89339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
89340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
89341
;
-
 
89342
 
-
 
89343
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
89344
 
-
 
89345
      static {
-
 
89346
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
89347
          byName.put(field.getFieldName(), field);
-
 
89348
        }
-
 
89349
      }
-
 
89350
 
-
 
89351
      /**
-
 
89352
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
89353
       */
-
 
89354
      public static _Fields findByThriftId(int fieldId) {
-
 
89355
        switch(fieldId) {
-
 
89356
          default:
-
 
89357
            return null;
-
 
89358
        }
-
 
89359
      }
-
 
89360
 
-
 
89361
      /**
-
 
89362
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
89363
       * if it is not found.
-
 
89364
       */
-
 
89365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
89366
        _Fields fields = findByThriftId(fieldId);
-
 
89367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
89368
        return fields;
-
 
89369
      }
-
 
89370
 
-
 
89371
      /**
-
 
89372
       * Find the _Fields constant that matches name, or null if its not found.
-
 
89373
       */
-
 
89374
      public static _Fields findByName(String name) {
-
 
89375
        return byName.get(name);
-
 
89376
      }
-
 
89377
 
-
 
89378
      private final short _thriftId;
-
 
89379
      private final String _fieldName;
-
 
89380
 
-
 
89381
      _Fields(short thriftId, String fieldName) {
-
 
89382
        _thriftId = thriftId;
-
 
89383
        _fieldName = fieldName;
-
 
89384
      }
-
 
89385
 
-
 
89386
      public short getThriftFieldId() {
-
 
89387
        return _thriftId;
-
 
89388
      }
-
 
89389
 
-
 
89390
      public String getFieldName() {
-
 
89391
        return _fieldName;
-
 
89392
      }
-
 
89393
    }
-
 
89394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
89395
    static {
-
 
89396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
89398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_args.class, metaDataMap);
-
 
89399
    }
-
 
89400
 
-
 
89401
    public getAllSnapdealItems_args() {
-
 
89402
    }
-
 
89403
 
-
 
89404
    /**
-
 
89405
     * Performs a deep copy on <i>other</i>.
-
 
89406
     */
-
 
89407
    public getAllSnapdealItems_args(getAllSnapdealItems_args other) {
-
 
89408
    }
-
 
89409
 
-
 
89410
    public getAllSnapdealItems_args deepCopy() {
-
 
89411
      return new getAllSnapdealItems_args(this);
-
 
89412
    }
-
 
89413
 
-
 
89414
    @Override
-
 
89415
    public void clear() {
-
 
89416
    }
-
 
89417
 
-
 
89418
    public void setFieldValue(_Fields field, Object value) {
-
 
89419
      switch (field) {
-
 
89420
      }
-
 
89421
    }
-
 
89422
 
-
 
89423
    public Object getFieldValue(_Fields field) {
-
 
89424
      switch (field) {
-
 
89425
      }
-
 
89426
      throw new IllegalStateException();
-
 
89427
    }
-
 
89428
 
-
 
89429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89430
    public boolean isSet(_Fields field) {
-
 
89431
      if (field == null) {
-
 
89432
        throw new IllegalArgumentException();
-
 
89433
      }
-
 
89434
 
-
 
89435
      switch (field) {
-
 
89436
      }
-
 
89437
      throw new IllegalStateException();
-
 
89438
    }
-
 
89439
 
-
 
89440
    @Override
-
 
89441
    public boolean equals(Object that) {
-
 
89442
      if (that == null)
-
 
89443
        return false;
-
 
89444
      if (that instanceof getAllSnapdealItems_args)
-
 
89445
        return this.equals((getAllSnapdealItems_args)that);
-
 
89446
      return false;
-
 
89447
    }
-
 
89448
 
-
 
89449
    public boolean equals(getAllSnapdealItems_args that) {
-
 
89450
      if (that == null)
-
 
89451
        return false;
-
 
89452
 
-
 
89453
      return true;
-
 
89454
    }
-
 
89455
 
-
 
89456
    @Override
-
 
89457
    public int hashCode() {
-
 
89458
      return 0;
-
 
89459
    }
-
 
89460
 
-
 
89461
    public int compareTo(getAllSnapdealItems_args other) {
-
 
89462
      if (!getClass().equals(other.getClass())) {
-
 
89463
        return getClass().getName().compareTo(other.getClass().getName());
-
 
89464
      }
-
 
89465
 
-
 
89466
      int lastComparison = 0;
-
 
89467
      getAllSnapdealItems_args typedOther = (getAllSnapdealItems_args)other;
-
 
89468
 
-
 
89469
      return 0;
-
 
89470
    }
-
 
89471
 
-
 
89472
    public _Fields fieldForId(int fieldId) {
-
 
89473
      return _Fields.findByThriftId(fieldId);
-
 
89474
    }
-
 
89475
 
-
 
89476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
89477
      org.apache.thrift.protocol.TField field;
-
 
89478
      iprot.readStructBegin();
-
 
89479
      while (true)
-
 
89480
      {
-
 
89481
        field = iprot.readFieldBegin();
-
 
89482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
89483
          break;
-
 
89484
        }
-
 
89485
        switch (field.id) {
-
 
89486
          default:
-
 
89487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89488
        }
-
 
89489
        iprot.readFieldEnd();
-
 
89490
      }
-
 
89491
      iprot.readStructEnd();
-
 
89492
      validate();
-
 
89493
    }
-
 
89494
 
-
 
89495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
89496
      validate();
-
 
89497
 
-
 
89498
      oprot.writeStructBegin(STRUCT_DESC);
-
 
89499
      oprot.writeFieldStop();
-
 
89500
      oprot.writeStructEnd();
-
 
89501
    }
-
 
89502
 
-
 
89503
    @Override
-
 
89504
    public String toString() {
-
 
89505
      StringBuilder sb = new StringBuilder("getAllSnapdealItems_args(");
-
 
89506
      boolean first = true;
-
 
89507
 
-
 
89508
      sb.append(")");
-
 
89509
      return sb.toString();
-
 
89510
    }
-
 
89511
 
-
 
89512
    public void validate() throws org.apache.thrift.TException {
-
 
89513
      // check for required fields
-
 
89514
    }
-
 
89515
 
-
 
89516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
89517
      try {
-
 
89518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
89519
      } catch (org.apache.thrift.TException te) {
-
 
89520
        throw new java.io.IOException(te);
-
 
89521
      }
-
 
89522
    }
-
 
89523
 
-
 
89524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
89525
      try {
-
 
89526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
89527
      } catch (org.apache.thrift.TException te) {
-
 
89528
        throw new java.io.IOException(te);
-
 
89529
      }
-
 
89530
    }
-
 
89531
 
-
 
89532
  }
-
 
89533
 
-
 
89534
  public static class getAllSnapdealItems_result implements org.apache.thrift.TBase<getAllSnapdealItems_result, getAllSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
89535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_result");
-
 
89536
 
-
 
89537
    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);
-
 
89538
 
-
 
89539
    private List<SnapdealItem> success; // required
-
 
89540
 
-
 
89541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
89542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
89543
      SUCCESS((short)0, "success");
-
 
89544
 
-
 
89545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
89546
 
-
 
89547
      static {
-
 
89548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
89549
          byName.put(field.getFieldName(), field);
-
 
89550
        }
-
 
89551
      }
-
 
89552
 
-
 
89553
      /**
-
 
89554
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
89555
       */
-
 
89556
      public static _Fields findByThriftId(int fieldId) {
-
 
89557
        switch(fieldId) {
-
 
89558
          case 0: // SUCCESS
-
 
89559
            return SUCCESS;
-
 
89560
          default:
-
 
89561
            return null;
-
 
89562
        }
-
 
89563
      }
-
 
89564
 
-
 
89565
      /**
-
 
89566
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
89567
       * if it is not found.
-
 
89568
       */
-
 
89569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
89570
        _Fields fields = findByThriftId(fieldId);
-
 
89571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
89572
        return fields;
-
 
89573
      }
-
 
89574
 
-
 
89575
      /**
-
 
89576
       * Find the _Fields constant that matches name, or null if its not found.
-
 
89577
       */
-
 
89578
      public static _Fields findByName(String name) {
-
 
89579
        return byName.get(name);
-
 
89580
      }
-
 
89581
 
-
 
89582
      private final short _thriftId;
-
 
89583
      private final String _fieldName;
-
 
89584
 
-
 
89585
      _Fields(short thriftId, String fieldName) {
-
 
89586
        _thriftId = thriftId;
-
 
89587
        _fieldName = fieldName;
-
 
89588
      }
-
 
89589
 
-
 
89590
      public short getThriftFieldId() {
-
 
89591
        return _thriftId;
-
 
89592
      }
-
 
89593
 
-
 
89594
      public String getFieldName() {
-
 
89595
        return _fieldName;
-
 
89596
      }
-
 
89597
    }
-
 
89598
 
-
 
89599
    // isset id assignments
-
 
89600
 
-
 
89601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
89602
    static {
-
 
89603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89604
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89605
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
89606
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class))));
-
 
89607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
89608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_result.class, metaDataMap);
-
 
89609
    }
-
 
89610
 
-
 
89611
    public getAllSnapdealItems_result() {
-
 
89612
    }
-
 
89613
 
-
 
89614
    public getAllSnapdealItems_result(
-
 
89615
      List<SnapdealItem> success)
-
 
89616
    {
-
 
89617
      this();
-
 
89618
      this.success = success;
-
 
89619
    }
-
 
89620
 
-
 
89621
    /**
-
 
89622
     * Performs a deep copy on <i>other</i>.
-
 
89623
     */
-
 
89624
    public getAllSnapdealItems_result(getAllSnapdealItems_result other) {
-
 
89625
      if (other.isSetSuccess()) {
-
 
89626
        List<SnapdealItem> __this__success = new ArrayList<SnapdealItem>();
-
 
89627
        for (SnapdealItem other_element : other.success) {
-
 
89628
          __this__success.add(new SnapdealItem(other_element));
-
 
89629
        }
-
 
89630
        this.success = __this__success;
-
 
89631
      }
-
 
89632
    }
-
 
89633
 
-
 
89634
    public getAllSnapdealItems_result deepCopy() {
-
 
89635
      return new getAllSnapdealItems_result(this);
-
 
89636
    }
-
 
89637
 
-
 
89638
    @Override
-
 
89639
    public void clear() {
-
 
89640
      this.success = null;
-
 
89641
    }
-
 
89642
 
-
 
89643
    public int getSuccessSize() {
-
 
89644
      return (this.success == null) ? 0 : this.success.size();
-
 
89645
    }
-
 
89646
 
-
 
89647
    public java.util.Iterator<SnapdealItem> getSuccessIterator() {
-
 
89648
      return (this.success == null) ? null : this.success.iterator();
-
 
89649
    }
-
 
89650
 
-
 
89651
    public void addToSuccess(SnapdealItem elem) {
-
 
89652
      if (this.success == null) {
-
 
89653
        this.success = new ArrayList<SnapdealItem>();
-
 
89654
      }
-
 
89655
      this.success.add(elem);
-
 
89656
    }
-
 
89657
 
-
 
89658
    public List<SnapdealItem> getSuccess() {
-
 
89659
      return this.success;
-
 
89660
    }
-
 
89661
 
-
 
89662
    public void setSuccess(List<SnapdealItem> success) {
-
 
89663
      this.success = success;
-
 
89664
    }
-
 
89665
 
-
 
89666
    public void unsetSuccess() {
-
 
89667
      this.success = null;
-
 
89668
    }
-
 
89669
 
-
 
89670
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
89671
    public boolean isSetSuccess() {
-
 
89672
      return this.success != null;
-
 
89673
    }
-
 
89674
 
-
 
89675
    public void setSuccessIsSet(boolean value) {
-
 
89676
      if (!value) {
-
 
89677
        this.success = null;
-
 
89678
      }
-
 
89679
    }
-
 
89680
 
-
 
89681
    public void setFieldValue(_Fields field, Object value) {
-
 
89682
      switch (field) {
-
 
89683
      case SUCCESS:
-
 
89684
        if (value == null) {
-
 
89685
          unsetSuccess();
-
 
89686
        } else {
-
 
89687
          setSuccess((List<SnapdealItem>)value);
-
 
89688
        }
-
 
89689
        break;
-
 
89690
 
-
 
89691
      }
-
 
89692
    }
-
 
89693
 
-
 
89694
    public Object getFieldValue(_Fields field) {
-
 
89695
      switch (field) {
-
 
89696
      case SUCCESS:
-
 
89697
        return getSuccess();
-
 
89698
 
-
 
89699
      }
-
 
89700
      throw new IllegalStateException();
-
 
89701
    }
-
 
89702
 
-
 
89703
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89704
    public boolean isSet(_Fields field) {
-
 
89705
      if (field == null) {
-
 
89706
        throw new IllegalArgumentException();
-
 
89707
      }
-
 
89708
 
-
 
89709
      switch (field) {
-
 
89710
      case SUCCESS:
-
 
89711
        return isSetSuccess();
-
 
89712
      }
-
 
89713
      throw new IllegalStateException();
-
 
89714
    }
-
 
89715
 
-
 
89716
    @Override
-
 
89717
    public boolean equals(Object that) {
-
 
89718
      if (that == null)
-
 
89719
        return false;
-
 
89720
      if (that instanceof getAllSnapdealItems_result)
-
 
89721
        return this.equals((getAllSnapdealItems_result)that);
-
 
89722
      return false;
-
 
89723
    }
-
 
89724
 
-
 
89725
    public boolean equals(getAllSnapdealItems_result that) {
-
 
89726
      if (that == null)
-
 
89727
        return false;
-
 
89728
 
-
 
89729
      boolean this_present_success = true && this.isSetSuccess();
-
 
89730
      boolean that_present_success = true && that.isSetSuccess();
-
 
89731
      if (this_present_success || that_present_success) {
-
 
89732
        if (!(this_present_success && that_present_success))
-
 
89733
          return false;
-
 
89734
        if (!this.success.equals(that.success))
-
 
89735
          return false;
-
 
89736
      }
-
 
89737
 
-
 
89738
      return true;
-
 
89739
    }
-
 
89740
 
-
 
89741
    @Override
-
 
89742
    public int hashCode() {
-
 
89743
      return 0;
-
 
89744
    }
-
 
89745
 
-
 
89746
    public int compareTo(getAllSnapdealItems_result other) {
-
 
89747
      if (!getClass().equals(other.getClass())) {
-
 
89748
        return getClass().getName().compareTo(other.getClass().getName());
-
 
89749
      }
-
 
89750
 
-
 
89751
      int lastComparison = 0;
-
 
89752
      getAllSnapdealItems_result typedOther = (getAllSnapdealItems_result)other;
-
 
89753
 
-
 
89754
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
89755
      if (lastComparison != 0) {
-
 
89756
        return lastComparison;
-
 
89757
      }
-
 
89758
      if (isSetSuccess()) {
-
 
89759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
89760
        if (lastComparison != 0) {
-
 
89761
          return lastComparison;
-
 
89762
        }
-
 
89763
      }
-
 
89764
      return 0;
-
 
89765
    }
-
 
89766
 
-
 
89767
    public _Fields fieldForId(int fieldId) {
-
 
89768
      return _Fields.findByThriftId(fieldId);
-
 
89769
    }
-
 
89770
 
-
 
89771
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
89772
      org.apache.thrift.protocol.TField field;
-
 
89773
      iprot.readStructBegin();
-
 
89774
      while (true)
-
 
89775
      {
-
 
89776
        field = iprot.readFieldBegin();
-
 
89777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
89778
          break;
-
 
89779
        }
-
 
89780
        switch (field.id) {
-
 
89781
          case 0: // SUCCESS
-
 
89782
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
89783
              {
-
 
89784
                org.apache.thrift.protocol.TList _list287 = iprot.readListBegin();
-
 
89785
                this.success = new ArrayList<SnapdealItem>(_list287.size);
-
 
89786
                for (int _i288 = 0; _i288 < _list287.size; ++_i288)
-
 
89787
                {
-
 
89788
                  SnapdealItem _elem289; // required
-
 
89789
                  _elem289 = new SnapdealItem();
-
 
89790
                  _elem289.read(iprot);
-
 
89791
                  this.success.add(_elem289);
-
 
89792
                }
-
 
89793
                iprot.readListEnd();
-
 
89794
              }
-
 
89795
            } else { 
-
 
89796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89797
            }
-
 
89798
            break;
-
 
89799
          default:
-
 
89800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89801
        }
-
 
89802
        iprot.readFieldEnd();
-
 
89803
      }
-
 
89804
      iprot.readStructEnd();
-
 
89805
      validate();
-
 
89806
    }
-
 
89807
 
-
 
89808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
89809
      oprot.writeStructBegin(STRUCT_DESC);
-
 
89810
 
-
 
89811
      if (this.isSetSuccess()) {
-
 
89812
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
89813
        {
-
 
89814
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
89815
          for (SnapdealItem _iter290 : this.success)
-
 
89816
          {
-
 
89817
            _iter290.write(oprot);
-
 
89818
          }
-
 
89819
          oprot.writeListEnd();
-
 
89820
        }
-
 
89821
        oprot.writeFieldEnd();
-
 
89822
      }
-
 
89823
      oprot.writeFieldStop();
-
 
89824
      oprot.writeStructEnd();
-
 
89825
    }
-
 
89826
 
-
 
89827
    @Override
-
 
89828
    public String toString() {
-
 
89829
      StringBuilder sb = new StringBuilder("getAllSnapdealItems_result(");
-
 
89830
      boolean first = true;
-
 
89831
 
-
 
89832
      sb.append("success:");
-
 
89833
      if (this.success == null) {
-
 
89834
        sb.append("null");
-
 
89835
      } else {
-
 
89836
        sb.append(this.success);
-
 
89837
      }
-
 
89838
      first = false;
-
 
89839
      sb.append(")");
-
 
89840
      return sb.toString();
-
 
89841
    }
-
 
89842
 
-
 
89843
    public void validate() throws org.apache.thrift.TException {
87910
      // check for required fields
89844
      // check for required fields
87911
    }
89845
    }
87912
 
89846
 
87913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
89847
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
87914
      try {
89848
      try {