Files
notifications-api/app/clients/sms/__init__.py

28 lines
670 B
Python
Raw Normal View History

2021-03-10 13:55:06 +00:00
from app.clients import Client, ClientException
class SmsClientResponseException(ClientException):
2022-06-17 11:16:23 -07:00
"""
Base Exception for SmsClientsResponses
2022-06-17 11:16:23 -07:00
"""
def __init__(self, message):
self.message = message
def __str__(self):
2022-06-17 11:16:23 -07:00
return "Message {}".format(self.message)
class SmsClient(Client):
2022-06-17 11:16:23 -07:00
"""
Base Sms client for sending smss.
2022-06-17 11:16:23 -07:00
"""
def init_app(self, *args, **kwargs):
raise NotImplementedError("TODO Need to implement.")
2022-06-17 11:16:23 -07:00
def send_sms(self, *args, **kwargs):
raise NotImplementedError("TODO Need to implement.")
def get_name(self):
raise NotImplementedError("TODO Need to implement.")