public static TwitterReverseGeocodeQuery Parse(TwitterReverseGeocodeResults results, JsonObject obj) {
     return new TwitterReverseGeocodeQuery(obj) {
         Results = results,
         Url = obj.GetString("url"),
         Type = obj.GetString("type")
     };
 }
 public static TwitterReverseGeocodeResults Parse(JsonObject 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;
 }
예제 #3
0
 public static TwitterReverseGeocodeResult Parse(TwitterReverseGeocodeResults results, JObject obj)
 {
     return(new TwitterReverseGeocodeResult(obj)
     {
         Results = results,
         Places = obj.GetArray("places", TwitterPlace.Parse)
     });
 }
예제 #4
0
 public static TwitterReverseGeocodeQuery Parse(TwitterReverseGeocodeResults results, JObject obj)
 {
     return(new TwitterReverseGeocodeQuery(obj)
     {
         Results = results,
         Url = obj.GetString("url"),
         Type = obj.GetString("type")
     });
 }
        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);
        }
 public static TwitterReverseGeocodeResult Parse(TwitterReverseGeocodeResults results, JsonObject obj) {
     return new TwitterReverseGeocodeResult(obj) {
         Results = results,
         Places = obj.GetArray("places", TwitterPlace.Parse)
     };
 }