Ejemplo n.º 1
0
        /// <summary>
        /// Default ctor
        /// </summary>
        internal AirportStatus(JSONObject source)
        {
            Delay = source.GetBoolean("delay");
            IataCode = source.GetString("IATA");
            State= source.GetString("state");
            City = source.GetString("city");
            Name = source.GetString("name");

            var weather = source.GetJSONObject("weather");
            Temperature = weather.GetString("temp");
            Wind = weather.GetString("wind");
        }
Ejemplo n.º 2
0
 public static bool DeserializeSystemBoolean(JSONObject jsonObject, string name)
 {
     return jsonObject.GetBoolean(name);
 }