Add the beginnings of the Registration code

This commit is contained in:
bspeice 2013-10-14 15:33:49 -04:00
parent d3ba093cbe
commit f8db5d8bb3
3 changed files with 83 additions and 0 deletions

View File

@ -16,5 +16,6 @@
<string name="university_handle">unccharlotte</string>
<string name="db_path">Gameday.sqlite</string>
<string name="preferences_file">GamedayPreferences</string>
<string name="server_hostname">uncc-gameday.no-ip.org</string>
</resources>

View 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;
}
}

View 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;
}
}