recommend_app_base.py 448 B

123456789101112131415161718
  1. from abc import ABC, abstractmethod
  2. class RecommendAppRetrievalBase(ABC):
  3. """Interface for recommend app retrieval."""
  4. @abstractmethod
  5. def get_recommended_apps_and_categories(self, language: str) -> dict:
  6. raise NotImplementedError
  7. @abstractmethod
  8. def get_recommend_app_detail(self, app_id: str):
  9. raise NotImplementedError
  10. @abstractmethod
  11. def get_type(self) -> str:
  12. raise NotImplementedError