public DescribeTrustedAdvisorCheckResultResult Unmarshall(JsonUnmarshallerContext context) { DescribeTrustedAdvisorCheckResultResult describeTrustedAdvisorCheckResultResult = new DescribeTrustedAdvisorCheckResultResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Result", targetDepth)) { describeTrustedAdvisorCheckResultResult.Result = TrustedAdvisorCheckResultUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(describeTrustedAdvisorCheckResultResult); } } return(describeTrustedAdvisorCheckResultResult); }
public static TrustedAdvisorCheckResultUnmarshaller GetInstance() { if (instance == null) { instance = new TrustedAdvisorCheckResultUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeTrustedAdvisorCheckResultResponse response = new DescribeTrustedAdvisorCheckResultResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("result", targetDepth)) { response.Result = TrustedAdvisorCheckResultUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, DescribeTrustedAdvisorCheckResultResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("result", targetDepth)) { context.Read(); response.Result = TrustedAdvisorCheckResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }