blob: 3491037aa81efc170c882a157b8686944bcb6ebc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
class LircResponse:
"""
A response from the LIRC daemon. Stores the command that had
been sent, whether or not it was successful, and the parsed
reply packet data.
"""
def __init__(self, command: str, success: bool, data: list) -> None:
self.command = command
self.success = success
self.data = data
def __repr__(self) -> str:
return (
f"LircResponse(command={self.command}, "
f"success={self.success}, "
f"data={self.data})"
)
|