diff options
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/MediaBrowser.Controller.csproj | 1 | ||||
| -rw-r--r-- | MediaBrowser.Controller/News/INewsService.cs | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 353e92444f..53632a51c0 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -136,6 +136,7 @@ <Compile Include="Net\IHttpResultFactory.cs" /> <Compile Include="Net\IHttpServer.cs" /> <Compile Include="Net\IRestfulService.cs" /> + <Compile Include="News\INewsService.cs" /> <Compile Include="Notifications\INotificationsRepository.cs" /> <Compile Include="Notifications\NotificationUpdateEventArgs.cs" /> <Compile Include="Persistence\MediaStreamQuery.cs" /> diff --git a/MediaBrowser.Controller/News/INewsService.cs b/MediaBrowser.Controller/News/INewsService.cs new file mode 100644 index 0000000000..e3d238cc62 --- /dev/null +++ b/MediaBrowser.Controller/News/INewsService.cs @@ -0,0 +1,19 @@ +using MediaBrowser.Model.News; +using MediaBrowser.Model.Querying; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.News +{ + /// <summary> + /// Interface INewsFeed + /// </summary> + public interface INewsService + { + /// <summary> + /// Gets the product news. + /// </summary> + /// <param name="query">The query.</param> + /// <returns>IEnumerable{NewsItem}.</returns> + Task<QueryResult<NewsItem>> GetProductNews(NewsQuery query); + } +} |
