Exemplo n.º 1
0
        private Dictionary <MessageProcessor, IMessageProcessor> CreateMessageProcessors(ISettingsAccessor settingsService
                                                                                         , IStringService stringService
                                                                                         , LineService lineService
                                                                                         , ISystemVocabularyAccessor systemVocabularyAccessor
                                                                                         , IVariableAccessor variableAccessor
                                                                                         , IRandomNumberService randomPercentService
                                                                                         )
        {
            var rval = new Dictionary <MessageProcessor, IMessageProcessor>();

            rval.Add(MessageProcessor.Greeting, new GreetingMessageProcessor(settingsService, stringService));
            rval.Add(MessageProcessor.Safeword, new SafewordMessageProcessor());
            rval.Add(MessageProcessor.ScriptResponse, new ScriptResponseMessageProcessor(lineService));
            rval.Add(MessageProcessor.EdgeDetection, new EdgeMessageProcessor(systemVocabularyAccessor, variableAccessor, randomPercentService));
            return(rval);
        }
Exemplo n.º 2
0
 public FlagService(IFlagAccessor flagAccessor)
 {
     _flagAccessor = flagAccessor;
     _lineService  = new LineService();
 }