forked from p15670423/monkey
Agent: Add AbstractIslandAPIClientFactory
This commit is contained in:
parent
17cb77cfdd
commit
eea7fc1ee2
|
@ -6,4 +6,5 @@ from .island_api_client_errors import (
|
|||
IslandAPITimeoutError,
|
||||
)
|
||||
from .i_island_api_client import IIslandAPIClient
|
||||
from .abstract_island_api_client_factory import AbstractIslandAPIClientFactory
|
||||
from .http_island_api_client import HTTPIslandAPIClient
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from . import IIslandAPIClient
|
||||
|
||||
|
||||
class AbstractIslandAPIClientFactory(ABC):
|
||||
@abstractmethod
|
||||
def create_island_api_client(self) -> IIslandAPIClient:
|
||||
"""
|
||||
Create an IIslandAPIClient
|
||||
|
||||
:return: A concrete instance of an IIslandAPIClient
|
||||
"""
|
Loading…
Reference in New Issue