mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 01:56:03 -04:00
26 lines
725 B
Python
26 lines
725 B
Python
|
|
from app.clients.sms import SmsClient, SmsClientResponseException
|
||
|
|
|
||
|
|
|
||
|
|
def get_reach_responses(status, detailed_status_code=None):
|
||
|
|
if status == 'TODO-d':
|
||
|
|
return ("delivered", "TODO: Delivered")
|
||
|
|
elif status == 'TODO-tf':
|
||
|
|
return ("temporary-failure", "TODO: Temporary failure")
|
||
|
|
elif status == 'TODO-pf':
|
||
|
|
return ("permanent-failure", "TODO: Permanent failure")
|
||
|
|
else:
|
||
|
|
raise KeyError
|
||
|
|
|
||
|
|
|
||
|
|
class ReachClientResponseException(SmsClientResponseException):
|
||
|
|
pass # TODO (custom exception for errors)
|
||
|
|
|
||
|
|
|
||
|
|
class ReachClient(SmsClient):
|
||
|
|
|
||
|
|
def get_name(self):
|
||
|
|
pass # TODO
|
||
|
|
|
||
|
|
def send_sms(self, to, content, reference, international, multi=True, sender=None):
|
||
|
|
pass # TODO
|