public SettingsController(
     ISettingsService settingsService,
     ITelegramService telegramService,
     ITelegramVerificationService telegramVerificationService,
     IIdentityService identityService)
 {
     _settingsService             = settingsService;
     _telegramService             = telegramService;
     _telegramVerificationService = telegramVerificationService;
     _identityService             = identityService;
 }
Example #2
0
        public TelegramController(
            ITelegramService telegramService,
            ITelegramVerificationService telegramVerificationService,
            IIdentityService identityService,
            IEventService eventService,
            TelegramHubManager telegramHubManager,
            IMapper mapper)
        {
            _telegramService             = telegramService;
            _telegramVerificationService = telegramVerificationService;
            _identityService             = identityService;
            _eventService       = eventService;
            _telegramHubManager = telegramHubManager;
            _mapper             = mapper;

            _responses.Add("start", _Start);
            _responses.Add("connect", _Connect);
            _responses.Add("reset", _Reset);
            _responses.Add("pause", _Pause);
            _responses.Add("restore", _Restore);

            _responses.Add("today", _Today);
            _responses.Add("tomorrow", _Tomorrow);
        }