Ejemplo n.º 1
0
        public static CreateUserResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new CreateUserResultUnmarshaller();
            }

            return(instance);
        }
        public CreateUserResponse Unmarshall(UnmarshallerContext context)
        {
            CreateUserResponse response = new CreateUserResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("CreateUserResult", 2))
                    {
                        response.CreateUserResult = CreateUserResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }

            return(response);
        }