aboutsummaryrefslogtreecommitdiffstats
path: root/pysignald/types.py
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-24 14:16:07 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-24 14:16:07 +0200
commitad285fae6de18fc786051f725d68340539c8e2d9 (patch)
tree31bbc516ee4638972566e73c5524c22f5138a063 /pysignald/types.py
parent039132d2811f111fdd6ad777f681a6221d5cc829 (diff)
downloadn_frontend_signal-ad285fae6de18fc786051f725d68340539c8e2d9.tar.gz
n_frontend_signal-ad285fae6de18fc786051f725d68340539c8e2d9.zip
trying with pysignald HEAD
Diffstat (limited to 'pysignald/types.py')
-rw-r--r--pysignald/types.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/pysignald/types.py b/pysignald/types.py
deleted file mode 100644
index 1b605b3..0000000
--- a/pysignald/types.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import attr
-
-
-@attr.s
-class Attachment:
- content_type = attr.ib(type=str)
- id = attr.ib(type=str)
- size = attr.ib(type=int)
- stored_filename = attr.ib(type=str)
-
-
-@attr.s
-class Message:
- username = attr.ib(type=str)
- source = attr.ib(type=str)
- text = attr.ib(type=str)
- source_device = attr.ib(type=int, default=0)
- timestamp = attr.ib(type=int, default=None)
- timestamp_iso = attr.ib(type=str, default=None)
- expiration_secs = attr.ib(type=int, default=0)
- is_receipt = attr.ib(type=bool, default=False)
- attachments = attr.ib(type=list, default=[])
- quote = attr.ib(type=str, default=None)
- group_info = attr.ib(type=dict, default={})