2022-09-11 10:08:50 +02:00
|
|
|
from abc import abstractmethod
|
|
|
|
|
|
|
|
|
|
|
2022-09-10 22:14:37 +02:00
|
|
|
class AppsBase:
|
2022-09-11 10:08:50 +02:00
|
|
|
@abstractmethod
|
2022-09-10 22:14:37 +02:00
|
|
|
async def get_app_status_single(self, app_id: str):
|
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
2022-09-11 10:08:50 +02:00
|
|
|
@abstractmethod
|
2022-09-10 22:14:37 +02:00
|
|
|
async def get_app_status(self):
|
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
2022-09-11 10:08:50 +02:00
|
|
|
@abstractmethod
|
2022-09-10 22:14:37 +02:00
|
|
|
async def get_app_status_sub(self):
|
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
2022-09-11 10:08:50 +02:00
|
|
|
@abstractmethod
|
2022-09-10 22:14:37 +02:00
|
|
|
async def install_app_sub(self, app_id: str):
|
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
2022-09-11 10:08:50 +02:00
|
|
|
@abstractmethod
|
2022-09-10 22:14:37 +02:00
|
|
|
async def uninstall_app_sub(self, app_id: str, delete_data: bool):
|
|
|
|
|
raise NotImplementedError()
|