2017-05-20 11:23:09 +03:00
|
|
|
|
public enum AnswerObjectModel
|
|
|
|
|
|
{
|
|
|
|
|
|
NOVI_PROZOR,
|
|
|
|
|
|
STARI_PROZOR,
|
|
|
|
|
|
SLOMLJENI_PROZOR,
|
|
|
|
|
|
PROZOR_SA_ROLETNOM,
|
|
|
|
|
|
UPALJENA_CESMA,
|
|
|
|
|
|
UGASENA_CESMA,
|
|
|
|
|
|
PROFESOR_ATOM_10,
|
|
|
|
|
|
ZARNA_SIJALICA,
|
|
|
|
|
|
BICIKLO,
|
|
|
|
|
|
VENTILATOR,
|
|
|
|
|
|
KANTA_ZA_RECIKLIRANJE,
|
|
|
|
|
|
KLIMA,
|
|
|
|
|
|
ADAPTER,
|
|
|
|
|
|
MASINA_ZA_VES,
|
|
|
|
|
|
TERMOSTAT_25,
|
|
|
|
|
|
PREKIDAC_ZA_SVJETLO,
|
|
|
|
|
|
KUCICA_17,
|
|
|
|
|
|
KUCICA_22,
|
|
|
|
|
|
KUCICA_33,
|
|
|
|
|
|
KUCICA_26,
|
|
|
|
|
|
RUCNO_PRANJE_SUDJA,
|
|
|
|
|
|
MASINA_ZA_SUDJE,
|
|
|
|
|
|
STRIK,
|
|
|
|
|
|
RADIJATOR,
|
|
|
|
|
|
TELEVIZOR,
|
|
|
|
|
|
DIMNJAK,
|
|
|
|
|
|
AUTO,
|
|
|
|
|
|
RUCNO_PRANJE_VESA
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public class Answer
|
|
|
|
|
|
{
|
|
|
|
|
|
public Answer(AnswerObjectModel model, string caption)
|
|
|
|
|
|
{
|
|
|
|
|
|
answerModel = model;
|
|
|
|
|
|
answerCaption = caption;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private AnswerObjectModel answerModel;
|
|
|
|
|
|
|
|
|
|
|
|
private string answerCaption;
|
|
|
|
|
|
|
|
|
|
|
|
public string getAnswerCaption()
|
|
|
|
|
|
{
|
|
|
|
|
|
return answerCaption;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public AnswerObjectModel getAnswerModel()
|
|
|
|
|
|
{
|
|
|
|
|
|
return answerModel;
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
2017-05-17 14:11:01 +02:00
|
|
|
|
|
|
|
|
|
|
public class Question
|
|
|
|
|
|
{
|
2017-05-20 11:23:09 +03:00
|
|
|
|
public Question(string question, int [] correctAns)
|
|
|
|
|
|
{
|
|
|
|
|
|
questionText = question;
|
|
|
|
|
|
correctAnswers = correctAns;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Question(string question, int[] correctAns, Answer[] possibleAns)
|
2017-05-17 14:11:01 +02:00
|
|
|
|
{
|
|
|
|
|
|
questionText = question;
|
2017-05-20 11:23:09 +03:00
|
|
|
|
correctAnswers = correctAns;
|
|
|
|
|
|
possibleAnswers = possibleAns;
|
2017-05-17 14:11:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2017-05-20 11:23:09 +03:00
|
|
|
|
// All questions have the same number of possible answers
|
|
|
|
|
|
// private static int numberOfAnswers = 4;
|
|
|
|
|
|
|
2017-05-17 14:11:01 +02:00
|
|
|
|
private int[] correctAnswers;
|
|
|
|
|
|
|
|
|
|
|
|
private string questionText;
|
|
|
|
|
|
|
2017-05-20 11:23:09 +03:00
|
|
|
|
private Answer[] possibleAnswers;
|
|
|
|
|
|
|
2017-05-17 14:11:01 +02:00
|
|
|
|
public int[] getCorrectAnswers()
|
|
|
|
|
|
{
|
|
|
|
|
|
return correctAnswers;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string getQuestionText()
|
|
|
|
|
|
{
|
|
|
|
|
|
return questionText;
|
|
|
|
|
|
}
|
2017-05-20 11:23:09 +03:00
|
|
|
|
|
|
|
|
|
|
public Answer[] getPossibleAnswers()
|
|
|
|
|
|
{
|
|
|
|
|
|
return possibleAnswers;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
public static int getNumberOfAnswers()
|
|
|
|
|
|
{
|
|
|
|
|
|
return numberOfAnswers;
|
|
|
|
|
|
}*/
|
2017-05-17 14:11:01 +02:00
|
|
|
|
}
|