refactored

This commit is contained in:
2026-03-25 05:59:58 +01:00
parent e5da1b663b
commit 888dd850f3
17 changed files with 23 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
class MsgContainer:
def __init__(self, name: str, timestamp: float = 0, data = 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}"