public DvbTelegramBot(IConfiguration config, CloudTable favoriteStopTable)
        {
            _stopService         = new StopService();
            _favoriteStopService =
                new FavoriteStopService(new FavoriteStopRepository(favoriteStopTable, new StopRepository()));

            var token     = config["TelegramBotToken"];
            var botClient = new TelegramBotClient(token);

            _sendMessageService = new SendMessageService(botClient);
        }
 public FavoriteStopsCommand(ISendMessageService sendMessageService, IFavoriteStopService favoriteStopService)
 {
     _sendMessageService  = sendMessageService;
     _favoriteStopService = favoriteStopService;
 }
예제 #3
0
 public ShowDeparturesCommand(ISendMessageService sendMessageService, IStopService stopService, IFavoriteStopService favoriteStopService)
 {
     _sendMessageService  = sendMessageService;
     _stopService         = stopService;
     _favoriteStopService = favoriteStopService;
 }