public async Task<Results<Bill>> FindBills(string query = null, Bill searchPrototype = null)
        {
            var parms = new Dictionary<string, object>();
            parms.Add("query", query);
            parms.AddSearchableProperties(searchPrototype);

            return await _service.Get<Results<Bill>>("bills", parms);
        }
        public async Task<Results<Bill>> SearchBills(string query = null, bool highlight = false, Bill searchPrototype = null)
        {
            var parms = new Dictionary<string, object>();
            parms.Add("query", query);
            parms.Add("highlight", highlight);
            parms.AddSearchableProperties(searchPrototype);

            return await _service.Get<Results<Bill>>("bills/search", parms);
        }
Exemplo n.º 3
0
        public async Task <Results <Vote> > FindVotes(string query = null, Vote searchPrototype = null)
        {
            var parms = new Dictionary <string, object>();

            parms.Add("query", query);
            parms.AddSearchableProperties(searchPrototype);

            return(await _service.Get <Results <Vote> >("votes", parms));
        }
Exemplo n.º 4
0
        public async Task <Results <UpcomingBill> > FindUpcomingBills(string query = null, UpcomingBill searchPrototype = null)
        {
            var parms = new Dictionary <string, object>();

            parms.Add("query", query);
            parms.AddSearchableProperties(searchPrototype);

            return(await _service.Get <Results <UpcomingBill> >("upcoming_bills", parms));
        }
Exemplo n.º 5
0
        public async Task <Results <Bill> > SearchBills(string query = null, bool highlight = false, Bill searchPrototype = null)
        {
            var parms = new Dictionary <string, object>();

            parms.Add("query", query);
            parms.Add("highlight", highlight);
            parms.AddSearchableProperties(searchPrototype);

            return(await _service.Get <Results <Bill> >("bills/search", parms));
        }
        public async Task<Results<FloorUpdate>> FindFloorUpdates(string query = null, FloorUpdate searchPrototype = null)
        {
            var parms = new Dictionary<string, object>();
            parms.Add("query", query);
            parms.AddSearchableProperties(searchPrototype);

            return await _service.Get<Results<FloorUpdate>>("floor_updates", parms);
        }