mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	Add the RSVP search activity
This commit is contained in:
		
							
								
								
									
										37
									
								
								src/com/uncc/gameday/activities/Search.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								src/com/uncc/gameday/activities/Search.java
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
			
		||||
package com.uncc.gameday.activities;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import android.content.Context;
 | 
			
		||||
import android.os.Bundle;
 | 
			
		||||
 | 
			
		||||
import com.uncc.gameday.R;
 | 
			
		||||
import com.uncc.gameday.registration.Attendee;
 | 
			
		||||
import com.uncc.gameday.registration.RegistrationClient;
 | 
			
		||||
 | 
			
		||||
public class Search extends MenuActivity {
 | 
			
		||||
	
 | 
			
		||||
	List<Attendee> rsvpList;
 | 
			
		||||
	boolean listFetched = false;
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	protected void onCreate(Bundle savedInstanceState) {
 | 
			
		||||
		super.onCreate(savedInstanceState);
 | 
			
		||||
		setContentView(R.layout.activity_search_rsvp);
 | 
			
		||||
		new fetchAttendeesThread(this).start();
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	private class fetchAttendeesThread extends Thread {
 | 
			
		||||
		Context c;
 | 
			
		||||
		public fetchAttendeesThread(Context c) {
 | 
			
		||||
			this.c = c;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		public void run() {
 | 
			
		||||
			RegistrationClient client = new RegistrationClient(this.c);
 | 
			
		||||
			rsvpList = client.listAttendees();
 | 
			
		||||
			listFetched = true;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user