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

26 lines
570 B
Python
Raw Normal View History

2016-02-15 16:01:14 +00:00
from app.clients import (Client, ClientException)
class SmsClientResponseException(ClientException):
2016-02-15 16:01:14 +00:00
'''
Base Exception for SmsClientsResponses
2016-02-15 16:01:14 +00:00
'''
def __init__(self, message):
self.message = message
def __str__(self):
return "Message {}".format(self.message)
2016-02-15 16:01:14 +00:00
class SmsClient(Client):
'''
Base Sms client for sending smss.
'''
def send_sms(self, *args, **kwargs):
raise NotImplementedError('TODO Need to implement.')
2016-02-25 11:23:04 +00:00
def get_name(self):
raise NotImplementedError('TODO Need to implement.')