Exemplo n.º 1
0
        public static AssumeRoleWithWebIdentityResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new AssumeRoleWithWebIdentityResultUnmarshaller();
            }

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AssumeRoleWithWebIdentityResponse response = new AssumeRoleWithWebIdentityResponse();

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


            return(response);
        }