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

            return(instance);
        }
Beispiel #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ListRolesResponse response = new ListRolesResponse();

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


            return(response);
        }