main
Сергей Ванюшкин 2024-04-12 21:52:39 +00:00
parent b4bf4343e5
commit 30dbd7d117
1 changed files with 3 additions and 4 deletions

View File

@ -14,12 +14,11 @@ class MessageDTO:
class Command(ABC): class Command(ABC):
@property @property
def command(self): def command(self):
return self.command return self.__command
@command.setter @command.setter
@abstractmethod def command(self, cmd: list):
def command(self, command: list): self.__command = cmd
pass
@abstractmethod @abstractmethod
def _stdout_parser(self, stdout: str) -> list[MessageDTO]: def _stdout_parser(self, stdout: str) -> list[MessageDTO]: