can read email and click on the link

This commit is contained in:
2022-08-01 21:11:45 +02:00
parent f890454e25
commit 0b203b00ee
17 changed files with 355 additions and 43 deletions
-14
View File
@@ -1,14 +0,0 @@
class MailPojo:
email: str
def __init__(self, email: str):
self.email = email
@staticmethod
def from_firestore_dict(source):
email = source['email']
result = MailPojo(email=email)
return result
def __repr__(self):
return "email = " + self.email
+5
View File
@@ -31,6 +31,7 @@ class ReserveResultPojo:
ccid: str = ""
source_from: str = config.LOG_SOURCE
store_type = 0
url_validated = None
@staticmethod
def from_firestore_dict(source):
@@ -68,6 +69,9 @@ class ReserveResultPojo:
if 'store_type' in source:
store_type = source['store_type']
result.store_type = store_type
if 'url_validated' in source:
url_validated = source['url_validated']
result.url_validated = bool(url_validated)
result.id = id
return result
@@ -88,6 +92,7 @@ class ReserveResultPojo:
u'source_from': self.source_from,
u'store_type': self.store_type,
u'accepted': self.accepted,
u'url_validated': self.url_validated,
}
return dest
View File
@@ -1,4 +1,4 @@
class Mail:
class MailAddress:
def __init__(self, mail, password):
self.mail = mail
self.password = password
@@ -12,3 +12,14 @@ class Mail:
u'password': self.password
}
return dest
class MailPojo:
from_address: str
body: str
subject: str
def __init__(self, from_address, body, subject):
self.body = body
self.subject = subject
self.from_address = from_address