lecturequiz.server.data
Class Quiz

java.lang.Object
  extended by lecturequiz.server.data.Quiz

public class Quiz
extends java.lang.Object


Constructor Summary
Quiz(int id, java.lang.String name, java.lang.String description, java.util.ArrayList<Question> questions, User owner)
           
 
Method Summary
 int getId()
          Returns the ID of the quiz
 java.lang.String getName()
          Get the name of the quiz.
 int getNumberOfQuestions()
           
 java.util.ArrayList<Question> getQuestions()
           
 FullQuizInfo toFullQuizInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quiz

public Quiz(int id,
            java.lang.String name,
            java.lang.String description,
            java.util.ArrayList<Question> questions,
            User owner)
Method Detail

getId

public int getId()
Returns the ID of the quiz

Returns:
ID of the quiz.

getName

public java.lang.String getName()
Get the name of the quiz.

Returns:
name of the quiz.

getNumberOfQuestions

public int getNumberOfQuestions()

getQuestions

public java.util.ArrayList<Question> getQuestions()

toFullQuizInfo

public FullQuizInfo toFullQuizInfo()