示例#1
0
        public Personality(AerTalk voiceSynth, AerDB data)
        {
            _Data     = data;
            _Talk     = voiceSynth;
            _ReqQuery = Settings.Load("RequireAerQuery", "1").Equals("1");
            _Talk.SayInitializing();
            _EventRegistry     = new Dictionary <string, AerInputHandler>();
            _Keyboard          = new AerKeyboard();
            _GalnetRSS         = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS           = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia         = new AerWiki();
            _StopListeningTime = 30; //30 seconds

            _RegisterDefaultHandlers();
        }
示例#2
0
        public AerHandler(AerTalk voiceSynth, string pathToJsonFiles = @"json\")
        {
            string systemsJson     = pathToJsonFiles + @"systems.json";
            string commoditiesJson = pathToJsonFiles + @"commodities.json";
            string stationsJson    = pathToJsonFiles + @"stations.json";

            _Squelched = false;
            _Talk      = voiceSynth;
            _Talk.SayInitializing();
            _GalnetEntry   = 0;
            _JokeEntry     = 0;
            _Keyboard      = new AerKeyboard();
            _GalnetRSS     = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS       = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia     = new AerWiki();
            _Eddb          = new AerDB(systemsJson, stationsJson, commoditiesJson);
            _EventRegistry = new Dictionary <string, AerInputHandler>();

            RegisterDefaultHandlers();
        }
示例#3
0
        public Personality(AerTalk voiceSynth, AerDB data)
        {

            _Data = data;
            _Talk = voiceSynth;
            _ReqQuery = Settings.Load("RequireAerQuery", "1").Equals("1");
            _Talk.SayInitializing();
            _EventRegistry = new Dictionary<string, AerInputHandler>();
            _Keyboard = new AerKeyboard();
            _GalnetRSS = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia = new AerWiki();
            _StopListeningTime = 30; //30 seconds

            _RegisterDefaultHandlers();
        }