Exemplo n.º 1
0
        public async void LoadPopularEvents()
        {
            AndHUD.Shared.Show(this, "Finding popular events", 60);
            objRest = new RestHandler(@"http://api.eventfinda.co.nz/v2/events.xml?&order=popularity");
            var Response = await objRest.ExecuteRequestAsync();

            lstPopularEvents.Adapter = new DataAdapter(this, Response.Event);
            tmpPopularList           = Response.Event;
            AndHUD.Shared.Dismiss();
        }
        public async void LoadSearchEventsbyname()
        {
            var searchname = Intent.GetStringExtra("SearchName");

            AndHUD.Shared.Show(this, "Searching events", 60);
            objRest = new RestHandler(@"http://api.eventfinda.co.nz/v2/events.xml?autocomplete=" + searchname + "&fields=Event:(name)");
            var Response = await objRest.ExecuteRequestAsync();

            lstEventsSearchbyName.Adapter = new DataAdapter(this, Response.Event);
            tmpEventsSearchByName         = Response.Event;
            AndHUD.Shared.Dismiss();
        }
Exemplo n.º 3
0
        public async void LoadFreeEvents()
        {
            AndHUD.Shared.Show(this, "Finding free events", 60);
            objRest = new RestHandler(@"http://api.eventfinda.co.nz/v2/events.xml?free=1");
            var Response = await objRest.ExecuteRequestAsync();

            tmpFreeList = Response.Event;

            //          foreach(List <int> Event  in tmpFreeList1) {
            //
            //              PriceMax =  tmpFreeList1[Event].Ticket_types.Ticket_type [0].Price;
            //              if (PriceMax == "0.00") {
            //                  tmpFreeList = tmpFreeList1;
            lstFreeEvents.Adapter = new DataAdapter(this, tmpFreeList);
            AndHUD.Shared.Dismiss();
        }