14 lines
324 B
Python
14 lines
324 B
Python
|
|
|
|
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}"
|