From f8db5d8bb39aab2864bae725c25be48e2334cee8 Mon Sep 17 00:00:00 2001 From: bspeice Date: Mon, 14 Oct 2013 15:33:49 -0400 Subject: [PATCH] Add the beginnings of the Registration code --- res/values/strings.xml | 1 + .../uncc/gameday/registration/Attendee.java | 46 +++++++++++++++++++ .../registration/RegistrationClient.java | 36 +++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 src/com/uncc/gameday/registration/Attendee.java create mode 100644 src/com/uncc/gameday/registration/RegistrationClient.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 841edba..c261532 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -16,5 +16,6 @@ unccharlotte Gameday.sqlite GamedayPreferences + uncc-gameday.no-ip.org diff --git a/src/com/uncc/gameday/registration/Attendee.java b/src/com/uncc/gameday/registration/Attendee.java new file mode 100644 index 0000000..a3afd2d --- /dev/null +++ b/src/com/uncc/gameday/registration/Attendee.java @@ -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; + } + + + +} diff --git a/src/com/uncc/gameday/registration/RegistrationClient.java b/src/com/uncc/gameday/registration/RegistrationClient.java new file mode 100644 index 0000000..c5d65b2 --- /dev/null +++ b/src/com/uncc/gameday/registration/RegistrationClient.java @@ -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 listAttendeeNames() { + // List all attendees to the game + + return null; + } + + public List 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; + } + +}