public void SetPreviewInfo(com.vip.order.biz.response.PreviewInfoResp value) { this.previewInfo_ = value; }
public void Read(CancelOrderResp structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("result".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.common.pojo.order.result.Result value; value = new com.vip.order.common.pojo.order.result.Result(); com.vip.order.common.pojo.order.result.ResultHelper.getInstance().Read(value, iprot); structs.SetResult(value); } if ("returnBrandCouponStatus".Equals(schemeField.Trim())) { needSkip = false; byte?value; value = iprot.ReadByte(); structs.SetReturnBrandCouponStatus(value); } if ("returnType".Equals(schemeField.Trim())) { needSkip = false; byte?value; value = iprot.ReadByte(); structs.SetReturnType(value); } if ("previewInfo".Equals(schemeField.Trim())) { needSkip = false; com.vip.order.biz.response.PreviewInfoResp value; value = new com.vip.order.biz.response.PreviewInfoResp(); com.vip.order.biz.response.PreviewInfoRespHelper.getInstance().Read(value, iprot); structs.SetPreviewInfo(value); } if ("linkageCancelOrderInfoList".Equals(schemeField.Trim())) { needSkip = false; List <com.vip.order.biz.response.LinkageCancelOrderInfo> value; value = new List <com.vip.order.biz.response.LinkageCancelOrderInfo>(); iprot.ReadListBegin(); while (true) { try{ com.vip.order.biz.response.LinkageCancelOrderInfo elem2; elem2 = new com.vip.order.biz.response.LinkageCancelOrderInfo(); com.vip.order.biz.response.LinkageCancelOrderInfoHelper.getInstance().Read(elem2, iprot); value.Add(elem2); } catch (Exception e) { break; } } iprot.ReadListEnd(); structs.SetLinkageCancelOrderInfoList(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }