Subversion Repositories SmartDukaan

Rev

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

Rev 3555 Rev 5327
Line 966... Line 966...
966
          }
966
          }
967
          break;
967
          break;
968
        case 10: // DISCOUNTS
968
        case 10: // DISCOUNTS
969
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
969
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
970
            {
970
            {
971
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
971
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
972
              this.discounts = new ArrayList<Discount>(_list8.size);
972
              this.discounts = new ArrayList<Discount>(_list4.size);
973
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
973
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
974
              {
974
              {
975
                Discount _elem10; // required
975
                Discount _elem6; // required
976
                _elem10 = new Discount();
976
                _elem6 = new Discount();
977
                _elem10.read(iprot);
977
                _elem6.read(iprot);
978
                this.discounts.add(_elem10);
978
                this.discounts.add(_elem6);
979
              }
979
              }
980
              iprot.readListEnd();
980
              iprot.readListEnd();
981
            }
981
            }
982
          } else { 
982
          } else { 
983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1027... Line 1027...
1027
    oprot.writeFieldEnd();
1027
    oprot.writeFieldEnd();
1028
    if (this.discounts != null) {
1028
    if (this.discounts != null) {
1029
      oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
1029
      oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
1030
      {
1030
      {
1031
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
1031
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
1032
        for (Discount _iter11 : this.discounts)
1032
        for (Discount _iter7 : this.discounts)
1033
        {
1033
        {
1034
          _iter11.write(oprot);
1034
          _iter7.write(oprot);
1035
        }
1035
        }
1036
        oprot.writeListEnd();
1036
        oprot.writeListEnd();
1037
      }
1037
      }
1038
      oprot.writeFieldEnd();
1038
      oprot.writeFieldEnd();
1039
    }
1039
    }