Total Complexity | 1 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import abc |
||
7 | class AbstractMessageTranslator(abc.ABC): |
||
8 | |||
9 | @abc.abstractmethod |
||
10 | def translate(self, message): |
||
11 | '''Translates a given message to an appropriate format to message processing. |
||
12 | This method should return a `dict` instance with two keys: `content` |
||
13 | and `metadata`. |
||
14 | The `content` should contain the translated message and, `metadata` a |
||
15 | dictionary with translation metadata or an empty `dict`. |
||
16 | ''' |
||
17 | |||
24 |