public override object Clone() { SearchDownloadSettings cln = new SearchDownloadSettings(); cln.ConsumerKey = this.ConsumerKey; cln.ConsumerSecret = this.ConsumerSecret; cln.HttpsUsed = this.HttpsUsed; foreach (SearchService serv in this.Services) { if (serv is WebSearchService) { cln.Services.Add((WebSearchService)serv.Clone()); } else if (serv is ImageSearchService) { cln.Services.Add((ImageSearchService)serv.Clone()); } else if (serv is NewsSearchService) { cln.Services.Add((NewsSearchService)serv.Clone()); } else if (serv is SpellingSearchService) { cln.Services.Add((SpellingSearchService)serv.Clone()); } } ; cln.AdditionalHeaders.Clear(); cln.AdditionalHeaders.AddRange(this.AdditionalHeaders); return(cln); }
public YahooManaged.Base.Response <SearchResult> Download(IEnumerable <SearchService> services) { SearchDownloadSettings set = (SearchDownloadSettings)this.Settings.Clone(); set.Services.Clear(); foreach (SearchService service in services) { set.Services.Add(service); } return(this.Download(set)); }
public void DownloadAsync(IEnumerable <SearchService> services, object userArgs) { SearchDownloadSettings set = (SearchDownloadSettings)this.Settings.Clone(); set.Services.Clear(); foreach (SearchService service in services) { set.Services.Add(service); } this.DownloadAsync(set, userArgs); }
internal SearchResult(SearchDataContainer[] items, SearchDownloadSettings settings) : base(items) { mSettings = settings; }
public YahooManaged.Base.Response <SearchResult> Download(SearchDownloadSettings settings) { return(base.Download(settings)); }
public void DownloadAsync(SearchDownloadSettings settings, object userArgs) { base.DownloadAsync(settings, userArgs); }
public SearchDownload() { this.Settings = new SearchDownloadSettings(); }