From 7bca933af0f1b85e289306ae482db8846f94026c Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Fri, 1 Mar 2013 21:44:46 -0500 Subject: added the beginning of a service stack abstraction --- MediaBrowser.Controller/Library/IIntroProvider.cs | 19 +++++++++++++++++++ MediaBrowser.Controller/Library/ILibraryManager.cs | 21 +++++++++++++++------ 2 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 MediaBrowser.Controller/Library/IIntroProvider.cs (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/IIntroProvider.cs b/MediaBrowser.Controller/Library/IIntroProvider.cs new file mode 100644 index 000000000..f54c3a329 --- /dev/null +++ b/MediaBrowser.Controller/Library/IIntroProvider.cs @@ -0,0 +1,19 @@ +using MediaBrowser.Controller.Entities; +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Library +{ + /// + /// Class BaseIntroProvider + /// + public interface IIntroProvider + { + /// + /// Gets the intros. + /// + /// The item. + /// The user. + /// IEnumerable{System.String}. + IEnumerable GetIntros(BaseItem item, User user); + } +} diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index 721b5c216..64070cb83 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -1,11 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.IO; using MediaBrowser.Controller.Resolvers; using MediaBrowser.Model.Entities; +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; namespace MediaBrowser.Controller.Library { @@ -143,13 +143,22 @@ namespace MediaBrowser.Controller.Library /// BaseItem. BaseItem GetItemById(Guid id, Guid userId); + /// + /// Gets the intros. + /// + /// The item. + /// The user. + /// IEnumerable{System.String}. + IEnumerable GetIntros(BaseItem item, User user); + /// /// Adds the parts. /// /// The rules. /// The plugin folders. /// The resolvers. + /// The intro providers. void AddParts(IEnumerable rules, IEnumerable pluginFolders, - IEnumerable resolvers); + IEnumerable resolvers, IEnumerable introProviders); } } \ No newline at end of file -- cgit v1.2.3