Пример #1
0
        public WeatherConfig(JObject obj)
        {
            GeoNames         = new GeoNamesConfig();
            LocationAliases  = new Dictionary <string, string>();
            WeatherProviders = new List <PluginConfig>();

            var ser = new JsonSerializer();

            ser.Populate(obj.CreateReader(), this);
        }
Пример #2
0
        public TimeConfig(JObject obj)
        {
            GeoNames = new GeoNamesConfig();

            TimeZoneDatabaseFile = "tzdb.nzd";
            TimeoutSeconds       = 5.0;
            LocationAliases      = new Dictionary <string, string>();

            var ser = new JsonSerializer();

            ser.Populate(obj.CreateReader(), this);
        }