diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-18 16:52:01 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-18 16:52:01 -0500 |
| commit | 7f51148130a95b73c1d2cfac10aa04b3817944b5 (patch) | |
| tree | 6cf65c3e33504eae9827dfaf5e990d49a26cd904 /MediaBrowser.Controller | |
| parent | 5ca7d6355684b1599a0ceb952b93e25e74e6c098 (diff) | |
display news on dashboard home page
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 353e92444..53632a51c 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 000000000..e3d238cc6 --- /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); + } +} |
