public IGoogleSearchResult Search(string queryText, int startFrom, GoogleSearch.ResultTypes resultType) { Google.GoogleSearchService service = new Google.GoogleSearchService(); Google.GoogleSearchResult tempSearchResult = service.doGoogleSearch(licenseKey, queryText, startFrom, 10, filter, restrict, safeSearch, languageRestrict, string.Empty, string.Empty); object convertedResult = ConvertResult(tempSearchResult, resultType); GoogleSearchResult searchResult = new GoogleSearchResult(this, tempSearchResult.estimatedTotalResultsCount, startFrom, 10, queryText, convertedResult, resultType); return(searchResult); }
public IGoogleSearchResult Search(string queryText, int startFrom, ResultTypes resultType) { string tempResult = RunQuery(queryText, startFrom); XmlDocument xmlDocument = ConvertToXmlDocument(tempResult); int resultsCount = GetResultsCount(xmlDocument, resultType); object result = ConvertResult(tempResult, resultType); IGoogleSearchResult gsResult = new GoogleSearchResult(this, resultsCount, startFrom, resultsPerPage, queryText, result, resultType); return(gsResult); }