Android Open Source - TAQueue Queue Data






From Project

Back to project page TAQueue.

License

The source code is released under:

MIT License

If you think the Android project TAQueue 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 com.familybiz.greg.taqueue.model.queue;
/*w  ww .  jav a  2 s.c  o m*/
import java.util.List;

/**
 * Created by Greg Anderson
 */
public class QueueData {

  private boolean mActive;
  private boolean mFrozen;
  private String mId;
  private boolean mQuestionBased;
  private String mStatus;
  private List<QueueStudent> mStudents;
  private List<QueueTA> mTAs;

  public QueueData(boolean active,
                   boolean frozen,
                   String id,
                   boolean questionBased,
                   String status,
                   List<QueueStudent> students,
                   List<QueueTA> TAs) {

    mActive = active;
    mFrozen = frozen;
    mId = id;
    mQuestionBased = questionBased;
    mStatus = status;
    mStudents = students;
    mTAs = TAs;
  }

  public boolean isActive() {
    return mActive;
  }

  public boolean isFrozen() {
    return mFrozen;
  }

  public String getId() {
    return mId;
  }

  public boolean isQuestionBased() {
    return mQuestionBased;
  }

  public String getStatus() {
    return mStatus;
  }

  public QueueStudent[] getStudents() {
    return mStudents.toArray(new QueueStudent[mStudents.size()]);
  }

  public QueueTA[] getTAs() {
    return mTAs.toArray(new QueueTA[mTAs.size()]);
  }

  public boolean containsStudent(String username, String location) {
    for (QueueStudent student : mStudents)
      if (student.getUsername().equals(username) && student.getLocation().equals(location)) {
        // Student found
        if (student.isInQueue())
          return true;

        return false;
      }
    return false;
  }
}




Java Source Code List

com.familybiz.greg.taqueue.ApplicationTest.java
com.familybiz.greg.taqueue.MainActivity.java
com.familybiz.greg.taqueue.MoreInformationActivity.java
com.familybiz.greg.taqueue.NetworkTestFragment.java
com.familybiz.greg.taqueue.SettingsActivity.java
com.familybiz.greg.taqueue.model.Instructor.java
com.familybiz.greg.taqueue.model.School.java
com.familybiz.greg.taqueue.model.StudentQueue.java
com.familybiz.greg.taqueue.model.Student.java
com.familybiz.greg.taqueue.model.TA.java
com.familybiz.greg.taqueue.model.User.java
com.familybiz.greg.taqueue.model.queue.QueueData.java
com.familybiz.greg.taqueue.model.queue.QueueStudent.java
com.familybiz.greg.taqueue.model.queue.QueueTA.java
com.familybiz.greg.taqueue.network.CustomStringRequest.java
com.familybiz.greg.taqueue.network.NetworkRequest.java
com.familybiz.greg.taqueue.network.QueueRequest.java
com.familybiz.greg.taqueue.network.SchoolRequest.java
com.familybiz.greg.taqueue.network.StudentRequest.java
com.familybiz.greg.taqueue.network.TARequest.java
com.familybiz.greg.taqueue.view.lists.InstructorListFragment.java
com.familybiz.greg.taqueue.view.lists.ListFragment.java
com.familybiz.greg.taqueue.view.lists.QueueListFragment.java
com.familybiz.greg.taqueue.view.lists.SchoolListFragment.java
com.familybiz.greg.taqueue.view.login.LoginFragment.java
com.familybiz.greg.taqueue.view.login.StudentLoginFragment.java
com.familybiz.greg.taqueue.view.login.TALoginFragment.java
com.familybiz.greg.taqueue.view.queue.ColorableStudentArrayAdapter.java
com.familybiz.greg.taqueue.view.queue.ColorableTAArrayAdapter.java
com.familybiz.greg.taqueue.view.queue.QueueFragment.java
com.familybiz.greg.taqueue.view.queue.StudentQueueFragment.java
com.familybiz.greg.taqueue.view.queue.TAQueueFragment.java