Ejemplo n.º 1
0
 public TelegramNotification(ITelegramApi api, ISettingsService <TelegramSettings> sn, ILogger <TelegramNotification> log,
                             INotificationTemplatesRepository r, IMovieRequestRepository m,
                             ITvRequestRepository t, ISettingsService <CustomizationSettings> s) : base(sn, r, m, t, s, log)
 {
     Api    = api;
     Logger = log;
 }
Ejemplo n.º 2
0
 public BotHandlerContext(int messageId, int chatId, string token, ITelegramApi telegramApi)
 {
     MessageId    = messageId;
     ChatId       = chatId;
     _token       = token;
     _telegramApi = telegramApi;
 }
Ejemplo n.º 3
0
 public TelegramNotification(ITelegramApi api, ISettingsService <TelegramSettings> sn, ILogger <TelegramNotification> log,
                             INotificationTemplatesRepository r, IMovieRequestRepository m,
                             ITvRequestRepository t, ISettingsService <CustomizationSettings> s
                             , IRepository <RequestSubscription> sub, IMusicRequestRepository music,
                             IRepository <UserNotificationPreferences> userPref) : base(sn, r, m, t, s, log, sub, music, userPref)
 {
     Api    = api;
     Logger = log;
 }
Ejemplo n.º 4
0
 public MainRunner(ISeleniumService seleniumService, ISeleniumInstanceService seleniumInstanceService, IEventTabellenParser eventTabellenParser, IHtmlService htmlService, ILogger <MainRunner> logger, IWordPressApi wordPressApi, ITelegramApi telegramApi, IYamlConfigService configService, IFileWriter fileWriter)
 {
     _seleniumService         = seleniumService;
     _seleniumInstanceService = seleniumInstanceService;
     _eventTabellenParser     = eventTabellenParser;
     _htmlService             = htmlService;
     _logger        = logger;
     _wordPressApi  = wordPressApi;
     _telegramApi   = telegramApi;
     _configService = configService;
     _fileWriter    = fileWriter;
 }
 public BotUserInteractionService(ITelegramApi telegramApi, DbRepository dbRepository, Config config, ILogger <BotUserInteractionService> logger)
 {
     _telegramApi = telegramApi;
     _telegramApi.NeueNachricht = VerarbeiteNeueNachrichtWrapper;
     _dbRepository = dbRepository;
     _telegramApi.SetTelegramBotToken(config.TelegramToken);
     _logger  = logger;
     _smilies = new List <string> {
         ":)", "😀", "😛", "😉", "😺"
     };
     _random = new Random();
 }
Ejemplo n.º 6
0
 public ConsolegramClient(ITelegramApi api, ILog log)
 {
     this.api = api;
     this.log = log;
     mainCts  = new CancellationTokenSource();
 }
Ejemplo n.º 7
0
 public BotHandlerContextFactory(string token, ITelegramApi telegramApi)
 {
     _token       = token;
     _telegramApi = telegramApi;
 }