Skip to content

Commit

Permalink
First version of the question generator ready
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287545 committed Feb 29, 2024
1 parent 49a41d4 commit 19e1129
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.uniovi.components;

import com.uniovi.components.generators.QuestionGenerator;
import com.uniovi.components.generators.geography.CapitalQuestionGenerator;
import com.uniovi.entities.Question;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Controller
public class QuestionGeneratorTest {
@RestController
public class QuestionGeneratorTestController {

@Autowired
QuestionGenerator qgen;
CapitalQuestionGenerator qgen;

@RequestMapping("/test")
public void test() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

import com.fasterxml.jackson.databind.JsonNode;
import com.uniovi.services.CategoryService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

@Component
public class CapitalQuestionGenerator extends AbstractGeographyGenerator{

public CapitalQuestionGenerator(CategoryService categoryService) {
Expand Down

0 comments on commit 19e1129

Please sign in to comment.