public SmsTwillioController(TwillioSettings twillioSettings,
     ISettingService settingService, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._twillioSettings = twillioSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
 public TwillioSmsProvider(QueuedSmsObjectContext context, IRepository<QueuedSms> smsRepo, TwillioSettings twillioSettings,
     IQueuedSmsService queuedSmsService, ILogger logger, ISettingService settingService, IScheduleTaskService scheduleTaskService)
 {
     this._context = context;
     this._smsRepo = smsRepo;
     this._twillioSettings = twillioSettings;
     this._queuedSmsService = queuedSmsService;
     this._logger = logger;
     this._settingService = settingService;
     this._scheduleTaskService = scheduleTaskService;
 }
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            _context.Install();
            //settings
            var settings = new TwillioSettings()
            {
                SmsNumber = "8888888888",
            };
            _settingService.SaveSetting(settings);

            

            //locales
            this.AddOrUpdatePluginLocaleResource("Admin.Common.SendSms.Selected", "Send SMS(Selected)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.TestFailed", "Test message sending failed");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.TestSuccess", "Test message was sent (queued)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.Enabled", "Enabled");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.Enabled.Hint", "Check to enable SMS provider");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.Sms", "Sms");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.Sms.Hint", "Twillio Sms address(e.g. [email protected])");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.TestMessage", "Message text");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.TestMessage.Hint", "Text of the test message");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.SendTest", "Send");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.SendTest.Hint", "Send test message");
            this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Twillio.Fields.SmsNumber", "To Number");

            

            InstallScheduleTask();
            base.Install();
        }