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); }
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); }