Amazon.SimpleSystemsManagement.Model.Internal.MarshallTransformations.DescribePatchGroupStateResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public method

Unmarshaller the response from the service to the response class.
public Unmarshall ( JsonUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
return Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DescribePatchGroupStateResponse response = new DescribePatchGroupStateResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Instances", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.Instances = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithFailedPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithFailedPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithInstalledOtherPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithInstalledOtherPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithInstalledPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithInstalledPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithMissingPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithMissingPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithNotApplicablePatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithNotApplicablePatches = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
DescribePatchGroupStateResponseUnmarshaller