refactored
This commit is contained in:
@@ -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}"
|
||||
Reference in New Issue
Block a user