예제 #1
0
 public TwilioSmsDispatcher(ITwillioConfiguration twilioConfiguration, IEnumerable <KeyValuePair <MessageTypes, SmsMessageFormatter> > messageFormatters, ILogService logger)
 {
     _accountSid        = twilioConfiguration.AccountSid;
     _authToken         = twilioConfiguration.AuthToken;
     _mobileNumberFrom  = twilioConfiguration.MobileNumberFrom;
     _messageFormatters = messageFormatters;
     _logger            = logger;
 }
 public SmsDailyDigestMessageFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration(TemplateName).Message;
 }
예제 #3
0
 public SmsApprenticeshipApplicationSubmittedMessageFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration("MessageTypes.ApprenticeshipApplicationSubmitted").Message;
 }
예제 #4
0
 public SmsPasswordChangedMessageFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration("MessageTypes.PasswordChanged").Message;
 }
예제 #5
0
 protected SmsMessageFormatter(ITwillioConfiguration configuration)
 {
     _configuration = configuration;
 }
 public SmsAccountUnlockCodeMessageFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration("MessageTypes.SendAccountUnlockCode").Message;
 }
예제 #7
0
 public SmsPasswordResetCodeMessageFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration("MessageTypes.SendPasswordResetCode").Message;
 }
예제 #8
0
 public SmsSendMobileVerificationCodeFormatter(ITwillioConfiguration configuration)
     : base(configuration)
 {
     Message = GetTemplateConfiguration("MessageTypes.SendMobileVerificationCode").Message;
 }