Esempio n. 1
0
 def send_follow_up(self, msgObj):
     if self.active == True and msgObj.follow_up not in ("", None):
         res = send_message(msgObj, self, type="followup")
     elif self.active != True:
         res = (-1, "Not active.")
     else:
         res = (-2, "No follow up.")
     return {"Followup": res}
Esempio n. 2
0
 def send_follow_up(self, msgObj):
     if self.active == True and msgObj.follow_up not in ('', None):
         res = send_message(msgObj, self, type="followup")
     elif self.active != True:
         res = (-1, "Not active.")
     else:
         res = (-2, "No follow up.")
     return {"Followup":res}
Esempio n. 3
0
 def send_message(self, msgObj):
     if self.active == True:
         res = send_message(msgObj, self)
         if res[0] == 0:
             self.update_sent(msgObj)
     else:
         res = (-1, "Not active.")
     return {"Message": res}
Esempio n. 4
0
 def send_message(self, msgObj):
     if self.active == True:
         res = send_message(msgObj, self)
         if res[0] == 0:
             self.update_sent(msgObj)
     else:
         res = (-1, "Not active.")
     return {"Message":res}