internal static MovieSearchResult Parse(string jsonString)
        {
            MovieSearchResult res  = new MovieSearchResult();
            JObject           json = JObject.Parse(jsonString);

            res.Total       = json["total"].TryParseInt();
            res.Movies      = json["movies"].Select(x => Movie.Parse(x, isAbbreviated: true)).ToList();
            res.SearchLinks = SearchLinks.Parse(json["links"], (string)json["link_template"]);
            return(res);
        }
예제 #2
0
 public static MovieSearchResult FindMovies(string query, int pageSize)
 {
     return(MovieSearchResult.FindMovies(query, pageSize));
 }