added GetMovieRecommendations to IApiClient

pull/702/head
Luke Pulverenti 9 years ago
parent 401c962c7f
commit 359f90afd4

@ -950,6 +950,9 @@
<Compile Include="..\MediaBrowser.Model\Querying\LatestItemsQuery.cs">
<Link>Querying\LatestItemsQuery.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Querying\MovieRecommendationQuery.cs">
<Link>Querying\MovieRecommendationQuery.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Querying\NextUpQuery.cs">
<Link>Querying\NextUpQuery.cs</Link>
</Compile>

@ -909,6 +909,9 @@
<Compile Include="..\MediaBrowser.Model\Querying\LatestItemsQuery.cs">
<Link>Querying\LatestItemsQuery.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Querying\MovieRecommendationQuery.cs">
<Link>Querying\MovieRecommendationQuery.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Querying\NextUpQuery.cs">
<Link>Querying\NextUpQuery.cs</Link>
</Compile>

@ -1522,5 +1522,11 @@ namespace MediaBrowser.Model.ApiClient
/// <param name="jobInfo">The job information.</param>
/// <returns>Task&lt;SyncOptions&gt;.</returns>
Task<SyncDialogOptions> GetSyncOptions(SyncJobRequest jobInfo);
/// <summary>
/// Gets the movie recommendations.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task&lt;List&lt;RecommendationDto&gt;&gt;.</returns>
Task<List<RecommendationDto>> GetMovieRecommendations(MovieRecommendationQuery query);
}
}

@ -312,6 +312,7 @@
<Compile Include="Querying\ItemsByNameQuery.cs" />
<Compile Include="Entities\BaseItemInfo.cs" />
<Compile Include="Querying\LatestItemsQuery.cs" />
<Compile Include="Querying\MovieRecommendationQuery.cs" />
<Compile Include="Querying\NextUpQuery.cs" />
<Compile Include="Querying\QueryFilters.cs" />
<Compile Include="Querying\QueryResult.cs" />

@ -0,0 +1,39 @@

namespace MediaBrowser.Model.Querying
{
public class MovieRecommendationQuery
{
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
/// <summary>
/// Gets or sets the item limit.
/// </summary>
/// <value>The item limit.</value>
public int ItemLimit { get; set; }
/// <summary>
/// Gets or sets the category limit.
/// </summary>
/// <value>The category limit.</value>
public int CategoryLimit { get; set; }
/// <summary>
/// Gets or sets the fields.
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
public MovieRecommendationQuery()
{
ItemLimit = 10;
CategoryLimit = 6;
Fields = new ItemFields[] { };
}
}
}

@ -392,6 +392,9 @@
<Content Include="IM_MOD_RL_wmf_.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="IM_MOD_RL_xc_.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="IM_MOD_RL_xps_.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

@ -520,7 +520,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
EndGlobal

Loading…
Cancel
Save