diff options
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/ApiClient.js | 138 |
1 files changed, 0 insertions, 138 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index 7db97e660..d139adfc3 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/ApiClient.js @@ -3172,144 +3172,6 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi }; /** - Gets a variety of item counts that a person appears in - */ - self.getPersonItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("Persons/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - /** - Gets a variety of item counts that a genre appears in - */ - self.getGenreItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("Genres/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - self.getMusicGenreItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("MusicGenres/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - self.getGameGenreItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("GameGenres/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - /** - Gets a variety of item counts that an artist appears in - */ - self.getArtistItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("Artists/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - /** - Gets a variety of item counts that a studio appears in - */ - self.getStudioItemCounts = function (userId, name) { - - if (!userId) { - throw new Error("null userId"); - } - - if (!name) { - throw new Error("null name"); - } - - var url = self.getUrl("Studios/" + self.encodeName(name) + "/Counts", { - userId: userId - }); - - return self.ajax({ - type: "GET", - url: url, - dataType: "json" - }); - }; - - /** * Clears a user's personal rating for an item * @param {String} userId * @param {String} itemId |
