...
This commit is contained in:
14
Back/Services/servSendMsg.cs
Normal file
14
Back/Services/servSendMsg.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Back.Services
|
||||
{
|
||||
public class servSendMsg
|
||||
{
|
||||
private readonly mpNuget.RestClient _restClient;
|
||||
public servSendMsg(mpNuget.RestClient restClient)=> _restClient = restClient;
|
||||
private void SendMsgByPatern(string Text, string To, int bodyID) {/*_restClient.SendByBaseNumber(Text, To, bodyID);*/ }
|
||||
private void SendMsg(string Text, string To)=> _restClient.Send(To, "50004001660045", Text, false);
|
||||
public void Authentication(string to,string code) => SendMsgByPatern(code, to, 0);
|
||||
public void SuccessfulRegistration(string to, string code) => SendMsgByPatern(code, to, 1);
|
||||
public void SuccessfulPayment(string to, string code) => SendMsgByPatern(code, to, 2);
|
||||
// public void firstEntry(string to, string code) => SendMsgByPatern(code, to, 3);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user