Пример #1
0
 public static AddSourceIdentifierToSubscriptionResultUnmarshaller GetInstance()
 {
     if (instance == null)
     {
         instance = new AddSourceIdentifierToSubscriptionResultUnmarshaller();
     }
     return(instance);
 }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AddSourceIdentifierToSubscriptionResponse response = new AddSourceIdentifierToSubscriptionResponse();

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

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


            return(response);
        }