public static CreateDirectoryResponse Unmarshall(UnmarshallerContext context)
        {
            CreateDirectoryResponse createDirectoryResponse = new CreateDirectoryResponse();

            createDirectoryResponse.HttpResponse = context.HttpResponse;
            createDirectoryResponse.RequestId    = context.StringValue("CreateDirectory.RequestId");
            createDirectoryResponse.Id           = context.StringValue("CreateDirectory.Id");

            return(createDirectoryResponse);
        }
示例#2
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateDirectoryResponse response = new CreateDirectoryResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("DirectoryId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.DirectoryId = 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)
        {
            CreateDirectoryResponse response = new CreateDirectoryResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("AppliedSchemaArn", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.AppliedSchemaArn = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("DirectoryArn", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.DirectoryArn = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Name", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Name = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ObjectIdentifier", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ObjectIdentifier = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }