25 lines
540 B
Python
25 lines
540 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class ILevelService(ABC):
|
|
|
|
@abstractmethod
|
|
async def get_level_exam(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def get_level_utas(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def _gen_multiple_choice_level(self, quantity: int, start_id=1):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def _replace_exercise_if_exists(self, all_exams, current_exercise, current_exam, seen_keys):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def _generate_single_mc_level_question(self):
|
|
pass
|