2021-03-10 13:55:06 +00:00
|
|
|
from app.clients import Client, ClientException
|
2016-02-15 16:01:14 +00:00
|
|
|
|
|
|
|
|
|
2016-09-22 17:18:05 +01:00
|
|
|
class SmsClientResponseException(ClientException):
|
2022-06-17 11:16:23 -07:00
|
|
|
"""
|
2016-09-22 17:18:05 +01:00
|
|
|
Base Exception for SmsClientsResponses
|
2022-06-17 11:16:23 -07:00
|
|
|
"""
|
2016-09-22 17:18:05 +01:00
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
|
self.message = message
|
|
|
|
|
|
|
|
|
|
def __str__(self):
|
2022-06-17 11:16:23 -07:00
|
|
|
return "Message {}".format(self.message)
|
2016-02-15 16:01:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class SmsClient(Client):
|
2022-06-17 11:16:23 -07:00
|
|
|
"""
|
2016-02-15 16:01:14 +00:00
|
|
|
Base Sms client for sending smss.
|
2022-06-17 11:16:23 -07:00
|
|
|
"""
|
|
|
|
|
|
2022-07-05 11:27:15 -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.")
|