Beispiel #1
0
 private TwitterReverseGeocodeParameters(TwitterReverseGeocodeQuery query, JObject obj) : base(obj)
 {
     Query       = query;
     Accuracy    = obj.GetInt32("accuracy");
     Granularity = obj.GetString("granularity", TwitterUtils.ParseGranularity);
     Coordinates = obj.GetObject("coordinates", TwitterCoordinates.Parse);
 }
Beispiel #2
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));
 }
Beispiel #4
0
 public static TwitterReverseGeocodeParameters Parse(TwitterReverseGeocodeQuery query, JObject obj)
 {
     return(obj == null ? null : new TwitterReverseGeocodeParameters(query, obj));
 }