diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-01-02 18:55:17 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-01-02 18:55:17 +0300 |
commit | fbe98a3ee7d340662da9682f5730d362a566236b (patch) | |
tree | 24deefa57ffc5cfa45f505066659c68fdef1ac26 /nbxmpp/structs.py | |
parent | 0b6dc8c9ae35fce92f9c5baed8fc56c6abfe214a (diff) |
Add BaseIq handler
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 2e55c8a..f1d1569 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -50,6 +50,7 @@ MucDestroyed.__new__.__defaults__ = (None, None, None) EntityCapsData = namedtuple('EntityCapsData', 'hash node ver') EntityCapsData.__new__.__defaults__ = (None, None, None) + class Properties: pass @@ -65,8 +66,7 @@ class MessageProperties: self.thread = None self.user_timestamp = None self.timestamp = time.time() - self.error_code = None - self.error_message = None + self.error = None self.eme = None self.http_auth = None self.nickname = None @@ -113,6 +113,12 @@ class MessageProperties: class IqProperties: def __init__(self): + self.type = None + self.jid = None + self.id = None + self.error = None + self.query = None + self.payload = None self.http_auth = None @property |