Example #1
0
        public Movie GetMovieInfo(int id)
        {
            MovieSearchResults search = CallApi <MovieSearchResults>(string.Format(MOVIE_GET_INFO_URL, this.Key, id));

            if (search.Movies.Length == 1)
            {
                return(search.Movies[0]);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        public Movie[] MovieSearchByImdb(string imbdId)
        {
            MovieSearchResults search = CallApi <MovieSearchResults>(string.Format(MOVIE_IMDB_LOOKUP_URL, this.Key, imbdId));

            return(search.Movies);
        }
Example #3
0
        public Movie[] MovieSearch(string title)
        {
            MovieSearchResults search = CallApi <MovieSearchResults>(string.Format(MOVIE_SEARCH_URL, this.Key, Escape(title)));

            return(search.Movies);
        }