added GetCriticReviews to IApiClient

This commit is contained in:
Luke Pulverenti 2013-07-21 10:20:57 -04:00
parent 7e5bdc837a
commit e263d74476
6 changed files with 20 additions and 14 deletions

View File

@ -124,7 +124,7 @@ namespace MediaBrowser.Api
return inputItems.Where(i => i.Id != currentItem.Id)
.Select(i => new Tuple<BaseItem, int>(i, getSimilarityScore(item, i)))
.Where(i => i.Item2 > 5)
.Where(i => i.Item2 > 2)
.OrderByDescending(i => i.Item2)
.ThenByDescending(i => i.Item1.CriticRating ?? 0)
.Select(i => i.Item1);

View File

@ -405,10 +405,7 @@ namespace MediaBrowser.Controller.Dto
dto.Revenue = item.Revenue;
}
if (fields.Contains(ItemFields.EndDate))
{
dto.EndDate = item.EndDate;
}
dto.EndDate = item.EndDate;
if (fields.Contains(ItemFields.HomePageUrl))
{

View File

@ -23,6 +23,15 @@ namespace MediaBrowser.Model.ApiClient
/// </summary>
event EventHandler<HttpResponseEventArgs> HttpResponseReceived;
/// <summary>
/// Gets the critic reviews.
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="startIndex">The start index.</param>
/// <param name="limit">The limit.</param>
/// <returns>Task{ItemReviewsResult}.</returns>
Task<ItemReviewsResult> GetCriticReviews(string itemId, int? startIndex = null, int? limit = null);
/// <summary>
/// Gets the theme songs async.
/// </summary>
@ -49,7 +58,7 @@ namespace MediaBrowser.Model.ApiClient
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
/// <returns>Task{AllThemeMediaResult}.</returns>
Task<AllThemeMediaResult> GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents);
/// <summary>
/// Marks the notifications read.
/// </summary>
@ -132,7 +141,7 @@ namespace MediaBrowser.Model.ApiClient
/// </summary>
/// <returns>Task{UserDto[]}.</returns>
Task<UserDto[]> GetPublicUsersAsync();
/// <summary>
/// Gets active client sessions.
/// </summary>
@ -167,7 +176,7 @@ namespace MediaBrowser.Model.ApiClient
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task<ItemsResult> GetSimilarTrailersAsync(SimilarItemsQuery query);
/// <summary>
/// Gets the similar series async.
/// </summary>
@ -700,7 +709,7 @@ namespace MediaBrowser.Model.ApiClient
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetArtImageUrl(BaseItemDto item, ImageOptions options);
/// <summary>
/// Gets the url needed to stream an audio file
/// </summary>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common.Internal</id>
<version>3.0.151</version>
<version>3.0.152</version>
<title>MediaBrowser.Common.Internal</title>
<authors>Luke</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.151" />
<dependency id="MediaBrowser.Common" version="3.0.152" />
<dependency id="NLog" version="2.0.1.2" />
<dependency id="ServiceStack.Text" version="3.9.45" />
<dependency id="SimpleInjector" version="2.2.3" />

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common</id>
<version>3.0.151</version>
<version>3.0.152</version>
<title>MediaBrowser.Common</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MediaBrowser.Server.Core</id>
<version>3.0.151</version>
<version>3.0.152</version>
<title>Media Browser.Server.Core</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains core components required to build plugins for Media Browser Server.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.151" />
<dependency id="MediaBrowser.Common" version="3.0.152" />
</dependencies>
</metadata>
<files>