21 lines
475 B
Python
21 lines
475 B
Python
import abc
|
|
|
|
class PlatformBase(metaclass=abc.ABCMeta):
|
|
"""Base class for platform implementations"""
|
|
|
|
@property
|
|
@abc.abstractmethod
|
|
def name(self) -> str:
|
|
"""Get the name of the platform"""
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def get_request(self, request_id, with_full_history=False):
|
|
"""Get request by id"""
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def get_project_config(self, project):
|
|
"""Get project config"""
|
|
pass
|