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; }
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; }
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; }
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; }
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; }