| Conditions | 3 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | from copy import deepcopy |
||
| 9 | def __init__(self, msg, previous): |
||
| 10 | self.previous = previous |
||
| 11 | self.msg = deepcopy(msg) |
||
| 12 | self.count = previous.count + 1 if previous is not None else 1 |
||
| 13 | self.timestamp = time.time() |
||
| 14 | self.firstTimestamp = previous.firstTimestamp if previous is not None else self.timestamp |
||
| 15 | |||
| 22 | cls.match[msg.deviceType]() |