Beispiel #1
0
 public bool TekSmsGonder(SmsModel model)
 {
     Oztek.TekSmsiBirdenCokNumarayaGonderResponse result =
         _service.TekSmsiBirdenCokNumarayaGonder(new Oztek.TekSmsiBirdenCokNumarayaGonderRequest()
     {
         kullanicino  = _auth.kullanicino,
         kullaniciadi = _auth.kullaniciadi,
         sifre        = _auth.kullanicisifre,
         orjinator    = _auth.orjinator,
         numaralar    = model.Phone,
         mesaj        = model.Text,
         zaman        = "",
         zamanasimi   = "",
         tip          = "Turkce"
     });
     //string result = _service.TekSmsiBirdenCokNumarayaGonder(kullanicino: _auth.kullanicino,
     //      kullaniciadi: _auth.kullaniciadi,
     //      sifre: _auth.kullanicisifre,
     //      orjinator: _auth.orjinator,
     //      numaralar: model.Phone,
     //      mesaj: model.Text,
     //      zaman: "",
     //      zamanasimi: "",
     //      tip: "Turkce") as string;
     if ([email protected]("OK"))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool CreateAccountSendSms(SmsModel model)
 {
     if (model != null)
     {
         model.Phone = model.Phone.StartsWith("0") ? model.Phone.Remove(0, 1) : model.Phone;
     }
     //model.Text = "Test sms";
     return(TekSmsGonder(model));
 }
Beispiel #3
0
 public bool TekSmsGonder(SmsModel model)
 {
     return(_manager.TekSmsGonder(model));
 }
Beispiel #4
0
 public bool CreateAccountSendSms(SmsModel model)
 {
     return(_manager.CreateAccountSendSms(model));
 }