rename src dir

This commit is contained in:
Wolfgang Hottgenroth
2022-02-22 14:31:13 +01:00
parent 34c793bfa6
commit b31a2ec409
9 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import re
import json
from AbstractDataObject import AbstractDataObject
class StructuredDataObject(AbstractDataObject):
def __init__(self, topicPart):
super().__init__(topicPart)
self.keyValuePairs = []
def add(self, key, value):
self.keyValuePairs.append({key: value})
def getPayload(self):
return json.dumps(self.keyValuePairs)