Subversion Repositories SmartDukaan

Rev

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

Rev 4189 Rev 4668
Line 269... Line 269...
269
     * @param userId
269
     * @param userId
270
     * @param trustLevelDelta
270
     * @param trustLevelDelta
271
     */
271
     */
272
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
272
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
273
 
273
 
-
 
274
    /**
-
 
275
     * Returns true/false depending on wether COD is allowed for a cart or not
-
 
276
     * 
-
 
277
     * @param cartId
-
 
278
     * @param sourceId
-
 
279
     * @param pincode
-
 
280
     */
-
 
281
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException;
-
 
282
 
274
  }
283
  }
275
 
284
 
276
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
285
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
277
 
286
 
278
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
287
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 413... Line 422...
413
 
422
 
414
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
423
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
415
 
424
 
416
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
425
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
417
 
426
 
-
 
427
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
-
 
428
 
418
  }
429
  }
419
 
430
 
420
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
431
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
421
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
432
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
422
      public Factory() {}
433
      public Factory() {}
Line 2243... Line 2254...
2243
      args.setUserId(userId);
2254
      args.setUserId(userId);
2244
      args.setTrustLevelDelta(trustLevelDelta);
2255
      args.setTrustLevelDelta(trustLevelDelta);
2245
      sendBase("increaseTrustLevel", args);
2256
      sendBase("increaseTrustLevel", args);
2246
    }
2257
    }
2247
 
2258
 
-
 
2259
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException
-
 
2260
    {
-
 
2261
      send_showCODOption(cartId, sourceId, pincode);
-
 
2262
      return recv_showCODOption();
-
 
2263
    }
-
 
2264
 
-
 
2265
    public void send_showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException
-
 
2266
    {
-
 
2267
      showCODOption_args args = new showCODOption_args();
-
 
2268
      args.setCartId(cartId);
-
 
2269
      args.setSourceId(sourceId);
-
 
2270
      args.setPincode(pincode);
-
 
2271
      sendBase("showCODOption", args);
-
 
2272
    }
-
 
2273
 
-
 
2274
    public boolean recv_showCODOption() throws org.apache.thrift.TException
-
 
2275
    {
-
 
2276
      showCODOption_result result = new showCODOption_result();
-
 
2277
      receiveBase(result, "showCODOption");
-
 
2278
      if (result.isSetSuccess()) {
-
 
2279
        return result.success;
-
 
2280
      }
-
 
2281
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
-
 
2282
    }
-
 
2283
 
2248
  }
2284
  }
2249
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2285
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2250
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2286
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2251
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2287
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2252
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2288
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4677... Line 4713...
4677
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4713
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4678
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4714
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4679
      }
4715
      }
4680
    }
4716
    }
4681
 
4717
 
-
 
4718
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<showCODOption_call> resultHandler) throws org.apache.thrift.TException {
-
 
4719
      checkReady();
-
 
4720
      showCODOption_call method_call = new showCODOption_call(cartId, sourceId, pincode, resultHandler, this, ___protocolFactory, ___transport);
-
 
4721
      this.___currentMethod = method_call;
-
 
4722
      ___manager.call(method_call);
-
 
4723
    }
-
 
4724
 
-
 
4725
    public static class showCODOption_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4726
      private long cartId;
-
 
4727
      private long sourceId;
-
 
4728
      private String pincode;
-
 
4729
      public showCODOption_call(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<showCODOption_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 {
-
 
4730
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4731
        this.cartId = cartId;
-
 
4732
        this.sourceId = sourceId;
-
 
4733
        this.pincode = pincode;
-
 
4734
      }
-
 
4735
 
-
 
4736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("showCODOption", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4738
        showCODOption_args args = new showCODOption_args();
-
 
4739
        args.setCartId(cartId);
-
 
4740
        args.setSourceId(sourceId);
-
 
4741
        args.setPincode(pincode);
-
 
4742
        args.write(prot);
-
 
4743
        prot.writeMessageEnd();
-
 
4744
      }
-
 
4745
 
-
 
4746
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4747
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4748
          throw new IllegalStateException("Method call not finished!");
-
 
4749
        }
-
 
4750
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4751
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4752
        return (new Client(prot)).recv_showCODOption();
-
 
4753
      }
-
 
4754
    }
-
 
4755
 
4682
  }
4756
  }
4683
 
4757
 
4684
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4758
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4685
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4759
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4686
    public Processor(I iface) {
4760
    public Processor(I iface) {
Line 4760... Line 4834...
4760
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4834
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4761
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4835
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4762
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4836
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4763
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4837
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4764
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4838
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
-
 
4839
      processMap.put("showCODOption", new showCODOption());
4765
      return processMap;
4840
      return processMap;
4766
    }
4841
    }
4767
 
4842
 
4768
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4843
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4769
      public createAnonymousUser() {
4844
      public createAnonymousUser() {
Line 6149... Line 6224...
6149
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
6224
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
6150
        return null;
6225
        return null;
6151
      }
6226
      }
6152
    }
6227
    }
6153
 
6228
 
-
 
6229
    private static class showCODOption<I extends Iface> extends org.apache.thrift.ProcessFunction<I, showCODOption_args> {
-
 
6230
      public showCODOption() {
-
 
6231
        super("showCODOption");
-
 
6232
      }
-
 
6233
 
-
 
6234
      protected showCODOption_args getEmptyArgsInstance() {
-
 
6235
        return new showCODOption_args();
-
 
6236
      }
-
 
6237
 
-
 
6238
      protected showCODOption_result getResult(I iface, showCODOption_args args) throws org.apache.thrift.TException {
-
 
6239
        showCODOption_result result = new showCODOption_result();
-
 
6240
        result.success = iface.showCODOption(args.cartId, args.sourceId, args.pincode);
-
 
6241
        result.setSuccessIsSet(true);
-
 
6242
        return result;
-
 
6243
      }
-
 
6244
    }
-
 
6245
 
6154
  }
6246
  }
6155
 
6247
 
6156
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6248
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6158
 
6250
 
Line 19104... Line 19196...
19104
        }
19196
        }
19105
        switch (field.id) {
19197
        switch (field.id) {
19106
          case 0: // SUCCESS
19198
          case 0: // SUCCESS
19107
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19199
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19108
              {
19200
              {
19109
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
19201
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
19110
                this.success = new ArrayList<Address>(_list32.size);
19202
                this.success = new ArrayList<Address>(_list37.size);
19111
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
19203
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
19112
                {
19204
                {
19113
                  Address _elem34; // required
19205
                  Address _elem39; // required
19114
                  _elem34 = new Address();
19206
                  _elem39 = new Address();
19115
                  _elem34.read(iprot);
19207
                  _elem39.read(iprot);
19116
                  this.success.add(_elem34);
19208
                  this.success.add(_elem39);
19117
                }
19209
                }
19118
                iprot.readListEnd();
19210
                iprot.readListEnd();
19119
              }
19211
              }
19120
            } else { 
19212
            } else { 
19121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19143... Line 19235...
19143
 
19235
 
19144
      if (this.isSetSuccess()) {
19236
      if (this.isSetSuccess()) {
19145
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19146
        {
19238
        {
19147
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19239
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19148
          for (Address _iter35 : this.success)
19240
          for (Address _iter40 : this.success)
19149
          {
19241
          {
19150
            _iter35.write(oprot);
19242
            _iter40.write(oprot);
19151
          }
19243
          }
19152
          oprot.writeListEnd();
19244
          oprot.writeListEnd();
19153
        }
19245
        }
19154
        oprot.writeFieldEnd();
19246
        oprot.writeFieldEnd();
19155
      } else if (this.isSetUcx()) {
19247
      } else if (this.isSetUcx()) {
Line 23800... Line 23892...
23800
        }
23892
        }
23801
        switch (field.id) {
23893
        switch (field.id) {
23802
          case 0: // SUCCESS
23894
          case 0: // SUCCESS
23803
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23895
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23804
              {
23896
              {
23805
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
23897
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
23806
                this.success = new ArrayList<UserCommunication>(_list36.size);
23898
                this.success = new ArrayList<UserCommunication>(_list41.size);
23807
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
23899
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
23808
                {
23900
                {
23809
                  UserCommunication _elem38; // required
23901
                  UserCommunication _elem43; // required
23810
                  _elem38 = new UserCommunication();
23902
                  _elem43 = new UserCommunication();
23811
                  _elem38.read(iprot);
23903
                  _elem43.read(iprot);
23812
                  this.success.add(_elem38);
23904
                  this.success.add(_elem43);
23813
                }
23905
                }
23814
                iprot.readListEnd();
23906
                iprot.readListEnd();
23815
              }
23907
              }
23816
            } else { 
23908
            } else { 
23817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23839... Line 23931...
23839
 
23931
 
23840
      if (this.isSetSuccess()) {
23932
      if (this.isSetSuccess()) {
23841
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23933
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23842
        {
23934
        {
23843
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23935
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23844
          for (UserCommunication _iter39 : this.success)
23936
          for (UserCommunication _iter44 : this.success)
23845
          {
23937
          {
23846
            _iter39.write(oprot);
23938
            _iter44.write(oprot);
23847
          }
23939
          }
23848
          oprot.writeListEnd();
23940
          oprot.writeListEnd();
23849
        }
23941
        }
23850
        oprot.writeFieldEnd();
23942
        oprot.writeFieldEnd();
23851
      } else if (this.isSetUcx()) {
23943
      } else if (this.isSetUcx()) {
Line 24419... Line 24511...
24419
        }
24511
        }
24420
        switch (field.id) {
24512
        switch (field.id) {
24421
          case 0: // SUCCESS
24513
          case 0: // SUCCESS
24422
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24514
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24423
              {
24515
              {
24424
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
24516
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
24425
                this.success = new ArrayList<UserCommunication>(_list40.size);
24517
                this.success = new ArrayList<UserCommunication>(_list45.size);
24426
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
24518
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
24427
                {
24519
                {
24428
                  UserCommunication _elem42; // required
24520
                  UserCommunication _elem47; // required
24429
                  _elem42 = new UserCommunication();
24521
                  _elem47 = new UserCommunication();
24430
                  _elem42.read(iprot);
24522
                  _elem47.read(iprot);
24431
                  this.success.add(_elem42);
24523
                  this.success.add(_elem47);
24432
                }
24524
                }
24433
                iprot.readListEnd();
24525
                iprot.readListEnd();
24434
              }
24526
              }
24435
            } else { 
24527
            } else { 
24436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24458... Line 24550...
24458
 
24550
 
24459
      if (this.isSetSuccess()) {
24551
      if (this.isSetSuccess()) {
24460
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24552
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24461
        {
24553
        {
24462
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24554
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24463
          for (UserCommunication _iter43 : this.success)
24555
          for (UserCommunication _iter48 : this.success)
24464
          {
24556
          {
24465
            _iter43.write(oprot);
24557
            _iter48.write(oprot);
24466
          }
24558
          }
24467
          oprot.writeListEnd();
24559
          oprot.writeListEnd();
24468
        }
24560
        }
24469
        oprot.writeFieldEnd();
24561
        oprot.writeFieldEnd();
24470
      } else if (this.isSetUcx()) {
24562
      } else if (this.isSetUcx()) {
Line 25802... Line 25894...
25802
        }
25894
        }
25803
        switch (field.id) {
25895
        switch (field.id) {
25804
          case 0: // SUCCESS
25896
          case 0: // SUCCESS
25805
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25897
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25806
              {
25898
              {
25807
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
25899
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
25808
                this.success = new ArrayList<MasterAffiliate>(_list44.size);
25900
                this.success = new ArrayList<MasterAffiliate>(_list49.size);
25809
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
25901
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
25810
                {
25902
                {
25811
                  MasterAffiliate _elem46; // required
25903
                  MasterAffiliate _elem51; // required
25812
                  _elem46 = new MasterAffiliate();
25904
                  _elem51 = new MasterAffiliate();
25813
                  _elem46.read(iprot);
25905
                  _elem51.read(iprot);
25814
                  this.success.add(_elem46);
25906
                  this.success.add(_elem51);
25815
                }
25907
                }
25816
                iprot.readListEnd();
25908
                iprot.readListEnd();
25817
              }
25909
              }
25818
            } else { 
25910
            } else { 
25819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 25841... Line 25933...
25841
 
25933
 
25842
      if (this.isSetSuccess()) {
25934
      if (this.isSetSuccess()) {
25843
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25844
        {
25936
        {
25845
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25937
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25846
          for (MasterAffiliate _iter47 : this.success)
25938
          for (MasterAffiliate _iter52 : this.success)
25847
          {
25939
          {
25848
            _iter47.write(oprot);
25940
            _iter52.write(oprot);
25849
          }
25941
          }
25850
          oprot.writeListEnd();
25942
          oprot.writeListEnd();
25851
        }
25943
        }
25852
        oprot.writeFieldEnd();
25944
        oprot.writeFieldEnd();
25853
      } else if (this.isSetUtx()) {
25945
      } else if (this.isSetUtx()) {
Line 30830... Line 30922...
30830
        }
30922
        }
30831
        switch (field.id) {
30923
        switch (field.id) {
30832
          case 0: // SUCCESS
30924
          case 0: // SUCCESS
30833
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30925
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30834
              {
30926
              {
30835
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
30927
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
30836
                this.success = new ArrayList<Affiliate>(_list48.size);
30928
                this.success = new ArrayList<Affiliate>(_list53.size);
30837
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
30929
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
30838
                {
30930
                {
30839
                  Affiliate _elem50; // required
30931
                  Affiliate _elem55; // required
30840
                  _elem50 = new Affiliate();
30932
                  _elem55 = new Affiliate();
30841
                  _elem50.read(iprot);
30933
                  _elem55.read(iprot);
30842
                  this.success.add(_elem50);
30934
                  this.success.add(_elem55);
30843
                }
30935
                }
30844
                iprot.readListEnd();
30936
                iprot.readListEnd();
30845
              }
30937
              }
30846
            } else { 
30938
            } else { 
30847
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 30869... Line 30961...
30869
 
30961
 
30870
      if (this.isSetSuccess()) {
30962
      if (this.isSetSuccess()) {
30871
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30963
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30872
        {
30964
        {
30873
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30965
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30874
          for (Affiliate _iter51 : this.success)
30966
          for (Affiliate _iter56 : this.success)
30875
          {
30967
          {
30876
            _iter51.write(oprot);
30968
            _iter56.write(oprot);
30877
          }
30969
          }
30878
          oprot.writeListEnd();
30970
          oprot.writeListEnd();
30879
        }
30971
        }
30880
        oprot.writeFieldEnd();
30972
        oprot.writeFieldEnd();
30881
      } else if (this.isSetUtx()) {
30973
      } else if (this.isSetUtx()) {
Line 33502... Line 33594...
33502
        }
33594
        }
33503
        switch (field.id) {
33595
        switch (field.id) {
33504
          case 0: // SUCCESS
33596
          case 0: // SUCCESS
33505
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33597
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33506
              {
33598
              {
33507
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
33599
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
33508
                this.success = new ArrayList<TrackLog>(_list52.size);
33600
                this.success = new ArrayList<TrackLog>(_list57.size);
33509
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
33601
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
33510
                {
33602
                {
33511
                  TrackLog _elem54; // required
33603
                  TrackLog _elem59; // required
33512
                  _elem54 = new TrackLog();
33604
                  _elem59 = new TrackLog();
33513
                  _elem54.read(iprot);
33605
                  _elem59.read(iprot);
33514
                  this.success.add(_elem54);
33606
                  this.success.add(_elem59);
33515
                }
33607
                }
33516
                iprot.readListEnd();
33608
                iprot.readListEnd();
33517
              }
33609
              }
33518
            } else { 
33610
            } else { 
33519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33541... Line 33633...
33541
 
33633
 
33542
      if (this.isSetSuccess()) {
33634
      if (this.isSetSuccess()) {
33543
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33635
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33544
        {
33636
        {
33545
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33637
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33546
          for (TrackLog _iter55 : this.success)
33638
          for (TrackLog _iter60 : this.success)
33547
          {
33639
          {
33548
            _iter55.write(oprot);
33640
            _iter60.write(oprot);
33549
          }
33641
          }
33550
          oprot.writeListEnd();
33642
          oprot.writeListEnd();
33551
        }
33643
        }
33552
        oprot.writeFieldEnd();
33644
        oprot.writeFieldEnd();
33553
      } else if (this.isSetUtx()) {
33645
      } else if (this.isSetUtx()) {
Line 34215... Line 34307...
34215
        }
34307
        }
34216
        switch (field.id) {
34308
        switch (field.id) {
34217
          case 0: // SUCCESS
34309
          case 0: // SUCCESS
34218
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34310
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34219
              {
34311
              {
34220
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
34312
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
34221
                this.success = new ArrayList<TrackLog>(_list56.size);
34313
                this.success = new ArrayList<TrackLog>(_list61.size);
34222
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
34314
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
34223
                {
34315
                {
34224
                  TrackLog _elem58; // required
34316
                  TrackLog _elem63; // required
34225
                  _elem58 = new TrackLog();
34317
                  _elem63 = new TrackLog();
34226
                  _elem58.read(iprot);
34318
                  _elem63.read(iprot);
34227
                  this.success.add(_elem58);
34319
                  this.success.add(_elem63);
34228
                }
34320
                }
34229
                iprot.readListEnd();
34321
                iprot.readListEnd();
34230
              }
34322
              }
34231
            } else { 
34323
            } else { 
34232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34254... Line 34346...
34254
 
34346
 
34255
      if (this.isSetSuccess()) {
34347
      if (this.isSetSuccess()) {
34256
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34348
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34257
        {
34349
        {
34258
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34350
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34259
          for (TrackLog _iter59 : this.success)
34351
          for (TrackLog _iter64 : this.success)
34260
          {
34352
          {
34261
            _iter59.write(oprot);
34353
            _iter64.write(oprot);
34262
          }
34354
          }
34263
          oprot.writeListEnd();
34355
          oprot.writeListEnd();
34264
        }
34356
        }
34265
        oprot.writeFieldEnd();
34357
        oprot.writeFieldEnd();
34266
      } else if (this.isSetUtx()) {
34358
      } else if (this.isSetUtx()) {
Line 35104... Line 35196...
35104
        }
35196
        }
35105
        switch (field.id) {
35197
        switch (field.id) {
35106
          case 0: // SUCCESS
35198
          case 0: // SUCCESS
35107
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35199
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35108
              {
35200
              {
35109
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
35201
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
35110
                this.success = new ArrayList<TrackLog>(_list60.size);
35202
                this.success = new ArrayList<TrackLog>(_list65.size);
35111
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
35203
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
35112
                {
35204
                {
35113
                  TrackLog _elem62; // required
35205
                  TrackLog _elem67; // required
35114
                  _elem62 = new TrackLog();
35206
                  _elem67 = new TrackLog();
35115
                  _elem62.read(iprot);
35207
                  _elem67.read(iprot);
35116
                  this.success.add(_elem62);
35208
                  this.success.add(_elem67);
35117
                }
35209
                }
35118
                iprot.readListEnd();
35210
                iprot.readListEnd();
35119
              }
35211
              }
35120
            } else { 
35212
            } else { 
35121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35143... Line 35235...
35143
 
35235
 
35144
      if (this.isSetSuccess()) {
35236
      if (this.isSetSuccess()) {
35145
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35146
        {
35238
        {
35147
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35239
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35148
          for (TrackLog _iter63 : this.success)
35240
          for (TrackLog _iter68 : this.success)
35149
          {
35241
          {
35150
            _iter63.write(oprot);
35242
            _iter68.write(oprot);
35151
          }
35243
          }
35152
          oprot.writeListEnd();
35244
          oprot.writeListEnd();
35153
        }
35245
        }
35154
        oprot.writeFieldEnd();
35246
        oprot.writeFieldEnd();
35155
      } else if (this.isSetUtx()) {
35247
      } else if (this.isSetUtx()) {
Line 37944... Line 38036...
37944
        }
38036
        }
37945
        switch (field.id) {
38037
        switch (field.id) {
37946
          case 0: // SUCCESS
38038
          case 0: // SUCCESS
37947
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38039
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37948
              {
38040
              {
37949
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
38041
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
37950
                this.success = new ArrayList<Cart>(_list64.size);
38042
                this.success = new ArrayList<Cart>(_list69.size);
37951
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
38043
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
37952
                {
38044
                {
37953
                  Cart _elem66; // required
38045
                  Cart _elem71; // required
37954
                  _elem66 = new Cart();
38046
                  _elem71 = new Cart();
37955
                  _elem66.read(iprot);
38047
                  _elem71.read(iprot);
37956
                  this.success.add(_elem66);
38048
                  this.success.add(_elem71);
37957
                }
38049
                }
37958
                iprot.readListEnd();
38050
                iprot.readListEnd();
37959
              }
38051
              }
37960
            } else { 
38052
            } else { 
37961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37983... Line 38075...
37983
 
38075
 
37984
      if (this.isSetSuccess()) {
38076
      if (this.isSetSuccess()) {
37985
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38077
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37986
        {
38078
        {
37987
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38079
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37988
          for (Cart _iter67 : this.success)
38080
          for (Cart _iter72 : this.success)
37989
          {
38081
          {
37990
            _iter67.write(oprot);
38082
            _iter72.write(oprot);
37991
          }
38083
          }
37992
          oprot.writeListEnd();
38084
          oprot.writeListEnd();
37993
        }
38085
        }
37994
        oprot.writeFieldEnd();
38086
        oprot.writeFieldEnd();
37995
      } else if (this.isSetScx()) {
38087
      } else if (this.isSetScx()) {
Line 38669... Line 38761...
38669
        }
38761
        }
38670
        switch (field.id) {
38762
        switch (field.id) {
38671
          case 0: // SUCCESS
38763
          case 0: // SUCCESS
38672
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38764
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38673
              {
38765
              {
38674
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
38766
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
38675
                this.success = new ArrayList<Cart>(_list68.size);
38767
                this.success = new ArrayList<Cart>(_list73.size);
38676
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
38768
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
38677
                {
38769
                {
38678
                  Cart _elem70; // required
38770
                  Cart _elem75; // required
38679
                  _elem70 = new Cart();
38771
                  _elem75 = new Cart();
38680
                  _elem70.read(iprot);
38772
                  _elem75.read(iprot);
38681
                  this.success.add(_elem70);
38773
                  this.success.add(_elem75);
38682
                }
38774
                }
38683
                iprot.readListEnd();
38775
                iprot.readListEnd();
38684
              }
38776
              }
38685
            } else { 
38777
            } else { 
38686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 38708... Line 38800...
38708
 
38800
 
38709
      if (this.isSetSuccess()) {
38801
      if (this.isSetSuccess()) {
38710
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38802
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38711
        {
38803
        {
38712
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38804
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38713
          for (Cart _iter71 : this.success)
38805
          for (Cart _iter76 : this.success)
38714
          {
38806
          {
38715
            _iter71.write(oprot);
38807
            _iter76.write(oprot);
38716
          }
38808
          }
38717
          oprot.writeListEnd();
38809
          oprot.writeListEnd();
38718
        }
38810
        }
38719
        oprot.writeFieldEnd();
38811
        oprot.writeFieldEnd();
38720
      } else if (this.isSetScx()) {
38812
      } else if (this.isSetScx()) {
Line 39565... Line 39657...
39565
        }
39657
        }
39566
        switch (field.id) {
39658
        switch (field.id) {
39567
          case 0: // SUCCESS
39659
          case 0: // SUCCESS
39568
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39660
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39569
              {
39661
              {
39570
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
39662
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
39571
                this.success = new ArrayList<Cart>(_list72.size);
39663
                this.success = new ArrayList<Cart>(_list77.size);
39572
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
39664
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
39573
                {
39665
                {
39574
                  Cart _elem74; // required
39666
                  Cart _elem79; // required
39575
                  _elem74 = new Cart();
39667
                  _elem79 = new Cart();
39576
                  _elem74.read(iprot);
39668
                  _elem79.read(iprot);
39577
                  this.success.add(_elem74);
39669
                  this.success.add(_elem79);
39578
                }
39670
                }
39579
                iprot.readListEnd();
39671
                iprot.readListEnd();
39580
              }
39672
              }
39581
            } else { 
39673
            } else { 
39582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 39604... Line 39696...
39604
 
39696
 
39605
      if (this.isSetSuccess()) {
39697
      if (this.isSetSuccess()) {
39606
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39698
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39607
        {
39699
        {
39608
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39700
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39609
          for (Cart _iter75 : this.success)
39701
          for (Cart _iter80 : this.success)
39610
          {
39702
          {
39611
            _iter75.write(oprot);
39703
            _iter80.write(oprot);
39612
          }
39704
          }
39613
          oprot.writeListEnd();
39705
          oprot.writeListEnd();
39614
        }
39706
        }
39615
        oprot.writeFieldEnd();
39707
        oprot.writeFieldEnd();
39616
      } else if (this.isSetScx()) {
39708
      } else if (this.isSetScx()) {
Line 45659... Line 45751...
45659
        }
45751
        }
45660
        switch (field.id) {
45752
        switch (field.id) {
45661
          case 1: // DISCOUNTS
45753
          case 1: // DISCOUNTS
45662
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
45754
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
45663
              {
45755
              {
45664
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
45756
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
45665
                this.discounts = new ArrayList<Discount>(_list76.size);
45757
                this.discounts = new ArrayList<Discount>(_list81.size);
45666
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
45758
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
45667
                {
45759
                {
45668
                  Discount _elem78; // required
45760
                  Discount _elem83; // required
45669
                  _elem78 = new Discount();
45761
                  _elem83 = new Discount();
45670
                  _elem78.read(iprot);
45762
                  _elem83.read(iprot);
45671
                  this.discounts.add(_elem78);
45763
                  this.discounts.add(_elem83);
45672
                }
45764
                }
45673
                iprot.readListEnd();
45765
                iprot.readListEnd();
45674
              }
45766
              }
45675
            } else { 
45767
            } else { 
45676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 45691... Line 45783...
45691
      oprot.writeStructBegin(STRUCT_DESC);
45783
      oprot.writeStructBegin(STRUCT_DESC);
45692
      if (this.discounts != null) {
45784
      if (this.discounts != null) {
45693
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
45785
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
45694
        {
45786
        {
45695
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
45787
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
45696
          for (Discount _iter79 : this.discounts)
45788
          for (Discount _iter84 : this.discounts)
45697
          {
45789
          {
45698
            _iter79.write(oprot);
45790
            _iter84.write(oprot);
45699
          }
45791
          }
45700
          oprot.writeListEnd();
45792
          oprot.writeListEnd();
45701
        }
45793
        }
45702
        oprot.writeFieldEnd();
45794
        oprot.writeFieldEnd();
45703
      }
45795
      }
Line 49389... Line 49481...
49389
            }
49481
            }
49390
            break;
49482
            break;
49391
          case 2: // ITEMS
49483
          case 2: // ITEMS
49392
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49484
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49393
              {
49485
              {
49394
                org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin();
49486
                org.apache.thrift.protocol.TMap _map85 = iprot.readMapBegin();
49395
                this.items = new HashMap<Long,Double>(2*_map80.size);
49487
                this.items = new HashMap<Long,Double>(2*_map85.size);
49396
                for (int _i81 = 0; _i81 < _map80.size; ++_i81)
49488
                for (int _i86 = 0; _i86 < _map85.size; ++_i86)
49397
                {
49489
                {
49398
                  long _key82; // required
49490
                  long _key87; // required
49399
                  double _val83; // required
49491
                  double _val88; // required
49400
                  _key82 = iprot.readI64();
49492
                  _key87 = iprot.readI64();
49401
                  _val83 = iprot.readDouble();
49493
                  _val88 = iprot.readDouble();
49402
                  this.items.put(_key82, _val83);
49494
                  this.items.put(_key87, _val88);
49403
                }
49495
                }
49404
                iprot.readMapEnd();
49496
                iprot.readMapEnd();
49405
              }
49497
              }
49406
            } else { 
49498
            } else { 
49407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49425... Line 49517...
49425
      oprot.writeFieldEnd();
49517
      oprot.writeFieldEnd();
49426
      if (this.items != null) {
49518
      if (this.items != null) {
49427
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
49519
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
49428
        {
49520
        {
49429
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
49521
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
49430
          for (Map.Entry<Long, Double> _iter84 : this.items.entrySet())
49522
          for (Map.Entry<Long, Double> _iter89 : this.items.entrySet())
49431
          {
49523
          {
49432
            oprot.writeI64(_iter84.getKey());
49524
            oprot.writeI64(_iter89.getKey());
49433
            oprot.writeDouble(_iter84.getValue());
49525
            oprot.writeDouble(_iter89.getValue());
49434
          }
49526
          }
49435
          oprot.writeMapEnd();
49527
          oprot.writeMapEnd();
49436
        }
49528
        }
49437
        oprot.writeFieldEnd();
49529
        oprot.writeFieldEnd();
49438
      }
49530
      }
Line 51185... Line 51277...
51185
        }
51277
        }
51186
        switch (field.id) {
51278
        switch (field.id) {
51187
          case 0: // SUCCESS
51279
          case 0: // SUCCESS
51188
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51280
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51189
              {
51281
              {
51190
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
51282
                org.apache.thrift.protocol.TList _list90 = iprot.readListBegin();
51191
                this.success = new ArrayList<User>(_list85.size);
51283
                this.success = new ArrayList<User>(_list90.size);
51192
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
51284
                for (int _i91 = 0; _i91 < _list90.size; ++_i91)
51193
                {
51285
                {
51194
                  User _elem87; // required
51286
                  User _elem92; // required
51195
                  _elem87 = new User();
51287
                  _elem92 = new User();
51196
                  _elem87.read(iprot);
51288
                  _elem92.read(iprot);
51197
                  this.success.add(_elem87);
51289
                  this.success.add(_elem92);
51198
                }
51290
                }
51199
                iprot.readListEnd();
51291
                iprot.readListEnd();
51200
              }
51292
              }
51201
            } else { 
51293
            } else { 
51202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51216... Line 51308...
51216
 
51308
 
51217
      if (this.isSetSuccess()) {
51309
      if (this.isSetSuccess()) {
51218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51310
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51219
        {
51311
        {
51220
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51312
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51221
          for (User _iter88 : this.success)
51313
          for (User _iter93 : this.success)
51222
          {
51314
          {
51223
            _iter88.write(oprot);
51315
            _iter93.write(oprot);
51224
          }
51316
          }
51225
          oprot.writeListEnd();
51317
          oprot.writeListEnd();
51226
        }
51318
        }
51227
        oprot.writeFieldEnd();
51319
        oprot.writeFieldEnd();
51228
      }
51320
      }
Line 52645... Line 52737...
52645
        }
52737
        }
52646
        switch (field.id) {
52738
        switch (field.id) {
52647
          case 0: // SUCCESS
52739
          case 0: // SUCCESS
52648
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52740
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52649
              {
52741
              {
52650
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
52742
                org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
52651
                this.success = new ArrayList<UserNote>(_list89.size);
52743
                this.success = new ArrayList<UserNote>(_list94.size);
52652
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
52744
                for (int _i95 = 0; _i95 < _list94.size; ++_i95)
52653
                {
52745
                {
52654
                  UserNote _elem91; // required
52746
                  UserNote _elem96; // required
52655
                  _elem91 = new UserNote();
52747
                  _elem96 = new UserNote();
52656
                  _elem91.read(iprot);
52748
                  _elem96.read(iprot);
52657
                  this.success.add(_elem91);
52749
                  this.success.add(_elem96);
52658
                }
52750
                }
52659
                iprot.readListEnd();
52751
                iprot.readListEnd();
52660
              }
52752
              }
52661
            } else { 
52753
            } else { 
52662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52676... Line 52768...
52676
 
52768
 
52677
      if (this.isSetSuccess()) {
52769
      if (this.isSetSuccess()) {
52678
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52679
        {
52771
        {
52680
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52681
          for (UserNote _iter92 : this.success)
52773
          for (UserNote _iter97 : this.success)
52682
          {
52774
          {
52683
            _iter92.write(oprot);
52775
            _iter97.write(oprot);
52684
          }
52776
          }
52685
          oprot.writeListEnd();
52777
          oprot.writeListEnd();
52686
        }
52778
        }
52687
        oprot.writeFieldEnd();
52779
        oprot.writeFieldEnd();
52688
      }
52780
      }
Line 53338... Line 53430...
53338
        }
53430
        }
53339
        switch (field.id) {
53431
        switch (field.id) {
53340
          case 0: // SUCCESS
53432
          case 0: // SUCCESS
53341
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53433
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53342
              {
53434
              {
53343
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
53435
                org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();
53344
                this.success = new ArrayList<Long>(_list93.size);
53436
                this.success = new ArrayList<Long>(_list98.size);
53345
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
53437
                for (int _i99 = 0; _i99 < _list98.size; ++_i99)
53346
                {
53438
                {
53347
                  long _elem95; // required
53439
                  long _elem100; // required
53348
                  _elem95 = iprot.readI64();
53440
                  _elem100 = iprot.readI64();
53349
                  this.success.add(_elem95);
53441
                  this.success.add(_elem100);
53350
                }
53442
                }
53351
                iprot.readListEnd();
53443
                iprot.readListEnd();
53352
              }
53444
              }
53353
            } else { 
53445
            } else { 
53354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 53376... Line 53468...
53376
 
53468
 
53377
      if (this.isSetSuccess()) {
53469
      if (this.isSetSuccess()) {
53378
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53379
        {
53471
        {
53380
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
53472
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
53381
          for (long _iter96 : this.success)
53473
          for (long _iter101 : this.success)
53382
          {
53474
          {
53383
            oprot.writeI64(_iter96);
53475
            oprot.writeI64(_iter101);
53384
          }
53476
          }
53385
          oprot.writeListEnd();
53477
          oprot.writeListEnd();
53386
        }
53478
        }
53387
        oprot.writeFieldEnd();
53479
        oprot.writeFieldEnd();
53388
      } else if (this.isSetScx()) {
53480
      } else if (this.isSetScx()) {
Line 55477... Line 55569...
55477
        }
55569
        }
55478
        switch (field.id) {
55570
        switch (field.id) {
55479
          case 0: // SUCCESS
55571
          case 0: // SUCCESS
55480
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55572
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55481
              {
55573
              {
55482
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
55574
                org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
55483
                this.success = new ArrayList<Long>(_list97.size);
55575
                this.success = new ArrayList<Long>(_list102.size);
55484
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
55576
                for (int _i103 = 0; _i103 < _list102.size; ++_i103)
55485
                {
55577
                {
55486
                  long _elem99; // required
55578
                  long _elem104; // required
55487
                  _elem99 = iprot.readI64();
55579
                  _elem104 = iprot.readI64();
55488
                  this.success.add(_elem99);
55580
                  this.success.add(_elem104);
55489
                }
55581
                }
55490
                iprot.readListEnd();
55582
                iprot.readListEnd();
55491
              }
55583
              }
55492
            } else { 
55584
            } else { 
55493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55515... Line 55607...
55515
 
55607
 
55516
      if (this.isSetSuccess()) {
55608
      if (this.isSetSuccess()) {
55517
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55518
        {
55610
        {
55519
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55611
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55520
          for (long _iter100 : this.success)
55612
          for (long _iter105 : this.success)
55521
          {
55613
          {
55522
            oprot.writeI64(_iter100);
55614
            oprot.writeI64(_iter105);
55523
          }
55615
          }
55524
          oprot.writeListEnd();
55616
          oprot.writeListEnd();
55525
        }
55617
        }
55526
        oprot.writeFieldEnd();
55618
        oprot.writeFieldEnd();
55527
      } else if (this.isSetScx()) {
55619
      } else if (this.isSetScx()) {
Line 57114... Line 57206...
57114
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57115
      } catch (org.apache.thrift.TException te) {
57207
      } catch (org.apache.thrift.TException te) {
57116
        throw new java.io.IOException(te);
57208
        throw new java.io.IOException(te);
57117
      }
57209
      }
57118
    }
57210
    }
-
 
57211
 
-
 
57212
  }
-
 
57213
 
-
 
57214
  public static class showCODOption_args implements org.apache.thrift.TBase<showCODOption_args, showCODOption_args._Fields>, java.io.Serializable, Cloneable   {
-
 
57215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("showCODOption_args");
-
 
57216
 
-
 
57217
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
57218
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
57219
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
57220
 
-
 
57221
    private long cartId; // required
-
 
57222
    private long sourceId; // required
-
 
57223
    private String pincode; // required
-
 
57224
 
-
 
57225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57227
      CART_ID((short)1, "cartId"),
-
 
57228
      SOURCE_ID((short)2, "sourceId"),
-
 
57229
      PINCODE((short)3, "pincode");
-
 
57230
 
-
 
57231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57232
 
-
 
57233
      static {
-
 
57234
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57235
          byName.put(field.getFieldName(), field);
-
 
57236
        }
-
 
57237
      }
-
 
57238
 
-
 
57239
      /**
-
 
57240
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57241
       */
-
 
57242
      public static _Fields findByThriftId(int fieldId) {
-
 
57243
        switch(fieldId) {
-
 
57244
          case 1: // CART_ID
-
 
57245
            return CART_ID;
-
 
57246
          case 2: // SOURCE_ID
-
 
57247
            return SOURCE_ID;
-
 
57248
          case 3: // PINCODE
-
 
57249
            return PINCODE;
-
 
57250
          default:
-
 
57251
            return null;
-
 
57252
        }
-
 
57253
      }
-
 
57254
 
-
 
57255
      /**
-
 
57256
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57257
       * if it is not found.
-
 
57258
       */
-
 
57259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57260
        _Fields fields = findByThriftId(fieldId);
-
 
57261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57262
        return fields;
-
 
57263
      }
-
 
57264
 
-
 
57265
      /**
-
 
57266
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57267
       */
-
 
57268
      public static _Fields findByName(String name) {
-
 
57269
        return byName.get(name);
-
 
57270
      }
-
 
57271
 
-
 
57272
      private final short _thriftId;
-
 
57273
      private final String _fieldName;
-
 
57274
 
-
 
57275
      _Fields(short thriftId, String fieldName) {
-
 
57276
        _thriftId = thriftId;
-
 
57277
        _fieldName = fieldName;
-
 
57278
      }
-
 
57279
 
-
 
57280
      public short getThriftFieldId() {
-
 
57281
        return _thriftId;
-
 
57282
      }
-
 
57283
 
-
 
57284
      public String getFieldName() {
-
 
57285
        return _fieldName;
-
 
57286
      }
-
 
57287
    }
-
 
57288
 
-
 
57289
    // isset id assignments
-
 
57290
    private static final int __CARTID_ISSET_ID = 0;
-
 
57291
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
57292
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
57293
 
-
 
57294
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57295
    static {
-
 
57296
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57297
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57299
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57300
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57301
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
57303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(showCODOption_args.class, metaDataMap);
-
 
57305
    }
-
 
57306
 
-
 
57307
    public showCODOption_args() {
-
 
57308
    }
-
 
57309
 
-
 
57310
    public showCODOption_args(
-
 
57311
      long cartId,
-
 
57312
      long sourceId,
-
 
57313
      String pincode)
-
 
57314
    {
-
 
57315
      this();
-
 
57316
      this.cartId = cartId;
-
 
57317
      setCartIdIsSet(true);
-
 
57318
      this.sourceId = sourceId;
-
 
57319
      setSourceIdIsSet(true);
-
 
57320
      this.pincode = pincode;
-
 
57321
    }
-
 
57322
 
-
 
57323
    /**
-
 
57324
     * Performs a deep copy on <i>other</i>.
-
 
57325
     */
-
 
57326
    public showCODOption_args(showCODOption_args other) {
-
 
57327
      __isset_bit_vector.clear();
-
 
57328
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57329
      this.cartId = other.cartId;
-
 
57330
      this.sourceId = other.sourceId;
-
 
57331
      if (other.isSetPincode()) {
-
 
57332
        this.pincode = other.pincode;
-
 
57333
      }
-
 
57334
    }
-
 
57335
 
-
 
57336
    public showCODOption_args deepCopy() {
-
 
57337
      return new showCODOption_args(this);
-
 
57338
    }
-
 
57339
 
-
 
57340
    @Override
-
 
57341
    public void clear() {
-
 
57342
      setCartIdIsSet(false);
-
 
57343
      this.cartId = 0;
-
 
57344
      setSourceIdIsSet(false);
-
 
57345
      this.sourceId = 0;
-
 
57346
      this.pincode = null;
-
 
57347
    }
-
 
57348
 
-
 
57349
    public long getCartId() {
-
 
57350
      return this.cartId;
-
 
57351
    }
-
 
57352
 
-
 
57353
    public void setCartId(long cartId) {
-
 
57354
      this.cartId = cartId;
-
 
57355
      setCartIdIsSet(true);
-
 
57356
    }
-
 
57357
 
-
 
57358
    public void unsetCartId() {
-
 
57359
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
57360
    }
-
 
57361
 
-
 
57362
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
57363
    public boolean isSetCartId() {
-
 
57364
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
57365
    }
-
 
57366
 
-
 
57367
    public void setCartIdIsSet(boolean value) {
-
 
57368
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
57369
    }
-
 
57370
 
-
 
57371
    public long getSourceId() {
-
 
57372
      return this.sourceId;
-
 
57373
    }
-
 
57374
 
-
 
57375
    public void setSourceId(long sourceId) {
-
 
57376
      this.sourceId = sourceId;
-
 
57377
      setSourceIdIsSet(true);
-
 
57378
    }
-
 
57379
 
-
 
57380
    public void unsetSourceId() {
-
 
57381
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
57382
    }
-
 
57383
 
-
 
57384
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
57385
    public boolean isSetSourceId() {
-
 
57386
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
57387
    }
-
 
57388
 
-
 
57389
    public void setSourceIdIsSet(boolean value) {
-
 
57390
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
57391
    }
-
 
57392
 
-
 
57393
    public String getPincode() {
-
 
57394
      return this.pincode;
-
 
57395
    }
-
 
57396
 
-
 
57397
    public void setPincode(String pincode) {
-
 
57398
      this.pincode = pincode;
-
 
57399
    }
-
 
57400
 
-
 
57401
    public void unsetPincode() {
-
 
57402
      this.pincode = null;
-
 
57403
    }
-
 
57404
 
-
 
57405
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
57406
    public boolean isSetPincode() {
-
 
57407
      return this.pincode != null;
-
 
57408
    }
-
 
57409
 
-
 
57410
    public void setPincodeIsSet(boolean value) {
-
 
57411
      if (!value) {
-
 
57412
        this.pincode = null;
-
 
57413
      }
-
 
57414
    }
-
 
57415
 
-
 
57416
    public void setFieldValue(_Fields field, Object value) {
-
 
57417
      switch (field) {
-
 
57418
      case CART_ID:
-
 
57419
        if (value == null) {
-
 
57420
          unsetCartId();
-
 
57421
        } else {
-
 
57422
          setCartId((Long)value);
-
 
57423
        }
-
 
57424
        break;
-
 
57425
 
-
 
57426
      case SOURCE_ID:
-
 
57427
        if (value == null) {
-
 
57428
          unsetSourceId();
-
 
57429
        } else {
-
 
57430
          setSourceId((Long)value);
-
 
57431
        }
-
 
57432
        break;
-
 
57433
 
-
 
57434
      case PINCODE:
-
 
57435
        if (value == null) {
-
 
57436
          unsetPincode();
-
 
57437
        } else {
-
 
57438
          setPincode((String)value);
-
 
57439
        }
-
 
57440
        break;
-
 
57441
 
-
 
57442
      }
-
 
57443
    }
-
 
57444
 
-
 
57445
    public Object getFieldValue(_Fields field) {
-
 
57446
      switch (field) {
-
 
57447
      case CART_ID:
-
 
57448
        return Long.valueOf(getCartId());
-
 
57449
 
-
 
57450
      case SOURCE_ID:
-
 
57451
        return Long.valueOf(getSourceId());
-
 
57452
 
-
 
57453
      case PINCODE:
-
 
57454
        return getPincode();
-
 
57455
 
-
 
57456
      }
-
 
57457
      throw new IllegalStateException();
-
 
57458
    }
-
 
57459
 
-
 
57460
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57461
    public boolean isSet(_Fields field) {
-
 
57462
      if (field == null) {
-
 
57463
        throw new IllegalArgumentException();
-
 
57464
      }
-
 
57465
 
-
 
57466
      switch (field) {
-
 
57467
      case CART_ID:
-
 
57468
        return isSetCartId();
-
 
57469
      case SOURCE_ID:
-
 
57470
        return isSetSourceId();
-
 
57471
      case PINCODE:
-
 
57472
        return isSetPincode();
-
 
57473
      }
-
 
57474
      throw new IllegalStateException();
-
 
57475
    }
-
 
57476
 
-
 
57477
    @Override
-
 
57478
    public boolean equals(Object that) {
-
 
57479
      if (that == null)
-
 
57480
        return false;
-
 
57481
      if (that instanceof showCODOption_args)
-
 
57482
        return this.equals((showCODOption_args)that);
-
 
57483
      return false;
-
 
57484
    }
-
 
57485
 
-
 
57486
    public boolean equals(showCODOption_args that) {
-
 
57487
      if (that == null)
-
 
57488
        return false;
-
 
57489
 
-
 
57490
      boolean this_present_cartId = true;
-
 
57491
      boolean that_present_cartId = true;
-
 
57492
      if (this_present_cartId || that_present_cartId) {
-
 
57493
        if (!(this_present_cartId && that_present_cartId))
-
 
57494
          return false;
-
 
57495
        if (this.cartId != that.cartId)
-
 
57496
          return false;
-
 
57497
      }
-
 
57498
 
-
 
57499
      boolean this_present_sourceId = true;
-
 
57500
      boolean that_present_sourceId = true;
-
 
57501
      if (this_present_sourceId || that_present_sourceId) {
-
 
57502
        if (!(this_present_sourceId && that_present_sourceId))
-
 
57503
          return false;
-
 
57504
        if (this.sourceId != that.sourceId)
-
 
57505
          return false;
-
 
57506
      }
-
 
57507
 
-
 
57508
      boolean this_present_pincode = true && this.isSetPincode();
-
 
57509
      boolean that_present_pincode = true && that.isSetPincode();
-
 
57510
      if (this_present_pincode || that_present_pincode) {
-
 
57511
        if (!(this_present_pincode && that_present_pincode))
-
 
57512
          return false;
-
 
57513
        if (!this.pincode.equals(that.pincode))
-
 
57514
          return false;
-
 
57515
      }
-
 
57516
 
-
 
57517
      return true;
-
 
57518
    }
-
 
57519
 
-
 
57520
    @Override
-
 
57521
    public int hashCode() {
-
 
57522
      return 0;
-
 
57523
    }
-
 
57524
 
-
 
57525
    public int compareTo(showCODOption_args other) {
-
 
57526
      if (!getClass().equals(other.getClass())) {
-
 
57527
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57528
      }
-
 
57529
 
-
 
57530
      int lastComparison = 0;
-
 
57531
      showCODOption_args typedOther = (showCODOption_args)other;
-
 
57532
 
-
 
57533
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
57534
      if (lastComparison != 0) {
-
 
57535
        return lastComparison;
-
 
57536
      }
-
 
57537
      if (isSetCartId()) {
-
 
57538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
57539
        if (lastComparison != 0) {
-
 
57540
          return lastComparison;
-
 
57541
        }
-
 
57542
      }
-
 
57543
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
57544
      if (lastComparison != 0) {
-
 
57545
        return lastComparison;
-
 
57546
      }
-
 
57547
      if (isSetSourceId()) {
-
 
57548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
57549
        if (lastComparison != 0) {
-
 
57550
          return lastComparison;
-
 
57551
        }
-
 
57552
      }
-
 
57553
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
57554
      if (lastComparison != 0) {
-
 
57555
        return lastComparison;
-
 
57556
      }
-
 
57557
      if (isSetPincode()) {
-
 
57558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
57559
        if (lastComparison != 0) {
-
 
57560
          return lastComparison;
-
 
57561
        }
-
 
57562
      }
-
 
57563
      return 0;
-
 
57564
    }
-
 
57565
 
-
 
57566
    public _Fields fieldForId(int fieldId) {
-
 
57567
      return _Fields.findByThriftId(fieldId);
-
 
57568
    }
-
 
57569
 
-
 
57570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57571
      org.apache.thrift.protocol.TField field;
-
 
57572
      iprot.readStructBegin();
-
 
57573
      while (true)
-
 
57574
      {
-
 
57575
        field = iprot.readFieldBegin();
-
 
57576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57577
          break;
-
 
57578
        }
-
 
57579
        switch (field.id) {
-
 
57580
          case 1: // CART_ID
-
 
57581
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57582
              this.cartId = iprot.readI64();
-
 
57583
              setCartIdIsSet(true);
-
 
57584
            } else { 
-
 
57585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57586
            }
-
 
57587
            break;
-
 
57588
          case 2: // SOURCE_ID
-
 
57589
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57590
              this.sourceId = iprot.readI64();
-
 
57591
              setSourceIdIsSet(true);
-
 
57592
            } else { 
-
 
57593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57594
            }
-
 
57595
            break;
-
 
57596
          case 3: // PINCODE
-
 
57597
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
57598
              this.pincode = iprot.readString();
-
 
57599
            } else { 
-
 
57600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57601
            }
-
 
57602
            break;
-
 
57603
          default:
-
 
57604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57605
        }
-
 
57606
        iprot.readFieldEnd();
-
 
57607
      }
-
 
57608
      iprot.readStructEnd();
-
 
57609
      validate();
-
 
57610
    }
-
 
57611
 
-
 
57612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57613
      validate();
-
 
57614
 
-
 
57615
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57616
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
57617
      oprot.writeI64(this.cartId);
-
 
57618
      oprot.writeFieldEnd();
-
 
57619
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
57620
      oprot.writeI64(this.sourceId);
-
 
57621
      oprot.writeFieldEnd();
-
 
57622
      if (this.pincode != null) {
-
 
57623
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
57624
        oprot.writeString(this.pincode);
-
 
57625
        oprot.writeFieldEnd();
-
 
57626
      }
-
 
57627
      oprot.writeFieldStop();
-
 
57628
      oprot.writeStructEnd();
-
 
57629
    }
-
 
57630
 
-
 
57631
    @Override
-
 
57632
    public String toString() {
-
 
57633
      StringBuilder sb = new StringBuilder("showCODOption_args(");
-
 
57634
      boolean first = true;
-
 
57635
 
-
 
57636
      sb.append("cartId:");
-
 
57637
      sb.append(this.cartId);
-
 
57638
      first = false;
-
 
57639
      if (!first) sb.append(", ");
-
 
57640
      sb.append("sourceId:");
-
 
57641
      sb.append(this.sourceId);
-
 
57642
      first = false;
-
 
57643
      if (!first) sb.append(", ");
-
 
57644
      sb.append("pincode:");
-
 
57645
      if (this.pincode == null) {
-
 
57646
        sb.append("null");
-
 
57647
      } else {
-
 
57648
        sb.append(this.pincode);
-
 
57649
      }
-
 
57650
      first = false;
-
 
57651
      sb.append(")");
-
 
57652
      return sb.toString();
-
 
57653
    }
-
 
57654
 
-
 
57655
    public void validate() throws org.apache.thrift.TException {
-
 
57656
      // check for required fields
-
 
57657
    }
-
 
57658
 
-
 
57659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57660
      try {
-
 
57661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57662
      } catch (org.apache.thrift.TException te) {
-
 
57663
        throw new java.io.IOException(te);
-
 
57664
      }
-
 
57665
    }
-
 
57666
 
-
 
57667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57668
      try {
-
 
57669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57670
      } catch (org.apache.thrift.TException te) {
-
 
57671
        throw new java.io.IOException(te);
-
 
57672
      }
-
 
57673
    }
-
 
57674
 
-
 
57675
  }
-
 
57676
 
-
 
57677
  public static class showCODOption_result implements org.apache.thrift.TBase<showCODOption_result, showCODOption_result._Fields>, java.io.Serializable, Cloneable   {
-
 
57678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("showCODOption_result");
-
 
57679
 
-
 
57680
    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);
-
 
57681
 
-
 
57682
    private boolean success; // required
-
 
57683
 
-
 
57684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57686
      SUCCESS((short)0, "success");
-
 
57687
 
-
 
57688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57689
 
-
 
57690
      static {
-
 
57691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57692
          byName.put(field.getFieldName(), field);
-
 
57693
        }
-
 
57694
      }
-
 
57695
 
-
 
57696
      /**
-
 
57697
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57698
       */
-
 
57699
      public static _Fields findByThriftId(int fieldId) {
-
 
57700
        switch(fieldId) {
-
 
57701
          case 0: // SUCCESS
-
 
57702
            return SUCCESS;
-
 
57703
          default:
-
 
57704
            return null;
-
 
57705
        }
-
 
57706
      }
-
 
57707
 
-
 
57708
      /**
-
 
57709
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57710
       * if it is not found.
-
 
57711
       */
-
 
57712
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57713
        _Fields fields = findByThriftId(fieldId);
-
 
57714
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57715
        return fields;
-
 
57716
      }
-
 
57717
 
-
 
57718
      /**
-
 
57719
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57720
       */
-
 
57721
      public static _Fields findByName(String name) {
-
 
57722
        return byName.get(name);
-
 
57723
      }
-
 
57724
 
-
 
57725
      private final short _thriftId;
-
 
57726
      private final String _fieldName;
-
 
57727
 
-
 
57728
      _Fields(short thriftId, String fieldName) {
-
 
57729
        _thriftId = thriftId;
-
 
57730
        _fieldName = fieldName;
-
 
57731
      }
-
 
57732
 
-
 
57733
      public short getThriftFieldId() {
-
 
57734
        return _thriftId;
-
 
57735
      }
-
 
57736
 
-
 
57737
      public String getFieldName() {
-
 
57738
        return _fieldName;
-
 
57739
      }
-
 
57740
    }
-
 
57741
 
-
 
57742
    // isset id assignments
-
 
57743
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
57744
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
57745
 
-
 
57746
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57747
    static {
-
 
57748
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57749
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
57751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(showCODOption_result.class, metaDataMap);
-
 
57753
    }
-
 
57754
 
-
 
57755
    public showCODOption_result() {
-
 
57756
    }
-
 
57757
 
-
 
57758
    public showCODOption_result(
-
 
57759
      boolean success)
-
 
57760
    {
-
 
57761
      this();
-
 
57762
      this.success = success;
-
 
57763
      setSuccessIsSet(true);
-
 
57764
    }
-
 
57765
 
-
 
57766
    /**
-
 
57767
     * Performs a deep copy on <i>other</i>.
-
 
57768
     */
-
 
57769
    public showCODOption_result(showCODOption_result other) {
-
 
57770
      __isset_bit_vector.clear();
-
 
57771
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57772
      this.success = other.success;
-
 
57773
    }
-
 
57774
 
-
 
57775
    public showCODOption_result deepCopy() {
-
 
57776
      return new showCODOption_result(this);
-
 
57777
    }
-
 
57778
 
-
 
57779
    @Override
-
 
57780
    public void clear() {
-
 
57781
      setSuccessIsSet(false);
-
 
57782
      this.success = false;
-
 
57783
    }
-
 
57784
 
-
 
57785
    public boolean isSuccess() {
-
 
57786
      return this.success;
-
 
57787
    }
-
 
57788
 
-
 
57789
    public void setSuccess(boolean success) {
-
 
57790
      this.success = success;
-
 
57791
      setSuccessIsSet(true);
-
 
57792
    }
-
 
57793
 
-
 
57794
    public void unsetSuccess() {
-
 
57795
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
57796
    }
-
 
57797
 
-
 
57798
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
57799
    public boolean isSetSuccess() {
-
 
57800
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
57801
    }
-
 
57802
 
-
 
57803
    public void setSuccessIsSet(boolean value) {
-
 
57804
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
57805
    }
-
 
57806
 
-
 
57807
    public void setFieldValue(_Fields field, Object value) {
-
 
57808
      switch (field) {
-
 
57809
      case SUCCESS:
-
 
57810
        if (value == null) {
-
 
57811
          unsetSuccess();
-
 
57812
        } else {
-
 
57813
          setSuccess((Boolean)value);
-
 
57814
        }
-
 
57815
        break;
-
 
57816
 
-
 
57817
      }
-
 
57818
    }
-
 
57819
 
-
 
57820
    public Object getFieldValue(_Fields field) {
-
 
57821
      switch (field) {
-
 
57822
      case SUCCESS:
-
 
57823
        return Boolean.valueOf(isSuccess());
-
 
57824
 
-
 
57825
      }
-
 
57826
      throw new IllegalStateException();
-
 
57827
    }
-
 
57828
 
-
 
57829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57830
    public boolean isSet(_Fields field) {
-
 
57831
      if (field == null) {
-
 
57832
        throw new IllegalArgumentException();
-
 
57833
      }
-
 
57834
 
-
 
57835
      switch (field) {
-
 
57836
      case SUCCESS:
-
 
57837
        return isSetSuccess();
-
 
57838
      }
-
 
57839
      throw new IllegalStateException();
-
 
57840
    }
-
 
57841
 
-
 
57842
    @Override
-
 
57843
    public boolean equals(Object that) {
-
 
57844
      if (that == null)
-
 
57845
        return false;
-
 
57846
      if (that instanceof showCODOption_result)
-
 
57847
        return this.equals((showCODOption_result)that);
-
 
57848
      return false;
-
 
57849
    }
-
 
57850
 
-
 
57851
    public boolean equals(showCODOption_result that) {
-
 
57852
      if (that == null)
-
 
57853
        return false;
-
 
57854
 
-
 
57855
      boolean this_present_success = true;
-
 
57856
      boolean that_present_success = true;
-
 
57857
      if (this_present_success || that_present_success) {
-
 
57858
        if (!(this_present_success && that_present_success))
-
 
57859
          return false;
-
 
57860
        if (this.success != that.success)
-
 
57861
          return false;
-
 
57862
      }
-
 
57863
 
-
 
57864
      return true;
-
 
57865
    }
-
 
57866
 
-
 
57867
    @Override
-
 
57868
    public int hashCode() {
-
 
57869
      return 0;
-
 
57870
    }
-
 
57871
 
-
 
57872
    public int compareTo(showCODOption_result other) {
-
 
57873
      if (!getClass().equals(other.getClass())) {
-
 
57874
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57875
      }
-
 
57876
 
-
 
57877
      int lastComparison = 0;
-
 
57878
      showCODOption_result typedOther = (showCODOption_result)other;
-
 
57879
 
-
 
57880
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
57881
      if (lastComparison != 0) {
-
 
57882
        return lastComparison;
-
 
57883
      }
-
 
57884
      if (isSetSuccess()) {
-
 
57885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
57886
        if (lastComparison != 0) {
-
 
57887
          return lastComparison;
-
 
57888
        }
-
 
57889
      }
-
 
57890
      return 0;
-
 
57891
    }
-
 
57892
 
-
 
57893
    public _Fields fieldForId(int fieldId) {
-
 
57894
      return _Fields.findByThriftId(fieldId);
-
 
57895
    }
-
 
57896
 
-
 
57897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57898
      org.apache.thrift.protocol.TField field;
-
 
57899
      iprot.readStructBegin();
-
 
57900
      while (true)
-
 
57901
      {
-
 
57902
        field = iprot.readFieldBegin();
-
 
57903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57904
          break;
-
 
57905
        }
-
 
57906
        switch (field.id) {
-
 
57907
          case 0: // SUCCESS
-
 
57908
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
57909
              this.success = iprot.readBool();
-
 
57910
              setSuccessIsSet(true);
-
 
57911
            } else { 
-
 
57912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57913
            }
-
 
57914
            break;
-
 
57915
          default:
-
 
57916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57917
        }
-
 
57918
        iprot.readFieldEnd();
-
 
57919
      }
-
 
57920
      iprot.readStructEnd();
-
 
57921
      validate();
-
 
57922
    }
-
 
57923
 
-
 
57924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57925
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57926
 
-
 
57927
      if (this.isSetSuccess()) {
-
 
57928
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
57929
        oprot.writeBool(this.success);
-
 
57930
        oprot.writeFieldEnd();
-
 
57931
      }
-
 
57932
      oprot.writeFieldStop();
-
 
57933
      oprot.writeStructEnd();
-
 
57934
    }
-
 
57935
 
-
 
57936
    @Override
-
 
57937
    public String toString() {
-
 
57938
      StringBuilder sb = new StringBuilder("showCODOption_result(");
-
 
57939
      boolean first = true;
-
 
57940
 
-
 
57941
      sb.append("success:");
-
 
57942
      sb.append(this.success);
-
 
57943
      first = false;
-
 
57944
      sb.append(")");
-
 
57945
      return sb.toString();
-
 
57946
    }
-
 
57947
 
-
 
57948
    public void validate() throws org.apache.thrift.TException {
-
 
57949
      // check for required fields
-
 
57950
    }
-
 
57951
 
-
 
57952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57953
      try {
-
 
57954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57955
      } catch (org.apache.thrift.TException te) {
-
 
57956
        throw new java.io.IOException(te);
-
 
57957
      }
-
 
57958
    }
-
 
57959
 
-
 
57960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57961
      try {
-
 
57962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57963
      } catch (org.apache.thrift.TException te) {
-
 
57964
        throw new java.io.IOException(te);
-
 
57965
      }
-
 
57966
    }
57119
 
57967
 
57120
  }
57968
  }
57121
 
57969
 
57122
}
57970
}