| Total Complexity | 4 | 
| Total Lines | 12 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from copy import deepcopy | ||
| 6 | class ProfileMessage: | ||
| 7 | def __init__(self, msg, previous): | ||
| 8 | self.previous = deepcopy(previous) | ||
| 9 | self.msg = deepcopy(msg) | ||
| 10 | |||
| 11 | def __str__(self): | ||
| 12 | return str(self.msg.deviceNumber) | ||
| 13 | |||
| 14 | @staticmethod | ||
| 15 | def decode(cls, msg: BroadcastMessage): | ||
| 16 | if msg.deviceType in cls.match: | ||
| 17 | cls.match[msg.deviceType]() |