mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 09:26:03 -04:00
Merge PDUs and Events into one object
This commit is contained in:
parent
8c2b5ea7c4
commit
cb4b6c844a
10 changed files with 91 additions and 212 deletions
|
@ -117,6 +117,12 @@ class SynapseEvent(JsonEncodedObject):
|
|||
"""
|
||||
raise NotImplementedError("get_content_template not implemented.")
|
||||
|
||||
def get_pdu_json(self):
|
||||
pdu_json = self.get_full_dict()
|
||||
pdu_json.pop("destination", None)
|
||||
pdu_json.pop("outlier", None)
|
||||
return pdu_json
|
||||
|
||||
|
||||
class SynapseStateEvent(SynapseEvent):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue