Android Open Source - marriagenda Guest List






From Project

Back to project page marriagenda.

License

The source code is released under:

MIT License

If you think the Android project marriagenda listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package marriagenda.controller.utilities;
/*from   w w w.  j  a  v  a2  s  .  co m*/
import java.util.ArrayList;

public class GuestList {

  ArrayList<Entry<User>> guestList = new ArrayList<Entry<User>>();

  private class Entry<User> {
    public final static String YES = "Y";
    public final static String NO = "N";
    public final static String DONT_KNOW = "D";

    public User guest;
    public String attending;

    public Entry(User u, String decision) {
      guest = u;
      attending = decision;
    }

  }

  public GuestList() {
    // TODO Auto-generated constructor stub
  }

  void addGuest(User u) {
    guestList.add(new Entry<User>(u, Entry.DONT_KNOW));
  }

  public void removeGuest(User u) {
    guestList.remove(u);
  }

  void setDecision(User u, String dec) {
    Entry<User> temp = new Entry<User>(u, dec);

    guestList.remove(guestList.indexOf(u));
    guestList.add(temp);
  }

}




Java Source Code List

com.marriagenda.marriagendamobile.Admin_Fragment.java
com.marriagenda.marriagendamobile.EventInvite.java
com.marriagenda.marriagendamobile.Guest_Fragment.java
com.marriagenda.marriagendamobile.MarriagendaActivity.java
com.marriagenda.marriagendamobile.MarriagendaRegister.java
com.marriagenda.marriagendamobile.MarriagendaSplash.java
com.marriagenda.marriagendamobile.NewEvent.java
com.marriagenda.marriagendamobile.ViewEvent.java
com.marriagenda.marriagendamobile.marriagendaLogin.java
marriagenda.controller.EventController.java
marriagenda.controller.MarriagendaController.java
marriagenda.controller.utilities.AdminList.java
marriagenda.controller.utilities.Event.java
marriagenda.controller.utilities.GuestBook.java
marriagenda.controller.utilities.GuestList.java
marriagenda.controller.utilities.Location.java
marriagenda.controller.utilities.Page.java
marriagenda.controller.utilities.User.java