public OrderPlacedEventConsumer(VerizonSettings verizonSettings, IPluginFinder pluginFinder, IOrderService orderService) { this._verizonSettings = verizonSettings; this._pluginFinder = pluginFinder; this._orderService = orderService; }
public SmsVerizonController(VerizonSettings verizonSettings, ISettingService settingService, ISmsService smsService, ILocalizationService localizationService) { this._verizonSettings = verizonSettings; this._settingService = settingService; this._smsService = smsService; this._localizationService = localizationService; }
public SmsVerizonController(VerizonSettings verizonSettings, ISettingService settingService, IPluginFinder pluginFinder, ILocalizationService localizationService) { this._verizonSettings = verizonSettings; this._settingService = settingService; this._pluginFinder = pluginFinder; this._localizationService = localizationService; }
public OrderPlacedEventConsumer(VerizonSettings verizonSettings, IPluginFinder pluginFinder, IOrderService orderService, IStoreContext storeContext) { this._verizonSettings = verizonSettings; this._pluginFinder = pluginFinder; this._orderService = orderService; this._storeContext = storeContext; }
public VerizonSmsProvider(VerizonSettings verizonSettings, IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ILogger logger, ISettingService settingService, StoreInformationSettings storeSettigs, EmailAccountSettings emailAccountSettings) { this._verizonSettings = verizonSettings; this._queuedEmailService = queuedEmailService; this._emailAccountService = emailAccountService; this._logger = logger; this._settingService = settingService; this._storeSettings = storeSettigs; this._emailAccountSettings = emailAccountSettings; }
public VerizonSmsProvider(VerizonSettings verizonSettings, IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ILogger logger, ISettingService settingService, IStoreContext storeContext, EmailAccountSettings emailAccountSettings) { this._verizonSettings = verizonSettings; this._queuedEmailService = queuedEmailService; this._emailAccountService = emailAccountService; this._logger = logger; this._settingService = settingService; this._storeContext = storeContext; this._emailAccountSettings = emailAccountSettings; }
/// <summary> /// Install plugin /// </summary> public override void Install() { var settings = new VerizonSettings() { Email = "*****@*****.**", }; _settingService.SaveSetting(settings); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestFailed", "Test message sending failed"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestSuccess", "Test message was sent (queued)"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email", "Email"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email.Hint", "Verizon email address(e.g. [email protected])"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage", "Message text"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage.Hint", "Text of the test message"); base.Install(); }
public VerizonSmsProvider(IEmailAccountService emailAccountService, ILocalizationService localizationService, ILogger logger, IQueuedEmailService queuedEmailService, ISettingService settingService, IStoreContext storeContext, IWebHelper webHelper, EmailAccountSettings emailAccountSettings, VerizonSettings verizonSettings) { this._emailAccountService = emailAccountService; this._localizationService = localizationService; this._logger = logger; this._queuedEmailService = queuedEmailService; this._settingService = settingService; this._storeContext = storeContext; this._webHelper = webHelper; this._emailAccountSettings = emailAccountSettings; this._verizonSettings = verizonSettings; }
/// <summary> /// Install plugin /// </summary> public override void Install() { //settings var settings = new VerizonSettings { Email = "*****@*****.**", }; _settingService.SaveSetting(settings); //locales _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestFailed", "Test message sending failed"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestSuccess", "Test message was sent (queued)"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled", "Enabled"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled.Hint", "Check to enable SMS provider"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email", "Email"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email.Hint", "Verizon email address(e.g. [email protected])"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage", "Message text"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage.Hint", "Text of the test message"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest", "Send"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest.Hint", "Send test message"); base.Install(); }