public static GetRolePolicyResultUnmarshaller GetInstance() 
        {
            if (instance == null) 
               instance = new GetRolePolicyResultUnmarshaller();

            return instance;
        }
Ejemplo n.º 2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            GetRolePolicyResponse response = new GetRolePolicyResponse();

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


            return(response);
        }