mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
Some apps might give status information that is computationally to expensive to include in the normal status endpoint which can be polled more often. closes #237
27 lines
701 B
Python
27 lines
701 B
Python
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_advanced(self, app_id: str):
|
|
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()
|