Exemple #1
0
        private MoIPResposta GetMoIPRespostaFromXML(string Response)
        {
            XmlDocument XmlResposta = new XmlDocument();
            XmlResposta.LoadXml(Response);

            MoIPResposta resposta = new MoIPResposta();
            resposta.ID = XmlResposta.DocumentElement.SelectSingleNode("//Resposta//ID").InnerText;
            resposta.Token = XmlResposta.DocumentElement.SelectSingleNode("//Resposta//Token").InnerText;
            resposta.Sucesso = XmlResposta.DocumentElement.SelectSingleNode("//Resposta/Status").InnerText.Equals("Sucesso");

            return resposta;
        }
Exemple #2
0
        private MoIPResposta GetMoIPRespostaFromXML(string Response)
        {
            XmlDocument XmlResposta = new XmlDocument();

            XmlResposta.LoadXml(Response);

            MoIPResposta resposta = new MoIPResposta();

            resposta.ID      = XmlResposta.DocumentElement.SelectSingleNode("//Resposta//ID").InnerText;
            resposta.Token   = XmlResposta.DocumentElement.SelectSingleNode("//Resposta//Token").InnerText;
            resposta.Sucesso = XmlResposta.DocumentElement.SelectSingleNode("//Resposta/Status").InnerText.Equals("Sucesso");

            return(resposta);
        }