示例#1
0
 public static TwitterReverseGeocodeResult Parse(TwitterReverseGeocodeResults results, JObject obj)
 {
     return(new TwitterReverseGeocodeResult(obj)
     {
         Results = results,
         Places = obj.GetArray("places", TwitterPlace.Parse)
     });
 }
示例#2
0
 public static TwitterReverseGeocodeQuery Parse(TwitterReverseGeocodeResults results, JObject obj)
 {
     return(new TwitterReverseGeocodeQuery(obj)
     {
         Results = results,
         Url = obj.GetString("url"),
         Type = obj.GetString("type")
     });
 }
示例#3
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);
        }
 public static TwitterReverseGeocodeResult Parse(TwitterReverseGeocodeResults results, JObject obj)
 {
     return(new TwitterReverseGeocodeResult(results, obj));
 }
 private TwitterReverseGeocodeResult(TwitterReverseGeocodeResults results, JObject obj) : base(obj)
 {
     Results = results;
     Places  = obj.GetArray("places", TwitterPlace.Parse);
 }
 protected TwitterReverseGeocodeQuery(TwitterReverseGeocodeResults results, JObject obj) : base(obj)
 {
     Results = results;
     Url     = obj.GetString("url");
     Type    = obj.GetString("type");
 }