예제 #1
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovieFromID(string id)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + id.ToString()
            }));

            return(movie);
        }
예제 #2
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovie(string title)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title
            }));

            return(movie);
        }
예제 #3
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovie(string title, IMDBType type)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "type=" + type.ToString()
            }));

            return(movie);
        }
예제 #4
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovie(string title, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
예제 #5
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovie(string title, int year)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "y=" + year.ToString()
            }));

            return(movie);
        }
예제 #6
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        public static IMDBMovie GetMovieFromID(string id, int year)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "i=" + id.ToString(),
                "y=" + year
            }));

            return(movie);
        }
예제 #7
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        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);
        }
예제 #8
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        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);
        }
예제 #9
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        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);
        }
예제 #10
0
파일: IMDB.cs 프로젝트: velddev/IMDBNet
        static IMDBMovie DeserializeIMDBMovie(string json)
        {
            IMDBMovie deserializedProduct = JsonConvert.DeserializeObject <IMDBMovie>(json);

            return(deserializedProduct);
        }