]> Repos - abc-messenger/commitdiff
stable remote app
authorAndrew Gundersen <gundersena@xavier.edu>
Fri, 11 Dec 2020 21:23:59 +0000 (15:23 -0600)
committerAndrew Gundersen <gundersena@xavier.edu>
Fri, 11 Dec 2020 21:23:59 +0000 (15:23 -0600)
__pycache__/mail.cpython-38.pyc
__pycache__/mailroom.cpython-38.pyc
__pycache__/schemes.cpython-38.pyc
__pycache__/server.cpython-38.pyc
__pycache__/session.cpython-38.pyc
__pycache__/typs.cpython-38.pyc
mail.py
schemes.py
session.py
typs.py

index 67d45850e4dc9d4560aa372e5c7b7a68af339f60..26b40b87b2197258fe7ef0bb57b9ff99c6b7b730 100644 (file)
Binary files a/__pycache__/mail.cpython-38.pyc and b/__pycache__/mail.cpython-38.pyc differ
index cf55692f201a934d6bf5f349f54fdf9a75010839..ab55b25b7de20e26f01bb9316b0defcbc0e2afbc 100644 (file)
Binary files a/__pycache__/mailroom.cpython-38.pyc and b/__pycache__/mailroom.cpython-38.pyc differ
index 183122980357c28883452a890c1fb23081ea928c..302b8495636b1c5f05316e36da9df59064eefc04 100644 (file)
Binary files a/__pycache__/schemes.cpython-38.pyc and b/__pycache__/schemes.cpython-38.pyc differ
index 41fac4eebd5c91ed9d2f744607a7db83a8acfc05..dbfe3b22defb2fbe898d25402cab3f9ebc364f7a 100644 (file)
Binary files a/__pycache__/server.cpython-38.pyc and b/__pycache__/server.cpython-38.pyc differ
index db3107c1b111a315f8fb415bbbf9712e469a6f4d..550c1e780337ac9dc80a5d1d3b963477c84b4bbb 100644 (file)
Binary files a/__pycache__/session.cpython-38.pyc and b/__pycache__/session.cpython-38.pyc differ
index d33211da9374c4f099654b5cde974a659db3b185..8f56c5d53f7e3ca7aa8bfbc739b4855581b87972 100644 (file)
Binary files a/__pycache__/typs.cpython-38.pyc and b/__pycache__/typs.cpython-38.pyc differ
diff --git a/mail.py b/mail.py
index c2a61a556d229087057291fbe552d6db3636d5d0..1f6cbbbc2b9a1e20b8856f5d4a7b34faa1d3c4cd 100644 (file)
--- a/mail.py
+++ b/mail.py
@@ -30,7 +30,8 @@ class Mail:
                owner = self.crimata_id
                target = p.get("target")
                text = p.get("text")
-               mail = typs.Mail(owner, target, text)
+               audio = p.get("audio")
+               mail = typs.Mail(owner, target, text, audio)
                return mail
 
        @staticmethod
@@ -38,8 +39,8 @@ class Mail:
                name = "message"
                params = {
                        "owner": mail.owner,
-                       "text": mail.text #dev only
+                       "text": mail.text, #dev only
+                       "audio": mail.audio
                }
                intent = typs.Intent(name, params)
-               return intent
-               
\ No newline at end of file
+               return intent
\ No newline at end of file
index 9a85986860f0aaf4f8a8dc0d3b366100f7ddaefc..b8ecb2634ba47a26407d21cecaeca29c428e173a 100644 (file)
@@ -22,6 +22,7 @@ class Schemes:
                print(f"Initalized for {self.crimata_id}")
 
        # Push message to anoter Crimata ID.
+       #! Push message to backend.
        def message(self, intent):
                text = intent.params.get("text")
                target = intent.params.get("target") #crimata_id
index 9aa152f6f99b0633a8e792a20e41731ea6fc33d6..9c1d648c311e2a10e67023846512a2bbcf049267 100644 (file)
@@ -41,6 +41,7 @@ class Session(schemes.Schemes, agent.Agent, mail.Mail):
             self.handle_intent(intent)
 
     # Send mail back to agent.
+    #! Pulling message from backend.
     async def deliver_mail(self):
         while self.on:
 
diff --git a/typs.py b/typs.py
index 2ef992fa21138c547c0d225262492153b1a76e49..2368957ae498171f9143a1d84cb85b819e37f8d9 100644 (file)
--- a/typs.py
+++ b/typs.py
@@ -10,6 +10,7 @@ class Mail:
         self.owner = owner
         self.target = target
         self.text = text
+        self.audio = audio
 
 
 class MailBox: