浏览代码

display critic reviews on detail page

Luke Pulverenti 12 年之前
父节点
当前提交
024df8a011

+ 0 - 6
MediaBrowser.Model/Entities/ItemReview.cs

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

+ 26 - 0
MediaBrowser.WebDashboard/ApiClient.js

@@ -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
          * @param {String} userId

+ 1 - 1
MediaBrowser.WebDashboard/packages.config

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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.Text" version="3.9.44" targetFramework="net45" />
 </packages>