Example #1
0
        public static IMDBMovie GetMovieFromID(string id)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + id.ToString()
            }));

            return(movie);
        }
Example #2
0
        public static IMDBMovie GetMovie(string title)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title
            }));

            return(movie);
        }
Example #3
0
        public static IMDBMovie GetMovie(string title, IMDBType type)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "type=" + type.ToString()
            }));

            return(movie);
        }
Example #4
0
        public static IMDBMovie GetMovie(string title, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
Example #5
0
        public static IMDBMovie GetMovie(string title, int year)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "y=" + year.ToString()
            }));

            return(movie);
        }
Example #6
0
        public static IMDBMovie GetMovieFromID(string id, int year)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "i=" + id.ToString(),
                "y=" + year
            }));

            return(movie);
        }
Example #7
0
        public static IMDBMovie GetMovieFromID(string id, bool fullPlot, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "i=" + id.ToString(),
                "plot=" + fullPlot.ToString(),
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
Example #8
0
        public static IMDBMovie GetMovieFromID(string id, IMDBType type, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + id.ToString(),
                "type=" + type.ToString(),
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
Example #9
0
        public static IMDBMovie GetMovie(string title, bool fullPlot, IMDBType type, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "plot=" + fullPlot.ToString(),
                "type=" + type.ToString(),
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
Example #10
0
        static IMDBMovie DeserializeIMDBMovie(string json)
        {
            IMDBMovie deserializedProduct = JsonConvert.DeserializeObject <IMDBMovie>(json);

            return(deserializedProduct);
        }