RoadTripMoustache / kana_to_kanji

Simple application to learn Japanese kana (hiragana, katakana) and kanji
5 stars 1 forks source link

feat: Implement `MultiChoicesQuestionViewModel` #174

Open apomalyn opened 4 months ago

apomalyn commented 4 months ago

Requirements

Implement the MultiChoicesQuestion model extending Question. It should be implemented using freezed

MultiChoicesQuestion schema **Note**: the schema is represented using OpenAPI spec for simplicity. ```yaml MultipleChoiceQuestion: description: Representation of a multiple-choice question allOf: - $ref: "#/components/schemas/Question" - properties: rightAnswerIndex: description: Indicate the answer index in the options options: type: array minimum: 2 maximum: 4 items: $ref: "#/components/schemas/MultiChoiceOption" required: - rightAnswerIndex - options ```

Implement a MultiChoicesQuestionViewModel that:

What needs to be done

Dependencies

Child of #168

Depends on:

Dev notes