Exemplo n.º 1
0
		public async void LoadSearchEventsbyLocation ()
		{
		var searchlocations= Intent.GetStringExtra("SearchLocations");
			AndHUD.Shared.Show(this, "Searching events",60);
		objRest = new RestHandler (@"http://api.eventfinder.co.nz/v2/events.xml?autocomplete="+ searchlocations +"&fields=Location:(name)");
		var Response = await objRest.ExecuteRequestAsync ();
		lstEventsSearchbyLocation.Adapter = new DataAdapter (this, Response.Event);
		tmpEventsSearchByLocation = Response.Event;
			AndHUD.Shared.Dismiss ();
	}
Exemplo n.º 2
0
        public async void LoadPopularEvents()
        {
            AndHUD.Shared.Show(this, "Finding popular events", 60);
            objRest = new RestHandler(@"http://api.eventfinder.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();
        }
Exemplo n.º 3
0
        public async void LoadNearbyEvents()
        {
            AndHUD.Shared.Show(this, "Finding nearby events", 60);
            var lat = Convert.ToDouble(Intent.GetStringExtra("Latitude"));
            var lng = Convert.ToDouble(Intent.GetStringExtra("Longitude"));

            objRest = new RestHandler(@"http://api.eventfinder.co.nz/v2/events.xml?point=" + lat + "," + lng + "&radius=20");
            var Response = await objRest.ExecuteRequestAsync();

            lstNearbyEvents.Adapter = new DataAdapter(this, Response.Event);
            tmpNearbyList           = Response.Event;
            AndHUD.Shared.Dismiss();
        }
Exemplo n.º 4
0
        public async void LoadFreeEvents()
        {
            AndHUD.Shared.Show(this, "Finding free events", 60);
            objRest = new RestHandler(@"http://api.eventfinder.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();
        }