コード例 #1
0
 public BotController(IMessageParser messageParser, IConfiguration configuration, ITelegramRepository telegramRepository)
 {
     //Injected dependencies
     _messageParser      = messageParser;
     _telegramRepository = telegramRepository;
     _token = configuration["BlimpBotTelegramToken"];
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: amyard/wordshop
 public HomeController(ILogger <HomeController> logger, ICustomerInfoRepository customerInfoRepository,
                       ITariffRepository tariffRepository, ITelegramRepository telegram,
                       ICourseStartRepository courseStartRepository,
                       IDayInfoRepository dayInfoRepository)
 {
     _logger = logger;
     _customerInfoRepository = customerInfoRepository;
     _tariffRepository       = tariffRepository;
     _telegram = telegram;
     _courseStartRepository = courseStartRepository;
     _dayInfoRepository     = dayInfoRepository;
 }
コード例 #3
0
 public MessageParserServices(IWeatherRepository weatherRepository,
                              IExchangeRateRepository exchangeRateRepository,
                              ITelegramRepository telegramRepository,
                              IChatBotRepository chatBotRepository,
                              IReviewRepository reviewRepository,
                              ICryptoRepository cryptoRepository)
 {
     _weatherRepository      = weatherRepository;
     _exchangeRateRepository = exchangeRateRepository;
     _telegramRepository     = telegramRepository;
     _chatBotRepository      = chatBotRepository;
     _reviewRepository       = reviewRepository;
     _cryptoRepository       = cryptoRepository;
 }
コード例 #4
0
 public TelegramController(ITelegramRepository tRepo)
 {
     _tRepo = tRepo;
 }