Beispiel #1
0
 public Step2InputGroup(IUsersContext db, IVkUtils vk)
     : base(db)
 {
     _vk         = vk;
     _resultText = new Dictionary <PreferenceType, string> {
         { PreferenceType.VkGroup, "в этой группе" },
         { PreferenceType.VkUser, "на стене пользователя" }
     };
 }
Beispiel #2
0
        public TelegramMessageRouter(IUsersContext db, IHistoryLogger historyLogger, IMessageSender messageSender, IVkUtils vk, Settings settings)
        {
            _db            = db;
            _historyLogger = historyLogger;
            _messageSender = messageSender;
            _logger        = LogManager.GetCurrentClassLogger();

            _myMessageHandlers = new List <BaseTgMessageHandler>
            {
                new Step2InputGroup(_db, vk),
                new Step3InputKeyword(_db, settings),
                new UpdateKeywords(_db),
                new RemoveSettingsStep2(_db),
                new Step1AddNewAlarms(_db, settings),
                new EditExistingSettings(_db),
                new RemoveSettingsStep1(_db),
                new GetAllUsers(_db, settings),
                new SetUserStatus(_db, settings),
                new DownloadDbFile(_db, settings),
                new HelpHandler(_db)
            };
        }