import ChoiceChallenge from 'itslanguage/administrative-sdk/choice-challenge/choice-challenge.js'
ChoiceChallenge
ChoiceChallenge domain model.
Constructor Summary
Public Constructor | ||
public |
constructor(id: string, question: string, choices: string[]) Create a choice challenge domain model. |
Member Summary
Public Members | ||
public |
The sentences of which at most one may be recognised. |
|
public |
The choice challenge identifier. |
|
public |
A hint or question related to the choices. |
|
public |
The status of the challenge's preparation. Either 'unprepared', 'preparing' or 'prepared'. |
Public Constructors
public constructor(id: string, question: string, choices: string[]) source
Create a choice challenge domain model.
Params:
Name | Type | Attribute | Description |
id | string |
|
The ChoiceChallenge identifier. If none is given, one is generated. |
question | string |
|
A hint or question related to the choices. |
choices | string[] | The sentences of which at most one may be recognised. |