mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	Add the beginnings of the Registration code
This commit is contained in:
		
							
								
								
									
										46
									
								
								src/com/uncc/gameday/registration/Attendee.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								src/com/uncc/gameday/registration/Attendee.java
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,46 @@
 | 
			
		||||
package com.uncc.gameday.registration;
 | 
			
		||||
 | 
			
		||||
import java.util.Date;
 | 
			
		||||
 | 
			
		||||
public class Attendee {
 | 
			
		||||
	
 | 
			
		||||
	private Date date_registered;
 | 
			
		||||
	private String first_name;
 | 
			
		||||
	private String last_name;
 | 
			
		||||
	private String section;
 | 
			
		||||
	private int row;
 | 
			
		||||
	
 | 
			
		||||
	public Date getDate_registered() {
 | 
			
		||||
		return date_registered;
 | 
			
		||||
	}
 | 
			
		||||
	public void setDate_registered(Date date_registered) {
 | 
			
		||||
		this.date_registered = date_registered;
 | 
			
		||||
	}
 | 
			
		||||
	public String getFirst_name() {
 | 
			
		||||
		return first_name;
 | 
			
		||||
	}
 | 
			
		||||
	public void setFirst_name(String first_name) {
 | 
			
		||||
		this.first_name = first_name;
 | 
			
		||||
	}
 | 
			
		||||
	public String getLast_name() {
 | 
			
		||||
		return last_name;
 | 
			
		||||
	}
 | 
			
		||||
	public void setLast_name(String last_name) {
 | 
			
		||||
		this.last_name = last_name;
 | 
			
		||||
	}
 | 
			
		||||
	public String getSection() {
 | 
			
		||||
		return section;
 | 
			
		||||
	}
 | 
			
		||||
	public void setSection(String section) {
 | 
			
		||||
		this.section = section;
 | 
			
		||||
	}
 | 
			
		||||
	public int getRow() {
 | 
			
		||||
		return row;
 | 
			
		||||
	}
 | 
			
		||||
	public void setRow(int row) {
 | 
			
		||||
		this.row = row;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										36
									
								
								src/com/uncc/gameday/registration/RegistrationClient.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								src/com/uncc/gameday/registration/RegistrationClient.java
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
package com.uncc.gameday.registration;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import com.uncc.gameday.GameDay;
 | 
			
		||||
import com.uncc.gameday.R;
 | 
			
		||||
 | 
			
		||||
/* Client used for interfacing with the server API */
 | 
			
		||||
 | 
			
		||||
public class RegistrationClient {
 | 
			
		||||
	
 | 
			
		||||
	private String serverName = GameDay.getAppContext().getString(R.string.server_hostname);
 | 
			
		||||
	
 | 
			
		||||
	public void registerAttendee(Attendee a) {
 | 
			
		||||
		
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public List<Attendee> listAttendeeNames() {
 | 
			
		||||
		// List all attendees to the game
 | 
			
		||||
		
 | 
			
		||||
		return null;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public List<Attendee> listAttendeeNames(int begin, int end) {
 | 
			
		||||
		// List attendees to the game supporting pagination
 | 
			
		||||
		
 | 
			
		||||
		return null;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public Attendee getAttendee(int id) {
 | 
			
		||||
		// Get the full information for a single attendee
 | 
			
		||||
		
 | 
			
		||||
		return null;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user