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; }
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); }
public static void ParseApikeyResult(XDocument xDoc, RetrieveApikeyResult retrieveApikeyResult) { retrieveApikeyResult.ApiKey = xDoc.Descendants("retrieve").First().Attribute("apikey").Value; }