23 lines
496 B
Python
23 lines
496 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Dict, List
|
|
|
|
|
|
class IGradeController(ABC):
|
|
|
|
@abstractmethod
|
|
async def grade_writing_task(self, task: int, data):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def grade_speaking_task(self, task: int, answers: List[Dict]) -> Dict:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def grade_short_answers(self, data: Dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def grading_summary(self, data: Dict):
|
|
pass
|
|
|