27 lines
589 B
Python
27 lines
589 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Dict
|
|
|
|
|
|
class IGradeController(ABC):
|
|
|
|
@abstractmethod
|
|
async def grade_writing_task(self, task: int, data):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def grade_speaking_task(self, task: int, data: Dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def grading_summary(self, data: Dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def _grade_speaking_task_1_2(self, task: int, question: str, answer_firebase_path: str):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def _grade_speaking_task3(self, answers: Dict):
|
|
pass
|
|
|