Projekt

Obecné

Profil

Stáhnout (366 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
from recordclass import RecordClass
2

    
3

    
4
class Message(RecordClass):
5
    """
6
    Message wrapper
7
    """
8
    topic: str
9
    index: int
10
    date: str
11
    time: str
12
    value: float
13

    
14
    def __str__(self) -> str:
15
        return 'topic=' + self.topic + ', datetime=' + self.date + 'T' + self.time + ', index=' + str(
16
            self.index) + ', value=' + str(self.value)
(1-1/2)