Exemple #1
0
        public static TwitterReverseGeocodeResults Parse(JObject obj)
        {
            if (obj == null)
            {
                return(null);
            }
            TwitterReverseGeocodeResults results = new TwitterReverseGeocodeResults(obj);

            results.Result = obj.GetObject("result", x => TwitterReverseGeocodeResult.Parse(results, x));
            results.Query  = obj.GetObject("query", x => TwitterReverseGeocodeQuery.Parse(results, x));
            return(results);
        }
 /// <summary>
 /// Initializes a new instance of <see cref="TwitterReverseGeocodeResults"/> parsed from the specified <paramref name="obj"/>.
 /// </summary>
 /// <param name="obj">The <see cref="JObject"/> to be parsed.</param>
 protected TwitterReverseGeocodeResults(JObject obj) : base(obj)
 {
     Result = obj.GetObject("result", x => TwitterReverseGeocodeResult.Parse(this, x));
     Query  = obj.GetObject("query", x => TwitterReverseGeocodeQuery.Parse(this, x));
 }