コード例 #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, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._verizonSettings = verizonSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
コード例 #3
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;
 }
コード例 #4
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;
 }
コード例 #5
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new VerizonSettings()
            {
                Email = "*****@*****.**",
            };
            _settingService.SaveSetting(settings);

            //locales
            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.Enabled", "Enabled");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled.Hint", "Check to enable SMS provider");
            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");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest", "Send");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest.Hint", "Send test message");

            base.Install();
        }
コード例 #6
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new VerizonSettings()
            {
                Email = "*****@*****.**",
            };

            _settingService.SaveSetting(settings);

            //locales
            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.Enabled", "Enabled");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled.Hint", "Check to enable SMS provider");
            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");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest", "Send");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest.Hint", "Send test message");

            base.Install();
        }