private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteDomainResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("DomainStatus", targetDepth))
                    {
                        var unmarshaller = DomainStatusUnmarshaller.Instance;
                        response.DomainStatus = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
 public void DeleteDomain(string domainName)
 {
     DeleteDomainRequest request = new DeleteDomainRequest {
         DomainName = domainName
     };
     DeleteDomainResponse response = Service.DeleteDomain(request);
 }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DeleteDomainResponse response = new DeleteDomainResponse();

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

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("DeleteDomainResult", 2))
                    {
                        UnmarshallResult(context, response);
                        continue;
                    }

                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
                    }
                }
            }

            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)
        {
            DeleteDomainResponse response = new DeleteDomainResponse();


            return(response);
        }
        public static DeleteDomainResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteDomainResponse deleteDomainResponse = new DeleteDomainResponse();

            deleteDomainResponse.HttpResponse = context.HttpResponse;
            deleteDomainResponse.RequestId = context.StringValue("DeleteDomain.RequestId");

            return deleteDomainResponse;
        }
예제 #6
0
        public static DeleteDomainResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteDomainResponse deleteDomainResponse = new DeleteDomainResponse();

            deleteDomainResponse.HttpResponse = context.HttpResponse;
            deleteDomainResponse.RequestId    = context.StringValue("DeleteDomain.RequestId");

            return(deleteDomainResponse);
        }
예제 #7
0
        public static DeleteDomainResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DeleteDomainResponse deleteDomainResponse = new DeleteDomainResponse();

            deleteDomainResponse.HttpResponse = _ctx.HttpResponse;
            deleteDomainResponse.RequestId    = _ctx.StringValue("DeleteDomain.RequestId");
            deleteDomainResponse.DomainName   = _ctx.StringValue("DeleteDomain.DomainName");

            return(deleteDomainResponse);
        }
예제 #8
0
        public static DeleteDomainResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteDomainResponse deleteDomainResponse = new DeleteDomainResponse
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DeleteDomain.RequestId"),
                DomainName   = context.StringValue("DeleteDomain.DomainName")
            };


            return(deleteDomainResponse);
        }
예제 #9
0
        public static DeleteDomainResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteDomainResponse deleteDomainResponse = new DeleteDomainResponse();

            deleteDomainResponse.HttpResponse  = context.HttpResponse;
            deleteDomainResponse.ResultCode    = context.StringValue("DeleteDomain.ResultCode");
            deleteDomainResponse.ResultMessage = context.StringValue("DeleteDomain.ResultMessage");
            deleteDomainResponse.Success       = context.BooleanValue("DeleteDomain.Success");
            deleteDomainResponse.TransactionId = context.StringValue("DeleteDomain.TransactionId");
            deleteDomainResponse.RequestId     = context.StringValue("DeleteDomain.RequestId");

            return(deleteDomainResponse);
        }
예제 #10
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DeleteDomainResponse response = new DeleteDomainResponse();

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


            return(response);
        }
예제 #11
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteDomainResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                }
            }

            return;
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DeleteDomainResponse response = new DeleteDomainResponse();

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

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("domain", targetDepth))
                {
                    var unmarshaller = DomainDescriptionUnmarshaller.Instance;
                    response.Domain = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }