/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeApplicationResponse response = new DescribeApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("application", targetDepth)) { var unmarshaller = ApplicationUnmarshaller.Instance; response.Application = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeApplicationResponse response = new DescribeApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("applicationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationCreationDate", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.ApplicationCreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationLastUpdateDate", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.ApplicationLastUpdateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ssoClientId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SsoClientId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return(response); }