refactored

This commit is contained in:
2026-03-15 13:19:37 +01:00
parent 2bdc23b762
commit 06f4c36b15
9 changed files with 104 additions and 74 deletions
+13
View File
@@ -0,0 +1,13 @@
class MsgContainer:
def __init__(self, name: str, timestamp: float = 0, data: bytes = b''):
self.timestamp : float = timestamp
self.name : str= name
self.data: bytes = data
def __str__(self):
return f"{self.timestamp}:{self.name}:{self.data}"
def __repr__(self):
return f"{self.timestamp}:{self.name}:{self.data}"