-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3581f2
commit 0090404
Showing
7 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from ..models.glacialTtsData import GlacialTtsData | ||
from ...tts.ttsProvider import TtsProvider | ||
|
||
|
||
class GlacialTtsFileRetrieverInterface(ABC): | ||
|
||
@abstractmethod | ||
async def findFile( | ||
self, | ||
glacialData: GlacialTtsData | ||
) -> str | None: | ||
pass | ||
|
||
@abstractmethod | ||
async def saveFile( | ||
self, | ||
message: str, | ||
provider: TtsProvider | ||
) -> GlacialTtsData: | ||
pass |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from dataclasses import dataclass | ||
from datetime import datetime | ||
|
||
from ...tts.ttsProvider import TtsProvider | ||
|
||
|
||
@dataclass(frozen = True) | ||
class GlacialTtsData: | ||
storeDateTime: datetime | ||
glacialId: str | ||
message: str | ||
provider: TtsProvider |
30 changes: 30 additions & 0 deletions
30
src/glacialTtsStorage/repository/glacialTtsStorageRepositoryInterface.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from ..models.glacialTtsData import GlacialTtsData | ||
from ...tts.ttsProvider import TtsProvider | ||
|
||
|
||
class GlacialTtsStorageRepositoryInterface(ABC): | ||
|
||
@abstractmethod | ||
async def add( | ||
self, | ||
message: str, | ||
provider: TtsProvider | ||
) -> GlacialTtsData: | ||
pass | ||
|
||
@abstractmethod | ||
async def get( | ||
self, | ||
message: str, | ||
provider: TtsProvider | ||
) -> GlacialTtsData | None: | ||
pass | ||
|
||
@abstractmethod | ||
async def remove( | ||
self, | ||
glacialId: str | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters