add store_type to ReserveResultPojo

This commit is contained in:
Lei PAN
2022-06-05 21:08:02 +02:00
parent c24d2e2c2e
commit 1b83084079
2 changed files with 8 additions and 2 deletions
+6 -1
View File
@@ -30,6 +30,7 @@ class ReserveResultPojo:
sim_position = None
ccid: str = ""
source_from: str = definitions.LOG_SOURCE
store_type = 0
@staticmethod
def from_firestore_dict(source):
@@ -62,6 +63,9 @@ class ReserveResultPojo:
if 'ccid' in source:
ccid = source['ccid']
result.ccid = ccid
if 'store_type' in source:
store_type = source['store_type']
result.store_type = store_type
result.id = id
return result
@@ -79,7 +83,8 @@ class ReserveResultPojo:
u'sim_position': self.sim_position,
u'slot_position': self.slot_position,
u'ccid': self.ccid,
u'source_from': self.source_from
u'source_from': self.source_from,
u'store_type': self.store_type,
}
return dest