예제 #1
0
        public RetrieveApikeyResult RetrieveApikey(RetrieveApikey retrieveApikey)
        {
            Dictionary<string, string> parameters = _requestBuilderHelper.BuildDictionaryForRetreiveApiKey(retrieveApikey);

            RetrieveApikeyResult retrieveApikeyResult = new RetrieveApikeyResult();
            XDocument resultDoc = GetResultDocument(parameters, Method.GetApiKey, retrieveApikeyResult);
            ResultParser.ParseApikeyResult(resultDoc, retrieveApikeyResult);

            return retrieveApikeyResult;
        }
예제 #2
0
        public RetrieveApikeyResult RetrieveApikey(RetrieveApikey retrieveApikey)
        {
            Dictionary <string, string> parameters = _requestBuilderHelper.BuildDictionaryForRetreiveApiKey(retrieveApikey);

            RetrieveApikeyResult retrieveApikeyResult = new RetrieveApikeyResult();
            XDocument            resultDoc            = GetResultDocument(parameters, Method.GetApiKey, retrieveApikeyResult);

            ResultParser.ParseApikeyResult(resultDoc, retrieveApikeyResult);

            return(retrieveApikeyResult);
        }
예제 #3
0
 public static void ParseApikeyResult(XDocument xDoc, RetrieveApikeyResult retrieveApikeyResult)
 {
     retrieveApikeyResult.ApiKey = xDoc.Descendants("retrieve").First().Attribute("apikey").Value;
 }
예제 #4
0
 public static void ParseApikeyResult(XDocument xDoc, RetrieveApikeyResult retrieveApikeyResult)
 {
     retrieveApikeyResult.ApiKey = xDoc.Descendants("retrieve").First().Attribute("apikey").Value;
 }