mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
20 lines
539 B
TypeScript
20 lines
539 B
TypeScript
import SMSClientInterface from 'services/SMSClient/SMSClientInterface';
|
|
|
|
export default class SMSAPI {
|
|
smsClient: SMSClientInterface;
|
|
|
|
constructor(smsClient: SMSClientInterface){
|
|
this.smsClient = smsClient;
|
|
}
|
|
|
|
/**
|
|
* Sends the message to the target via the client.
|
|
* @param {string} to
|
|
* @param {string} message
|
|
* @param {array} extraParams
|
|
* @param {array} extraHeaders
|
|
*/
|
|
sendMessage(to: string, message: string, extraParams?: [], extraHeaders?: []) {
|
|
return this.smsClient.send(to, message);
|
|
}
|
|
} |