Exemplo n.º 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?()));
 }
Exemplo n.º 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);
        }
Exemplo n.º 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
     }));
 }
Exemplo n.º 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);
        }