Browse Source

added GetMovieRecommendations to IApiClient

Luke Pulverenti 10 years ago
parent
commit
359f90afd4

+ 3 - 0
MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj

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

+ 3 - 0
MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj

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

+ 6 - 0
MediaBrowser.Model/ApiClient/IApiClient.cs

@@ -1522,5 +1522,11 @@ namespace MediaBrowser.Model.ApiClient
         /// <param name="jobInfo">The job information.</param>
         /// <param name="jobInfo">The job information.</param>
         /// <returns>Task&lt;SyncOptions&gt;.</returns>
         /// <returns>Task&lt;SyncOptions&gt;.</returns>
         Task<SyncDialogOptions> GetSyncOptions(SyncJobRequest jobInfo);
         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);
     }
     }
 }
 }

+ 1 - 0
MediaBrowser.Model/MediaBrowser.Model.csproj

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

+ 39 - 0
MediaBrowser.Model/Querying/MovieRecommendationQuery.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[] { };
+        }
+    }
+}

+ 3 - 0
MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj

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

+ 0 - 3
MediaBrowser.sln

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