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