public async Task SendAsync(IdentityMessage message)//, bool needDencrytion = true
 {
     var to = isValidPhoneNo(message.Destination) ? message.Destination : Encryption.Decrypt(message.Destination);
     await _messageSender.SendMessageAsync(to,
                                           System.Configuration.ConfigurationManager.AppSettings["TWILIONUMBER"],
                                           message.Body);
 }
示例#2
0
        public async Task SendNotificationAsync(Reservation reservation)
        {
            var pendingReservations = await _repository.FindPendingReservationsAsync();

            if (pendingReservations.Count() < 2)
            {
                var notification = BuildNotification(reservation);
                await _client.SendMessageAsync(notification.To, notification.From, notification.Messsage);
            }
        }
示例#3
0
 public async Task SendAsync(IdentityMessage message)
 {
     await _messageSender.SendMessageAsync(message.Destination,
                                           System.Configuration.ConfigurationManager.AppSettings["SMSAccountFrom"],
                                           message.Body);
 }
示例#4
0
 public async Task SendAsync(IdentityMessage message)
 {
     await _messageSender.SendMessageAsync(message.Destination,
                                           Config.TwilioNumber,
                                           message.Body);
 }
 public async Task SendAsync(IdentityMessage message)
 {
     var twilioNumber = ConfigurationManager.AppSettings["twilioNumber"];
     await _messageSender.SendMessageAsync(message.Destination, twilioNumber, message.Body);
 }
示例#6
0
 public async Task SendNotificationAsync(Notification notification)
 {
     await _client.SendMessageAsync(notification.To, notification.Message);
 }
示例#7
0
 public async Task SendAsync(IdentityMessage message)
 {
     await _messageSender.SendMessageAsync(message.Destination,
                                           ConfigurationManager.AppSettings["SenderID"],
                                           message.Body);
 }