| 123456789101112131415161718192021222324 |
- from .encode import encode
- from .decode import decode
- class command(encode):
- def __init__(self, content: str) -> None:
- self.__content = content
- @property
- def content(self) -> str:
- return self.__content
- def encode(self) -> object:
- return encoded_command(self._encode_str(self.content))
- class encoded_command(decode):
- def __init__(self, content: str) -> None:
- self.__content = content
- @property
- def encoded_content(self) -> str:
- return self.__content
- def decode(self) -> command:
- return command(self._decode_str(self.encoded_content))
|