public void DownloadAsync(string text, object userArgs) { IDSearchBaseSettings <IDSearchResult> settings = null; if (this.Settings != null && this.Settings is IQuerySettings) { settings = (IDSearchBaseSettings <IDSearchResult>) this.Settings.Clone(); } else { settings = new IDInstantSearchDownloadSettings(); } ((IQuerySettings)settings).Query = text; this.DownloadAsync(settings, userArgs); }
/// <summary> /// Downloads search results for Yahoo IDs by keyword and other options /// </summary> /// <param name="text">The used search text</param> /// <returns></returns> /// <remarks></remarks> public YahooManaged.Base.Response <IDSearchResult> Download(string text) { if (text.Trim() == string.Empty) { throw new ArgumentNullException("text", "The text is empty."); } IDSearchBaseSettings <IDSearchResult> settings = null; if (this.Settings != null && this.Settings is IQuerySettings) { settings = (IDSearchBaseSettings <IDSearchResult>) this.Settings.Clone(); } else { settings = new IDInstantSearchDownloadSettings(); } ((IQuerySettings)settings).Query = text; return(this.Download(settings)); }
public void DownloadAsync(IDSearchBaseSettings <IDSearchResult> settings, object userArgs) { base.DownloadAsync(settings, userArgs); }
/// <summary> /// Default constructor /// </summary> /// <remarks></remarks> public IDSearchDownload() { this.Settings = new IDInstantSearchDownloadSettings(); }
public Base.Response<IDSearchResult> Download(IDSearchBaseSettings<IDSearchResult> settings) { return base.Download(settings); }
public YahooManaged.Base.Response <IDSearchResult> Download(IDSearchBaseSettings <IDSearchResult> settings) { return(base.Download(settings)); }