updated API because of a stupid I did
parent
88014c726d
commit
76ad2e0adc
|
@ -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 aren’t
|
||||||
|
*/
|
||||||
|
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 user’s reply back to the backend. Can be called
|
* This is used to send the user’s reply back to the backend. Can be called
|
||||||
|
|
Loading…
Reference in New Issue