Esempio n. 1
0
        public List<XBMCProto.TVShow> ListTVShows()
        {
            XBMCProto.JSONParser json = new XBMCProto.JSONParser("VideoLibrary.GetTVShows",
                mClnt);

            XBMCProto.JSONRPCQueryResultRes jres = json.Execute_Obj();

            if (jres == null) return null;
            return jres.tvshows;
        }
Esempio n. 2
0
        public List<XBMCProto.Season> ListSeasons(int tvshowid)
        {
            XBMCProto.JSONParser json = new XBMCProto.JSONParser("VideoLibrary.GetSeasons",
                mClnt);
            json.AddParameter("tvshowid", tvshowid);

            XBMCProto.JSONRPCQueryResultRes jres = json.Execute_Obj();

            if (jres == null) return null;
            return jres.seasons;
        }
Esempio n. 3
0
        public List<XBMCProto.Episode> ListEpisodes(int tvshowid, int seasonidx)
        {
            XBMCProto.JSONParser json = new XBMCProto.JSONParser("VideoLibrary.GetEpisodes",
                mClnt);
            json.AddParameter("tvshowid", tvshowid);
            json.AddParameter("season", seasonidx);

            XBMCProto.JSONRPCQueryResultRes jres = json.Execute_Obj();

            if (jres == null) return null;
            return jres.episodes;
        }
Esempio n. 4
0
        public List<XBMCProto.Movie> ListMovies()
        {
            XBMCProto.JSONParser json = new XBMCProto.JSONParser("VideoLibrary.GetMovies",
                mClnt);

            XBMCProto.JSONRPCQueryResultRes jres = json.Execute_Obj();

            if (jres == null) return null;
            return jres.movies;
        }
Esempio n. 5
0
        public List<XBMCProto.Genre> ListAudioGenres()
        {
            XBMCProto.JSONParser json = new XBMCProto.JSONParser("AudioLibrary.GetGenres",
                mClnt);

            XBMCProto.JSONRPCQueryResultRes jres = json.Execute_Obj();

            if (jres == null) return null;
            return jres.genres;
        }