Example #1
0
        public void ExecuteSchedulerCommand(SchedulerCommand schedulerCommand)
        {
            var botReplies = GetBotRepliesOnSchedulerCommand(schedulerCommand);

            foreach (var reply in botReplies)
            {
                OnReply(reply);
            }
        }
Example #2
0
        private IEnumerable <BotReply> GetBotRepliesOnSchedulerCommand(SchedulerCommand schedulerCommand)
        {
            var result = schedulerManager.GetBotReply(schedulerCommand.CommandType);

            return(result);
        }