Class DomandaVeroFalso
java.lang.Object
it.quizzy.databaselayer.models.Domanda
it.quizzy.databaselayer.models.domande.DomandaVeroFalso
- All Implemented Interfaces:
Serializable
Domanda di tipo vero o falso
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCostruttore per la ricerca e lettera di un domanda già esistenteDomandaVeroFalso(Integer idQuiz, String domanda, String rispostaCorretta) Costruttore per l'inserimento di una domanda di tipo vero o falso -
Method Summary
-
Constructor Details
-
DomandaVeroFalso
Costruttore per la ricerca e lettera di un domanda già esistente- Parameters:
id- domanda- Throws:
RecordNotFoundException
-
DomandaVeroFalso
public DomandaVeroFalso(Integer idQuiz, String domanda, String rispostaCorretta) throws InvalidRecordInsertionException, IOException, IllegalArgumentException Costruttore per l'inserimento di una domanda di tipo vero o falso- Parameters:
idQuiz- quiz in cui inserire la domandadomanda- stringa con il quesitorispostaCorretta-- Throws:
InvalidRecordInsertionExceptionIOExceptionIllegalArgumentException
-
-
Method Details
-
getDomanda
- Specified by:
getDomandain classDomanda- Returns:
- la stringa contenente la domanda
-
getRisposteDisponibili
- Specified by:
getRisposteDisponibiliin classDomanda- Returns:
- lista di stringhe contenente le possibili risposte
-
controllaRisposta
- Specified by:
controllaRispostain classDomanda- Parameters:
risp- risposta da controllare- Returns:
- true o false se la risposta è rispettivamente corretta o errata
-