Пример #1
0
 public static SmsResponse SendSms(
     string mobileNo,
     string messageBody,
     string entityID,
     string entityName)
 {
     return(SmsManager.SendSms(mobileNo, messageBody, entityID, entityName, SmsReceiverType.Unknown, new int?()));
 }
Пример #2
0
        public static async Task <SmsResponse> SendSmsAsync(
            string mobileNo,
            string messageBody,
            string entityID,
            string entityName)
        {
            SmsResponse smsResponse = await SmsManager.SendSmsAsync(mobileNo, messageBody, entityID, entityName, SmsReceiverType.Unknown, new int?());

            return(smsResponse);
        }
Пример #3
0
 public static SmsResponse SendSms(
     string mobileNo,
     string messageBody,
     string entityID,
     string entityName,
     SmsReceiverType receiverType,
     int?receiverID)
 {
     return(SmsManager.SendSms(new SmsData()
     {
         MessageBody = messageBody,
         MobileNo = mobileNo,
         EntityID = entityID,
         EntityName = entityName,
         RecieverID = receiverID,
         SmsReceiverType = receiverType
     }));
 }
Пример #4
0
        public static async Task <SmsResponse> SendSmsAsync(
            string mobileNo,
            string messageBody,
            string entityID,
            string entityName,
            SmsReceiverType receiverType,
            int?receiverID)
        {
            SmsData smsData = new SmsData()
            {
                MessageBody     = messageBody,
                MobileNo        = mobileNo,
                EntityID        = entityID,
                EntityName      = entityName,
                RecieverID      = receiverID,
                SmsReceiverType = receiverType
            };
            SmsResponse smsResponse = await SmsManager.SendSmsAsync(smsData);

            return(smsResponse);
        }