public void Read(CreateOrderReq structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("order".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderVO value; value = new com.vip.order.biz.vo.OrderVO(); com.vip.order.biz.vo.OrderVOHelper.getInstance().Read(value, iprot); structs.SetOrder(value); } if ("exOrderSn".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderCoopVO value; value = new com.vip.order.biz.vo.OrderCoopVO(); com.vip.order.biz.vo.OrderCoopVOHelper.getInstance().Read(value, iprot); structs.SetExOrderSn(value); } if ("orderInvoice".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderInvoiceVO value; value = new com.vip.order.biz.vo.OrderInvoiceVO(); com.vip.order.biz.vo.OrderInvoiceVOHelper.getInstance().Read(value, iprot); structs.SetOrderInvoice(value); } if ("orderElectronicInvoice".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderElectronicInvoiceVO value; value = new com.vip.order.biz.vo.OrderElectronicInvoiceVO(); com.vip.order.biz.vo.OrderElectronicInvoiceVOHelper.getInstance().Read(value, iprot); structs.SetOrderElectronicInvoice(value); } if ("orderReceiveAddr".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderReceiveAddrVO value; value = new com.vip.order.biz.vo.OrderReceiveAddrVO(); com.vip.order.biz.vo.OrderReceiveAddrVOHelper.getInstance().Read(value, iprot); structs.SetOrderReceiveAddr(value); } if ("orderPayAndDiscount".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderPayAndDiscountVO value; value = new com.vip.order.biz.vo.OrderPayAndDiscountVO(); com.vip.order.biz.vo.OrderPayAndDiscountVOHelper.getInstance().Read(value, iprot); structs.SetOrderPayAndDiscount(value); } if ("orderPayDetailList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.vo.OrderPayDetailVO> value; value = new List <com.vip.order.biz.vo.OrderPayDetailVO>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.vo.OrderPayDetailVO elem7; elem7 = new com.vip.order.biz.vo.OrderPayDetailVO(); com.vip.order.biz.vo.OrderPayDetailVOHelper.getInstance().Read(elem7, iprot); value.Add(elem7); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetOrderPayDetailList(value); } if ("orderPayInstalmentList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.vo.OrderPayInstalmentVO> value; value = new List <com.vip.order.biz.vo.OrderPayInstalmentVO>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.vo.OrderPayInstalmentVO elem9; elem9 = new com.vip.order.biz.vo.OrderPayInstalmentVO(); com.vip.order.biz.vo.OrderPayInstalmentVOHelper.getInstance().Read(elem9, iprot); value.Add(elem9); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetOrderPayInstalmentList(value); } if ("orderGoodsAndDescribeList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.vo.OrderGoodsAndDescribeVO> value; value = new List <com.vip.order.biz.vo.OrderGoodsAndDescribeVO>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.vo.OrderGoodsAndDescribeVO elem11; elem11 = new com.vip.order.biz.vo.OrderGoodsAndDescribeVO(); com.vip.order.biz.vo.OrderGoodsAndDescribeVOHelper.getInstance().Read(elem11, iprot); value.Add(elem11); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetOrderGoodsAndDescribeList(value); } if ("orderActiveList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.vo.OrderActiveVO> value; value = new List <com.vip.order.biz.vo.OrderActiveVO>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.vo.OrderActiveVO elem13; elem13 = new com.vip.order.biz.vo.OrderActiveVO(); com.vip.order.biz.vo.OrderActiveVOHelper.getInstance().Read(elem13, iprot); value.Add(elem13); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetOrderActiveList(value); } if ("orderCookie".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.OrderCookieVO value; value = new com.vip.order.biz.vo.OrderCookieVO(); com.vip.order.biz.vo.OrderCookieVOHelper.getInstance().Read(value, iprot); structs.SetOrderCookie(value); } if ("prepayOrderExtend".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.vo.PrepayOrderExtendVO value; value = new com.vip.order.biz.vo.PrepayOrderExtendVO(); com.vip.order.biz.vo.PrepayOrderExtendVOHelper.getInstance().Read(value, iprot); structs.SetPrepayOrderExtend(value); } if ("orderPeriodsInfoList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.vo.PrepayOrderPeriodsInfoVO> value; value = new List <com.vip.order.biz.vo.PrepayOrderPeriodsInfoVO>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.vo.PrepayOrderPeriodsInfoVO elem17; elem17 = new com.vip.order.biz.vo.PrepayOrderPeriodsInfoVO(); com.vip.order.biz.vo.PrepayOrderPeriodsInfoVOHelper.getInstance().Read(elem17, iprot); value.Add(elem17); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetOrderPeriodsInfoList(value); } if ("uniqueKey".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetUniqueKey(value); } if ("indexKey".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetIndexKey(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetOrderReceiveAddr(com.vip.order.biz.vo.OrderReceiveAddrVO value) { this.orderReceiveAddr_ = value; }