Subversion Repositories SmartDukaan

Rev

Rev 18719 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18719 Rev 21963
Line 556... Line 556...
556
          }
556
          }
557
          break;
557
          break;
558
        case 2: // BULK_PRICING
558
        case 2: // BULK_PRICING
559
          if (field.type == org.apache.thrift.protocol.TType.MAP) {
559
          if (field.type == org.apache.thrift.protocol.TType.MAP) {
560
            {
560
            {
561
              org.apache.thrift.protocol.TMap _map17 = iprot.readMapBegin();
561
              org.apache.thrift.protocol.TMap _map22 = iprot.readMapBegin();
562
              this.bulkPricing = new HashMap<Long,Double>(2*_map17.size);
562
              this.bulkPricing = new HashMap<Long,Double>(2*_map22.size);
563
              for (int _i18 = 0; _i18 < _map17.size; ++_i18)
563
              for (int _i23 = 0; _i23 < _map22.size; ++_i23)
564
              {
564
              {
565
                long _key19; // required
565
                long _key24; // required
566
                double _val20; // required
566
                double _val25; // required
567
                _key19 = iprot.readI64();
567
                _key24 = iprot.readI64();
568
                _val20 = iprot.readDouble();
568
                _val25 = iprot.readDouble();
569
                this.bulkPricing.put(_key19, _val20);
569
                this.bulkPricing.put(_key24, _val25);
570
              }
570
              }
571
              iprot.readMapEnd();
571
              iprot.readMapEnd();
572
            }
572
            }
573
          } else { 
573
          } else { 
574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 616... Line 616...
616
    oprot.writeFieldEnd();
616
    oprot.writeFieldEnd();
617
    if (this.bulkPricing != null) {
617
    if (this.bulkPricing != null) {
618
      oprot.writeFieldBegin(BULK_PRICING_FIELD_DESC);
618
      oprot.writeFieldBegin(BULK_PRICING_FIELD_DESC);
619
      {
619
      {
620
        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.bulkPricing.size()));
620
        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.bulkPricing.size()));
621
        for (Map.Entry<Long, Double> _iter21 : this.bulkPricing.entrySet())
621
        for (Map.Entry<Long, Double> _iter26 : this.bulkPricing.entrySet())
622
        {
622
        {
623
          oprot.writeI64(_iter21.getKey());
623
          oprot.writeI64(_iter26.getKey());
624
          oprot.writeDouble(_iter21.getValue());
624
          oprot.writeDouble(_iter26.getValue());
625
        }
625
        }
626
        oprot.writeMapEnd();
626
        oprot.writeMapEnd();
627
      }
627
      }
628
      oprot.writeFieldEnd();
628
      oprot.writeFieldEnd();
629
    }
629
    }