public static CreateEventSubscriptionResultUnmarshaller GetInstance()
 {
     if (instance == null)
     {
         instance = new CreateEventSubscriptionResultUnmarshaller();
     }
     return(instance);
 }
Exemplo n.º 2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateEventSubscriptionResponse response = new CreateEventSubscriptionResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("CreateEventSubscriptionResult", 2))
                    {
                        response.CreateEventSubscriptionResult = CreateEventSubscriptionResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }

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


            return(response);
        }