mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: Design with inversion dependency injection architecture. feat: Prettier http middleware. feat: Re-write items categories with preferred accounts.
13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import SMSClientInterface from '@/services/SMSClient/SMSClientInterface';
|
|
|
|
export default class SMSAPI {
|
|
smsClient: SMSClientInterface;
|
|
|
|
constructor(smsClient: SMSClientInterface){
|
|
this.smsClient = smsClient;
|
|
}
|
|
|
|
sendMessage(to: string, message: string, extraParams: [], extraHeaders: []) {
|
|
return this.smsClient.send(to, message);
|
|
}
|
|
} |