package de.wilhelmgym.jeopardy.structure;

//Luci & Yanni

public class Question {

    public static final int NOOB = 0;
    public static final int EASY = 1;
    public static final int MEDIUM = 2;
    public static final int ADVANCED = 3;
    public static final int HARD = 4;
    public static final int EXTREME = 5;

    private String question;
    private Answers answers;
    private int level;

    //TODO categories
    //TODO JSON parsing

    public Question(String question, Answers answer, int level) {
        this.question = question;
        this.answers = answer;
        this.level = level;
    }

    public Question(String question, Answers answer) {
        this(question, answer, MEDIUM);
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public Answers getAnswers() {
        return answers;
    }

    public void setAnswers(Answers answers) {
        this.answers = answers;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        if (level >= NOOB && level <= EXTREME) {
            this.level = level;
        }
    }
}

@@ -389,41 +389,48 @@
 ate 
-int level;%0A%0A    //TODO categories
+String category;%0A    private int level;%0A
 %0A   
@@ -503,16 +503,33 @@
  answer,
+ String category,
  int lev
@@ -599,16 +599,50 @@
 answer;%0A
+        this.category = category;%0A
         
@@ -719,16 +719,33 @@
 s answer
+, String category
 ) %7B%0A    
@@ -770,16 +770,26 @@
  answer,
+ category,
  MEDIUM)
@@ -1093,32 +1093,201 @@
 answers;%0A    %7D%0A%0A
+    public String getCategory(String category) %7B%0A        return category;%0A    %7D%0A%0A    public void setCategory(String category) %7B%0A        this.category = category;%0A    %7D%0A%0A
     public int g

Edit categories support