mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
30 lines
No EOL
672 B
Python
30 lines
No EOL
672 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from pyfastocloud.client_constants import ClientStatus
|
|
|
|
|
|
# handler for iptv
|
|
class IStreamHandler(ABC):
|
|
@abstractmethod
|
|
def on_stream_statistic_received(self, params: dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_stream_sources_changed(self, params: dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_service_statistic_received(self, params: dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_quit_status_stream(self, params: dict):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_client_state_changed(self, status: ClientStatus):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_ping_received(self, params: dict):
|
|
pass |