display critic reviews on detail page

This commit is contained in:
Luke Pulverenti 2013-05-12 02:05:51 -04:00
parent b85ea26b7a
commit 024df8a011
3 changed files with 27 additions and 7 deletions

View File

@ -48,11 +48,5 @@ namespace MediaBrowser.Model.Entities
/// </summary> /// </summary>
/// <value>The caption.</value> /// <value>The caption.</value>
public string Caption { get; set; } public string Caption { get; set; }
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>The text.</value>
public string Text { get; set; }
} }
} }

View File

@ -838,6 +838,32 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
}); });
}; };
self.getCriticReviews = function (itemId, options) {
if (!itemId) {
throw new Error("null itemId");
}
var url = self.getUrl("Items/" + itemId + "/CriticReviews", options);
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
self.getSessions = function (options) {
var url = self.getUrl("Sessions", options);
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
/** /**
* Uploads a user image * Uploads a user image
* @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.104" targetFramework="net45" /> <package id="MediaBrowser.ApiClient.Javascript" version="3.0.105" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.44" targetFramework="net45" /> <package id="ServiceStack.Common" version="3.9.44" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" /> <package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
</packages> </packages>