예제 #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");
        }
예제 #2
0
 public static bool DeserializeSystemBoolean(JSONObject jsonObject, string name)
 {
     return jsonObject.GetBoolean(name);
 }