Exemplo n.º 1
0
 public FbBotService(IMessengerProfileProvider messengerProfile,
                     DataMigrationContext contexts,
                     IWeatherService weatherService,
                     IMessengerMessageSender messageSender)
 {
     _messengerProfile  = messengerProfile;
     _context           = contexts;
     _weatherService    = weatherService;
     this.messageSender = messageSender;
 }
Exemplo n.º 2
0
        public FbChatBotController(
            IMessengerMessageSender messageSender,
            IFbBotService apibot, IWeatherService weatherService,
            DataMigrationContext context,
            IMessengerProfileProvider messengerProfile)

        {
            this.messageSender = messageSender;
            _apibot            = apibot;
            _weatherService    = weatherService;
            _context           = context;
            _messengerProfile  = messengerProfile;
        }
Exemplo n.º 3
0
        /// <summary>
        /// /// Initializes a new instance of the <see cref="MessageHandler" /> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="messageSender">The message sender.</param>
        /// <param name="userRepository">The user repository.</param>
        /// <param name="redisService">The redis service.</param>
        public MessageProcessorService(
            ILogger <MessageProcessorService> logger,
            IMessengerMessageSender messageSender,
            UserRepository userRepository,
            RedisService redisService)
        {
            this.Logger         = logger;
            this.MessageSender  = messageSender;
            this.UserRepository = userRepository;
            this.RedisService   = redisService;

            this.handlers.Add(new HelpMessageHandler(this));
            this.handlers.Add(new TextMessageHandler(this));
        }
 public FacebookController(IMessengerMessageSender messageSender, ILogger <FacebookController> logger)
 {
     this.messageSender = messageSender;
     this.logger        = logger;
 }
Exemplo n.º 5
0
 public FacebookController(IMessengerMessageSender messageSender)
 {
     this.messageSender = messageSender;
 }