public RefreshTrustedAdvisorCheckResult Unmarshall(JsonUnmarshallerContext context) { RefreshTrustedAdvisorCheckResult refreshTrustedAdvisorCheckResult = new RefreshTrustedAdvisorCheckResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Status", targetDepth)) { refreshTrustedAdvisorCheckResult.Status = TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(refreshTrustedAdvisorCheckResult); } } return(refreshTrustedAdvisorCheckResult); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RefreshTrustedAdvisorCheckResponse response = new RefreshTrustedAdvisorCheckResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("status", targetDepth)) { response.Status = TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(response); }
public DescribeTrustedAdvisorCheckRefreshStatusesResult Unmarshall(JsonUnmarshallerContext context) { DescribeTrustedAdvisorCheckRefreshStatusesResult describeTrustedAdvisorCheckRefreshStatusesResult = new DescribeTrustedAdvisorCheckRefreshStatusesResult(); describeTrustedAdvisorCheckRefreshStatusesResult.Statuses = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Statuses", targetDepth)) { describeTrustedAdvisorCheckRefreshStatusesResult.Statuses = new List <TrustedAdvisorCheckRefreshStatus>(); TrustedAdvisorCheckRefreshStatusUnmarshaller unmarshaller = TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { describeTrustedAdvisorCheckRefreshStatusesResult.Statuses.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(describeTrustedAdvisorCheckRefreshStatusesResult); } } return(describeTrustedAdvisorCheckRefreshStatusesResult); }
private static void UnmarshallResult(JsonUnmarshallerContext context, DescribeTrustedAdvisorCheckRefreshStatusesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("statuses", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { response.Statuses = null; continue; } response.Statuses = new List <TrustedAdvisorCheckRefreshStatus>(); TrustedAdvisorCheckRefreshStatusUnmarshaller unmarshaller = TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.Statuses.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeTrustedAdvisorCheckRefreshStatusesResponse response = new DescribeTrustedAdvisorCheckRefreshStatusesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("statuses", targetDepth)) { var unmarshaller = new ListUnmarshaller <TrustedAdvisorCheckRefreshStatus, TrustedAdvisorCheckRefreshStatusUnmarshaller>( TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance()); response.Statuses = unmarshaller.Unmarshall(context); continue; } } return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, RefreshTrustedAdvisorCheckResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("status", targetDepth)) { context.Read(); response.Status = TrustedAdvisorCheckRefreshStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }