public void Read(DoubleSvipStatus structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("code".Equals(schemeField.Trim())) { needSkip = false; int?value; value = iprot.ReadI32(); structs.SetCode(value); } if ("msg".Equals(schemeField.Trim())) { needSkip = false; string value; value = iprot.ReadString(); structs.SetMsg(value); } if ("token".Equals(schemeField.Trim())) { needSkip = false; com.vip.svip.osp.service.DoubleSvipToken value; value = new com.vip.svip.osp.service.DoubleSvipToken(); com.vip.svip.osp.service.DoubleSvipTokenHelper.getInstance().Read(value, iprot); structs.SetToken(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetToken(com.vip.svip.osp.service.DoubleSvipToken value) { this.token_ = value; }