Overview
TheGameQuestion DTO represents a complete crafting question presented to the player. It includes the target item to craft, the correct components, distractor options, and game metadata.
Fields
The unique identifier of the item that the player needs to craft
The display name of the target item (e.g., “Trinity Force”, “Infinity Edge”)
Full URL to the target item’s image from the Data Dragon CDN
List of item IDs that are the correct components needed to craft the target item. This is used for validation.
List of ItemOption objects containing full details of the correct components. Each ItemOption contains:
itemId (String), name (String), imageUrl (String), and cost (Integer).List of all available item options presented to the player. This includes both the correct components and distractor items. The player must select the correct components from this list.
Time limit for answering the question in seconds. Varies based on difficulty level.
The difficulty level of this question. Valid values:
EASY- Items with 2 componentsMEDIUM- Items with 3 componentsHARD- Items with 4+ components
Example JSON
Usage
This model is returned by the GET /api/game/question endpoint and is used to:- Display the target item to the player
- Present the available component options
- Set the time limit for the question
- Store the correct answer for validation
Notes
- The
optionsarray always includes allcorrectComponentsplus additional distractor items - The number of options varies but typically includes 3-6 distractor items in addition to the correct components
correctComponentIdsis a convenience field for quick validation without parsing the fullcorrectComponentsobjects