Esempio n. 1
0
        public RetrieveTokenResult RetrieveToken(RetrieveToken retrieveToken)
        {
            Dictionary<string, string> parameters = _requestBuilderHelper.BuildDictionaryForRetreiveToken(retrieveToken);

            RetrieveTokenResult retrieveTokenResult = new RetrieveTokenResult();
            XDocument resultDocument = GetResultDocument(parameters, Method.GetToken, retrieveTokenResult);
            ResultParser.ParseTokenResult(resultDocument, retrieveTokenResult);

            return retrieveTokenResult;
        }
Esempio n. 2
0
        public RetrieveTokenResult RetrieveToken(RetrieveToken retrieveToken)
        {
            Dictionary <string, string> parameters = _requestBuilderHelper.BuildDictionaryForRetreiveToken(retrieveToken);

            RetrieveTokenResult retrieveTokenResult = new RetrieveTokenResult();
            XDocument           resultDocument      = GetResultDocument(parameters, Method.GetToken, retrieveTokenResult);

            ResultParser.ParseTokenResult(resultDocument, retrieveTokenResult);

            return(retrieveTokenResult);
        }
Esempio n. 3
0
 public static void ParseTokenResult(XDocument resultDocument, RetrieveTokenResult retrieveTokenResult)
 {
     retrieveTokenResult.Token = resultDocument.Descendants("retrieve").ElementAt(0).Attribute("token").Value;
     retrieveTokenResult.Url   = resultDocument.Descendants("retrieve").ElementAt(0).Attribute("url").Value;
 }
Esempio n. 4
0
 public static void ParseTokenResult(XDocument resultDocument, RetrieveTokenResult retrieveTokenResult)
 {
     retrieveTokenResult.Token = resultDocument.Descendants("retrieve").ElementAt(0).Attribute("token").Value;
     retrieveTokenResult.Url = resultDocument.Descendants("retrieve").ElementAt(0).Attribute("url").Value;
 }