Exemplo n.º 1
0
        /// <summary>
        /// Make a search
        /// </summary>
        /// <param name="keyword">keyword</param>
        /// <returns></returns>
        public async Task <SearchResult> SearchAsync(string keyword)
        {
            var result = await Http.GetAsync(RequestPath, new SearchRequest(keyword).ToDictionary());

            return(JsonConvert.DeserializeObject <SearchResult>(result));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Make a search
        /// </summary>
        /// <param name="request">a search request</param>
        /// <returns></returns>
        public SearchResult Search(Request request)
        {
            var result = Http.Get(RequestPath, request.ToDictionary());

            return(JsonConvert.DeserializeObject <SearchResult>(result));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Make a search
        /// </summary>
        /// <param name="request">a search request</param>
        /// <returns></returns>
        public async Task <SearchResult> SearchAsync(Request request)
        {
            var result = await Http.GetAsync(RequestPath, request.ToDictionary());

            return(JsonConvert.DeserializeObject <SearchResult>(result));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Make a search
        /// </summary>
        /// <param name="keyword">keyword</param>
        /// <returns></returns>
        public SearchResult Search(string keyword)
        {
            var result = Http.Get(RequestPath, new SearchRequest(keyword).ToDictionary());

            return(JsonConvert.DeserializeObject <SearchResult>(result));
        }