public async Task <TModel[]> FindRecords(JObject jObject) { RecordsResponse response = await httpManager.Request <RecordsResponse>( HttpManager.HttpMethod.Get, GetBaseUrl(jObject), jObject ); return(response.records); }
private void doSearch(string searchText) { items.Clear(); if (previousSearch != searchText) { startAt = 1; hasMoreItems = true; previousSearch = searchText; } if (hasMoreItems) { var client = getClient(); Records request = new Records(); request.q = searchText; request.start = startAt; request.Properties = recordProperties; RecordsResponse response = client.Get <RecordsResponse>(request); if (response.Results != null && response.Results.Count > 0) { startAt = startAt + response.Results.Count; hasMoreItems = response.HasMoreItems; foreach (Record record in response.Results) { items.Add(new Item(record)); } } } }