Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 3555
Line 2305... Line 2305...
2305
        }
2305
        }
2306
        switch (field.id) {
2306
        switch (field.id) {
2307
          case 0: // SUCCESS
2307
          case 0: // SUCCESS
2308
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2308
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2309
              {
2309
              {
2310
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2310
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
2311
                this.success = new ArrayList<Promotion>(_list12.size);
2311
                this.success = new ArrayList<Promotion>(_list16.size);
2312
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
2312
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
2313
                {
2313
                {
2314
                  Promotion _elem14; // required
2314
                  Promotion _elem18; // required
2315
                  _elem14 = new Promotion();
2315
                  _elem18 = new Promotion();
2316
                  _elem14.read(iprot);
2316
                  _elem18.read(iprot);
2317
                  this.success.add(_elem14);
2317
                  this.success.add(_elem18);
2318
                }
2318
                }
2319
                iprot.readListEnd();
2319
                iprot.readListEnd();
2320
              }
2320
              }
2321
            } else { 
2321
            } else { 
2322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 2344... Line 2344...
2344
 
2344
 
2345
      if (this.isSetSuccess()) {
2345
      if (this.isSetSuccess()) {
2346
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2346
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2347
        {
2347
        {
2348
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2348
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2349
          for (Promotion _iter15 : this.success)
2349
          for (Promotion _iter19 : this.success)
2350
          {
2350
          {
2351
            _iter15.write(oprot);
2351
            _iter19.write(oprot);
2352
          }
2352
          }
2353
          oprot.writeListEnd();
2353
          oprot.writeListEnd();
2354
        }
2354
        }
2355
        oprot.writeFieldEnd();
2355
        oprot.writeFieldEnd();
2356
      } else if (this.isSetPex()) {
2356
      } else if (this.isSetPex()) {
Line 6562... Line 6562...
6562
        }
6562
        }
6563
        switch (field.id) {
6563
        switch (field.id) {
6564
          case 0: // SUCCESS
6564
          case 0: // SUCCESS
6565
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6565
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6566
              {
6566
              {
6567
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
6567
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
6568
                this.success = new ArrayList<Coupon>(_list16.size);
6568
                this.success = new ArrayList<Coupon>(_list20.size);
6569
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
6569
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
6570
                {
6570
                {
6571
                  Coupon _elem18; // required
6571
                  Coupon _elem22; // required
6572
                  _elem18 = new Coupon();
6572
                  _elem22 = new Coupon();
6573
                  _elem18.read(iprot);
6573
                  _elem22.read(iprot);
6574
                  this.success.add(_elem18);
6574
                  this.success.add(_elem22);
6575
                }
6575
                }
6576
                iprot.readListEnd();
6576
                iprot.readListEnd();
6577
              }
6577
              }
6578
            } else { 
6578
            } else { 
6579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 6601... Line 6601...
6601
 
6601
 
6602
      if (this.isSetSuccess()) {
6602
      if (this.isSetSuccess()) {
6603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6604
        {
6604
        {
6605
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6605
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6606
          for (Coupon _iter19 : this.success)
6606
          for (Coupon _iter23 : this.success)
6607
          {
6607
          {
6608
            _iter19.write(oprot);
6608
            _iter23.write(oprot);
6609
          }
6609
          }
6610
          oprot.writeListEnd();
6610
          oprot.writeListEnd();
6611
        }
6611
        }
6612
        oprot.writeFieldEnd();
6612
        oprot.writeFieldEnd();
6613
      } else if (this.isSetPex()) {
6613
      } else if (this.isSetPex()) {