/// <summary> /// Returns all jokes containing the text specified. /// </summary> /// <param name="query">The text that you want to search for.</param> /// <returns>A List of Joke objects containing the search query in its text.</returns> public async Task <List <Joke> > SearchForText(string query) { string url = $"{BaseUrl}/jokes/search?query={query}"; var response = await client.GetAsyncSearchResults <Joke>(url); return(response); }