public void Read(CheckResult structs, Protocol iprot){ String schemeStruct = iprot.ReadStructBegin(); if(schemeStruct != null){ while(true){ String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) break; bool needSkip = true; if ("status".Equals(schemeField.Trim())){ needSkip = false; com.vip.hermes.core.health.Status value; value = new com.vip.hermes.core.health.Status(); com.vip.hermes.core.health.StatusHelper.getInstance().Read(value, iprot); structs.SetStatus(value); } if ("details".Equals(schemeField.Trim())){ needSkip = false; Dictionary<string, string> value; value = new Dictionary<string, string>(); iprot.ReadMapBegin(); while(true){ try{ string _key2; string _val2; _key2 = iprot.ReadString(); _val2 = iprot.ReadString(); value.Add(_key2, _val2); } catch(Exception e){ break; } } iprot.ReadMapEnd(); structs.SetDetails(value); } if(needSkip){ ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else{ throw new OspException(); } }
public void SetStatus(com.vip.hermes.core.health.Status value) { this.status_ = value; }