summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lirc/lirc_response.py17
1 files changed, 17 insertions, 0 deletions
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})"