mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-16 12:20:14 +02:00
31 lines
962 B
Python
31 lines
962 B
Python
from abc import abstractmethod
|
|
|
|
from app.api.error_report.report import Report
|
|
from app.apps.models import AppStatus, AppStatusQueryResult
|
|
from app.external.result_type.src.result import Result
|
|
|
|
|
|
class AppsBase:
|
|
@abstractmethod
|
|
async def get_app_status_single(self, app_id: str) -> Result[AppStatus, Report]:
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
async def get_app_status(self) -> Result[AppStatusQueryResult, Report]:
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
async def get_app_status_advanced(self, app_id: str) -> Result[AppStatus, Report]:
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
async def get_app_status_sub(self):
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
async def install_app_sub(self, app_id: str):
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
async def uninstall_app_sub(self, app_id: str, delete_data: bool):
|
|
raise NotImplementedError()
|