From 75018055b212a92a4cae6e04fffc79eca54292f7 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 7 Mar 2015 17:43:53 -0500 Subject: add methods to media source manager --- .../Library/IMediaSourceManager.cs | 47 +++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller/Library/IMediaSourceManager.cs') diff --git a/MediaBrowser.Controller/Library/IMediaSourceManager.cs b/MediaBrowser.Controller/Library/IMediaSourceManager.cs index 5d79f613d..58bcf6cff 100644 --- a/MediaBrowser.Controller/Library/IMediaSourceManager.cs +++ b/MediaBrowser.Controller/Library/IMediaSourceManager.cs @@ -1,12 +1,22 @@ -using MediaBrowser.Controller.Persistence; +using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Persistence; +using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; namespace MediaBrowser.Controller.Library { public interface IMediaSourceManager { + /// + /// Adds the parts. + /// + /// The providers. + void AddParts(IEnumerable providers); + /// /// Gets the media streams. /// @@ -25,5 +35,40 @@ namespace MediaBrowser.Controller.Library /// The query. /// IEnumerable<MediaStream>. IEnumerable GetMediaStreams(MediaStreamQuery query); + + /// + /// Gets the playack media sources. + /// + /// The identifier. + /// The user identifier. + /// The cancellation token. + /// IEnumerable<MediaSourceInfo>. + Task> GetPlayackMediaSources(string id, string userId, CancellationToken cancellationToken); + + /// + /// Gets the playack media sources. + /// + /// The identifier. + /// The cancellation token. + /// Task<IEnumerable<MediaSourceInfo>>. + Task> GetPlayackMediaSources(string id, CancellationToken cancellationToken); + + /// + /// Gets the static media sources. + /// + /// The item. + /// if set to true [enable path substitution]. + /// The user. + /// IEnumerable<MediaSourceInfo>. + IEnumerable GetStaticMediaSources(IHasMediaSources item, bool enablePathSubstitution, User user); + + /// + /// Gets the static media source. + /// + /// The item. + /// The media source identifier. + /// if set to true [enable path substitution]. + /// MediaSourceInfo. + MediaSourceInfo GetStaticMediaSource(IHasMediaSources item, string mediaSourceId, bool enablePathSubstitution); } } -- cgit v1.2.3