From a2f9b7c31beb6c32f7f03d155798c8d84930f8df Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Fri, 24 Jul 2020 14:22:01 -0500 Subject: Add LircResponse in seperate file w/o success --- lirc/lirc_response.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lirc/lirc_response.py diff --git a/lirc/lirc_response.py b/lirc/lirc_response.py new file mode 100644 index 0000000..5fdfa1e --- /dev/null +++ b/lirc/lirc_response.py @@ -0,0 +1,17 @@ +from typing import List + + +class LircResponse: + """ + A response from the LIRC server. + + Stores the command that had been sent + and the parsed reply packet data. + """ + + def __init__(self, command: str, data: List[str]) -> None: + self.command = command + self.data = data + + def __repr__(self) -> str: + return f"LircResponse(command={self.command}, data={self.data})" -- cgit v1.2.3