updated API because of a stupid I did

bodgemaster
BodgeMaster 2022-02-20 19:37:48 +01:00
parent 88014c726d
commit 76ad2e0adc
1 changed files with 13 additions and 2 deletions

View File

@ -15,12 +15,19 @@ public class QuizBackend {
} }
public static class Question { public static class Question {
public Question(String question, String[] answers) {
/**
*
* @param question The string for the question text
* @param answers The multiple choice answers
* @param mask A mask to be layed over answers to decide which answers are correct and which arent
*/
public Question(String question, String[] answers, boolean[] mask) {
} }
/** /**
* @return the full question text including multiple choice options * @return the full question text including multiple choice options with letters that correspond to getValidResponses()
*/ */
public String getQuestionTextWithOptions() { public String getQuestionTextWithOptions() {
return null; return null;
@ -32,6 +39,10 @@ public class QuizBackend {
public char[] getValidResponses() { public char[] getValidResponses() {
return null; return null;
} }
public char[] getCorrectResponses() {
return null;
}
/** /**
* This is used to send the users reply back to the backend. Can be called * This is used to send the users reply back to the backend. Can be called