public void Read(HtIdCardInfoResponse structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("head".Equals(schemeField.Trim())) { needSkip = false; com.vip.haitao.idcard.osp.service.Head value; value = new com.vip.haitao.idcard.osp.service.Head(); com.vip.haitao.idcard.osp.service.HeadHelper.getInstance().Read(value, iprot); structs.SetHead(value); } if ("idCardInfo".Equals(schemeField.Trim())) { needSkip = false; com.vip.haitao.idcard.osp.service.HtIdCardInfo value; value = new com.vip.haitao.idcard.osp.service.HtIdCardInfo(); com.vip.haitao.idcard.osp.service.HtIdCardInfoHelper.getInstance().Read(value, iprot); structs.SetIdCardInfo(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetHead(com.vip.haitao.idcard.osp.service.Head value) { this.head_ = value; }