feat: define AppsBase as abstract

This commit is contained in:
fusion44 2022-09-11 10:08:50 +02:00
parent df08eff14f
commit f592ba0b31
No known key found for this signature in database

View file

@ -1,15 +1,23 @@
from abc import abstractmethod
class AppsBase:
@abstractmethod
async def get_app_status_single(self, app_id: str):
raise NotImplementedError()
@abstractmethod
async def get_app_status(self):
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()