Пример #1
0
        public Task <HttpResponseMessage> GetTags(int take = 50)
        {
            var queryBuilder = new HttpQueryBuilder();

            queryBuilder.AddParameter("take", take);

            var request = this._mileageClient.CreateRequest(string.Format("Search/Tags{0}", queryBuilder), HttpMethod.Get);

            return(this._mileageClient.SendRequestAsync(request));
        }
Пример #2
0
        public Task <HttpResponseMessage> SearchAsync(string searchText, int skip = 0, int take = 50)
        {
            var queryBuilder = new HttpQueryBuilder();

            queryBuilder.AddParameter("searchText", searchText);
            queryBuilder.AddParameter("skip", skip);
            queryBuilder.AddParameter("take", take);

            var request = this._mileageClient.CreateRequest(string.Format("Search{0}", queryBuilder), HttpMethod.Get);

            return(this._mileageClient.SendRequestAsync(request));
        }