public static XmppBotConfig FromAppConfig()
        {
            var config = new XmppBotConfig();

            config.Server = ConfigurationManager.AppSettings["Server"];
            config.Rooms = ConfigurationManager.AppSettings["Rooms"];
            config.RoomNick = ConfigurationManager.AppSettings["RoomNick"];
            config.Password = ConfigurationManager.AppSettings["Password"];
            config.User = ConfigurationManager.AppSettings["User"];
            config.Resource = ConfigurationManager.AppSettings["Resource"];
            config.ConferenceServer = ConfigurationManager.AppSettings["ConferenceServer"];

            return config;
        }
        public static XmppBotConfig FromAppConfig()
        {
            var config = new XmppBotConfig();

            config.Server           = ConfigurationManager.AppSettings["Server"];
            config.Rooms            = ConfigurationManager.AppSettings["Rooms"];
            config.RoomNick         = ConfigurationManager.AppSettings["RoomNick"];
            config.Password         = ConfigurationManager.AppSettings["Password"];
            config.User             = ConfigurationManager.AppSettings["User"];
            config.Resource         = ConfigurationManager.AppSettings["Resource"];
            config.ConferenceServer = ConfigurationManager.AppSettings["ConferenceServer"];

            return(config);
        }
Exemplo n.º 3
0
 public Bot(XmppBotConfig config)
 {
     _config = config;
 }
Exemplo n.º 4
0
 public Bot(XmppBotConfig config)
 {
     _config = config;
 }