update to latest js api client

This commit is contained in:
Luke Pulverenti 2013-04-17 10:52:02 -04:00
parent d59df69b5b
commit c6fbb714c2
2 changed files with 67 additions and 1 deletions

View File

@ -1828,6 +1828,72 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
}); });
}; };
/**
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("Users/{UserId}/Persons/" + encodeName(name) + "/Counts");
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("Users/{UserId}/Genres/" + encodeName(name) + "/Counts");
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
/**
Gets a variety of item counts that a studio appears in
*/
self.getStudiosItemCounts = function (userId, name) {
if (!userId) {
throw new Error("null userId");
}
if (!name) {
throw new Error("null name");
}
var url = self.getUrl("Users/{UserId}/Studios/" + encodeName(name) + "/Counts");
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
/** /**
* Clears a user's personal rating for an item * Clears a user's personal rating for an item
* @param {String} userId * @param {String} userId

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.77" targetFramework="net45" /> <package id="MediaBrowser.ApiClient.Javascript" version="3.0.78" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.43" targetFramework="net45" /> <package id="ServiceStack.Common" version="3.9.43" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.43" targetFramework="net45" /> <package id="ServiceStack.Text" version="3.9.43" targetFramework="net45" />
</packages> </packages>