コード例 #1
0
        public static CreateJobResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new CreateJobResultUnmarshaller();
            }

            return(instance);
        }
コード例 #2
0
        public CreateJobResponse Unmarshall(UnmarshallerContext context)
        {
            CreateJobResponse response = new CreateJobResponse();

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

            return(response);
        }