Agent: Add AbstractIslandAPIClientFactory

This commit is contained in:
Mike Salvatore 2022-09-20 09:58:15 -04:00
parent 17cb77cfdd
commit eea7fc1ee2
2 changed files with 14 additions and 0 deletions

View File

@ -6,4 +6,5 @@ from .island_api_client_errors import (
IslandAPITimeoutError, IslandAPITimeoutError,
) )
from .i_island_api_client import IIslandAPIClient from .i_island_api_client import IIslandAPIClient
from .abstract_island_api_client_factory import AbstractIslandAPIClientFactory
from .http_island_api_client import HTTPIslandAPIClient from .http_island_api_client import HTTPIslandAPIClient

View File

@ -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
"""