diff options
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 98b28bc..eeea660 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -125,6 +125,9 @@ OOBData = namedtuple('OOBData', 'url desc') CorrectionData = namedtuple('CorrectionData', 'id') +DisplayMarking = namedtuple('DisplayMarking', 'label fgcolor bgcolor') +SecurityLabel = namedtuple('SecurityLabel', 'displaymarking') + class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms timestamp')): @@ -554,6 +557,7 @@ class MessageProperties: self.attention = False self.forms = None self.xhtml = None + self.security_label = None @property def has_user_delay(self): @@ -654,6 +658,10 @@ class MessageProperties: def has_xhtml(self): return self.xhtml is not None + @property + def has_security_label(self): + return self.security_label is not None + class IqProperties: def __init__(self): |