コード例 #1
0
 public OrderPlacedEventConsumer(VerizonSettings verizonSettings,
                                 IPluginFinder pluginFinder, IOrderService orderService)
 {
     this._verizonSettings = verizonSettings;
     this._pluginFinder    = pluginFinder;
     this._orderService    = orderService;
 }
コード例 #2
0
 public SmsVerizonController(VerizonSettings verizonSettings,
     ISettingService settingService, ISmsService smsService,
     ILocalizationService localizationService)
 {
     this._verizonSettings = verizonSettings;
     this._settingService = settingService;
     this._smsService = smsService;
     this._localizationService = localizationService;
 }
コード例 #3
0
 public SmsVerizonController(VerizonSettings verizonSettings,
     ISettingService settingService, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._verizonSettings = verizonSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
コード例 #4
0
 public OrderPlacedEventConsumer(VerizonSettings verizonSettings,
                                 IPluginFinder pluginFinder,
                                 IOrderService orderService,
                                 IStoreContext storeContext)
 {
     this._verizonSettings = verizonSettings;
     this._pluginFinder    = pluginFinder;
     this._orderService    = orderService;
     this._storeContext    = storeContext;
 }
コード例 #5
0
        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;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
        /// <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();
        }
コード例 #10
0
        /// <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();
        }
コード例 #11
0
 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;
 }
コード例 #12
0
        /// <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();
        }