Subversion Repositories SmartDukaan

Rev

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

Rev 4494 Rev 5327
Line 2464... Line 2464...
2464
        }
2464
        }
2465
        switch (field.id) {
2465
        switch (field.id) {
2466
          case 0: // SUCCESS
2466
          case 0: // SUCCESS
2467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2468
              {
2468
              {
2469
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
2469
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2470
                this.success = new ArrayList<Promotion>(_list16.size);
2470
                this.success = new ArrayList<Promotion>(_list12.size);
2471
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
2471
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
2472
                {
2472
                {
2473
                  Promotion _elem18; // required
2473
                  Promotion _elem14; // required
2474
                  _elem18 = new Promotion();
2474
                  _elem14 = new Promotion();
2475
                  _elem18.read(iprot);
2475
                  _elem14.read(iprot);
2476
                  this.success.add(_elem18);
2476
                  this.success.add(_elem14);
2477
                }
2477
                }
2478
                iprot.readListEnd();
2478
                iprot.readListEnd();
2479
              }
2479
              }
2480
            } else { 
2480
            } else { 
2481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 2503... Line 2503...
2503
 
2503
 
2504
      if (this.isSetSuccess()) {
2504
      if (this.isSetSuccess()) {
2505
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2505
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2506
        {
2506
        {
2507
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2507
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2508
          for (Promotion _iter19 : this.success)
2508
          for (Promotion _iter15 : this.success)
2509
          {
2509
          {
2510
            _iter19.write(oprot);
2510
            _iter15.write(oprot);
2511
          }
2511
          }
2512
          oprot.writeListEnd();
2512
          oprot.writeListEnd();
2513
        }
2513
        }
2514
        oprot.writeFieldEnd();
2514
        oprot.writeFieldEnd();
2515
      } else if (this.isSetPex()) {
2515
      } else if (this.isSetPex()) {
Line 6721... Line 6721...
6721
        }
6721
        }
6722
        switch (field.id) {
6722
        switch (field.id) {
6723
          case 0: // SUCCESS
6723
          case 0: // SUCCESS
6724
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6724
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6725
              {
6725
              {
6726
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
6726
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
6727
                this.success = new ArrayList<Coupon>(_list20.size);
6727
                this.success = new ArrayList<Coupon>(_list16.size);
6728
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
6728
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
6729
                {
6729
                {
6730
                  Coupon _elem22; // required
6730
                  Coupon _elem18; // required
6731
                  _elem22 = new Coupon();
6731
                  _elem18 = new Coupon();
6732
                  _elem22.read(iprot);
6732
                  _elem18.read(iprot);
6733
                  this.success.add(_elem22);
6733
                  this.success.add(_elem18);
6734
                }
6734
                }
6735
                iprot.readListEnd();
6735
                iprot.readListEnd();
6736
              }
6736
              }
6737
            } else { 
6737
            } else { 
6738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 6760... Line 6760...
6760
 
6760
 
6761
      if (this.isSetSuccess()) {
6761
      if (this.isSetSuccess()) {
6762
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6762
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6763
        {
6763
        {
6764
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6764
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6765
          for (Coupon _iter23 : this.success)
6765
          for (Coupon _iter19 : this.success)
6766
          {
6766
          {
6767
            _iter23.write(oprot);
6767
            _iter19.write(oprot);
6768
          }
6768
          }
6769
          oprot.writeListEnd();
6769
          oprot.writeListEnd();
6770
        }
6770
        }
6771
        oprot.writeFieldEnd();
6771
        oprot.writeFieldEnd();
6772
      } else if (this.isSetPex()) {
6772
      } else if (this.isSetPex()) {
Line 8334... Line 8334...
8334
        }
8334
        }
8335
        switch (field.id) {
8335
        switch (field.id) {
8336
          case 1: // ITEM_IDS
8336
          case 1: // ITEM_IDS
8337
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8337
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8338
              {
8338
              {
8339
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
8339
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
8340
                this.itemIds = new ArrayList<Long>(_list24.size);
8340
                this.itemIds = new ArrayList<Long>(_list20.size);
8341
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
8341
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
8342
                {
8342
                {
8343
                  long _elem26; // required
8343
                  long _elem22; // required
8344
                  _elem26 = iprot.readI64();
8344
                  _elem22 = iprot.readI64();
8345
                  this.itemIds.add(_elem26);
8345
                  this.itemIds.add(_elem22);
8346
                }
8346
                }
8347
                iprot.readListEnd();
8347
                iprot.readListEnd();
8348
              }
8348
              }
8349
            } else { 
8349
            } else { 
8350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8365... Line 8365...
8365
      oprot.writeStructBegin(STRUCT_DESC);
8365
      oprot.writeStructBegin(STRUCT_DESC);
8366
      if (this.itemIds != null) {
8366
      if (this.itemIds != null) {
8367
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
8367
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
8368
        {
8368
        {
8369
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
8369
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
8370
          for (long _iter27 : this.itemIds)
8370
          for (long _iter23 : this.itemIds)
8371
          {
8371
          {
8372
            oprot.writeI64(_iter27);
8372
            oprot.writeI64(_iter23);
8373
          }
8373
          }
8374
          oprot.writeListEnd();
8374
          oprot.writeListEnd();
8375
        }
8375
        }
8376
        oprot.writeFieldEnd();
8376
        oprot.writeFieldEnd();
8377
      }
8377
      }
Line 8733... Line 8733...
8733
        }
8733
        }
8734
        switch (field.id) {
8734
        switch (field.id) {
8735
          case 0: // SUCCESS
8735
          case 0: // SUCCESS
8736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8737
              {
8737
              {
8738
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8738
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
8739
                this.success = new ArrayList<ItemCouponDiscount>(_list28.size);
8739
                this.success = new ArrayList<ItemCouponDiscount>(_list24.size);
8740
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
8740
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
8741
                {
8741
                {
8742
                  ItemCouponDiscount _elem30; // required
8742
                  ItemCouponDiscount _elem26; // required
8743
                  _elem30 = new ItemCouponDiscount();
8743
                  _elem26 = new ItemCouponDiscount();
8744
                  _elem30.read(iprot);
8744
                  _elem26.read(iprot);
8745
                  this.success.add(_elem30);
8745
                  this.success.add(_elem26);
8746
                }
8746
                }
8747
                iprot.readListEnd();
8747
                iprot.readListEnd();
8748
              }
8748
              }
8749
            } else { 
8749
            } else { 
8750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8772... Line 8772...
8772
 
8772
 
8773
      if (this.isSetSuccess()) {
8773
      if (this.isSetSuccess()) {
8774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8775
        {
8775
        {
8776
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8776
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8777
          for (ItemCouponDiscount _iter31 : this.success)
8777
          for (ItemCouponDiscount _iter27 : this.success)
8778
          {
8778
          {
8779
            _iter31.write(oprot);
8779
            _iter27.write(oprot);
8780
          }
8780
          }
8781
          oprot.writeListEnd();
8781
          oprot.writeListEnd();
8782
        }
8782
        }
8783
        oprot.writeFieldEnd();
8783
        oprot.writeFieldEnd();
8784
      } else if (this.isSetPex()) {
8784
      } else if (this.isSetPex()) {
Line 9383... Line 9383...
9383
        }
9383
        }
9384
        switch (field.id) {
9384
        switch (field.id) {
9385
          case 0: // SUCCESS
9385
          case 0: // SUCCESS
9386
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9386
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9387
              {
9387
              {
9388
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
9388
                org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin();
9389
                this.success = new HashMap<String,Double>(2*_map32.size);
9389
                this.success = new HashMap<String,Double>(2*_map28.size);
9390
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
9390
                for (int _i29 = 0; _i29 < _map28.size; ++_i29)
9391
                {
9391
                {
9392
                  String _key34; // required
9392
                  String _key30; // required
9393
                  double _val35; // required
9393
                  double _val31; // required
9394
                  _key34 = iprot.readString();
9394
                  _key30 = iprot.readString();
9395
                  _val35 = iprot.readDouble();
9395
                  _val31 = iprot.readDouble();
9396
                  this.success.put(_key34, _val35);
9396
                  this.success.put(_key30, _val31);
9397
                }
9397
                }
9398
                iprot.readMapEnd();
9398
                iprot.readMapEnd();
9399
              }
9399
              }
9400
            } else { 
9400
            } else { 
9401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 9415... Line 9415...
9415
 
9415
 
9416
      if (this.isSetSuccess()) {
9416
      if (this.isSetSuccess()) {
9417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9418
        {
9418
        {
9419
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
9419
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
9420
          for (Map.Entry<String, Double> _iter36 : this.success.entrySet())
9420
          for (Map.Entry<String, Double> _iter32 : this.success.entrySet())
9421
          {
9421
          {
9422
            oprot.writeString(_iter36.getKey());
9422
            oprot.writeString(_iter32.getKey());
9423
            oprot.writeDouble(_iter36.getValue());
9423
            oprot.writeDouble(_iter32.getValue());
9424
          }
9424
          }
9425
          oprot.writeMapEnd();
9425
          oprot.writeMapEnd();
9426
        }
9426
        }
9427
        oprot.writeFieldEnd();
9427
        oprot.writeFieldEnd();
9428
      }
9428
      }