Subversion Repositories SmartDukaan

Rev

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

Rev 68 Rev 132
Line 314... Line 314...
314
      } else {
314
      } else {
315
        switch (fieldId) {
315
        switch (fieldId) {
316
          case SHIPMENTS:
316
          case SHIPMENTS:
317
            if (field.type == TType.LIST) {
317
            if (field.type == TType.LIST) {
318
              {
318
              {
319
                TList _list17 = iprot.readListBegin();
319
                TList _list21 = iprot.readListBegin();
320
                this.shipments = new ArrayList<Shipment>(_list17.size);
320
                this.shipments = new ArrayList<Shipment>(_list21.size);
321
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
321
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
322
                {
322
                {
323
                  Shipment _elem19;
323
                  Shipment _elem23;
324
                  _elem19 = new Shipment();
324
                  _elem23 = new Shipment();
325
                  _elem19.read(iprot);
325
                  _elem23.read(iprot);
326
                  this.shipments.add(_elem19);
326
                  this.shipments.add(_elem23);
327
                }
327
                }
328
                iprot.readListEnd();
328
                iprot.readListEnd();
329
              }
329
              }
330
            } else { 
330
            } else { 
331
              TProtocolUtil.skip(iprot, field.type);
331
              TProtocolUtil.skip(iprot, field.type);
Line 353... Line 353...
353
    oprot.writeStructBegin(STRUCT_DESC);
353
    oprot.writeStructBegin(STRUCT_DESC);
354
    if (this.shipments != null) {
354
    if (this.shipments != null) {
355
      oprot.writeFieldBegin(SHIPMENTS_FIELD_DESC);
355
      oprot.writeFieldBegin(SHIPMENTS_FIELD_DESC);
356
      {
356
      {
357
        oprot.writeListBegin(new TList(TType.STRUCT, this.shipments.size()));
357
        oprot.writeListBegin(new TList(TType.STRUCT, this.shipments.size()));
358
        for (Shipment _iter20 : this.shipments)
358
        for (Shipment _iter24 : this.shipments)
359
        {
359
        {
360
          _iter20.write(oprot);
360
          _iter24.write(oprot);
361
        }
361
        }
362
        oprot.writeListEnd();
362
        oprot.writeListEnd();
363
      }
363
      }
364
      oprot.writeFieldEnd();
364
      oprot.writeFieldEnd();
365
    }
365
    }