From 158eff62d75db2d5e6e6f09fbe6e03eac607fc56 Mon Sep 17 00:00:00 2001 From: Stepan Date: Tue, 10 Nov 2020 19:23:10 +0100 Subject: Xml-doc part2 --- Emby.Naming/Video/StackResolver.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'Emby.Naming/Video/StackResolver.cs') diff --git a/Emby.Naming/Video/StackResolver.cs b/Emby.Naming/Video/StackResolver.cs index d6de468cc..550c42961 100644 --- a/Emby.Naming/Video/StackResolver.cs +++ b/Emby.Naming/Video/StackResolver.cs @@ -9,25 +9,47 @@ using MediaBrowser.Model.IO; namespace Emby.Naming.Video { + /// + /// Resolve from list of paths. + /// public class StackResolver { private readonly NamingOptions _options; + /// + /// Initializes a new instance of the class. + /// + /// object containing VideoFileStackingRegexes and passes options to . public StackResolver(NamingOptions options) { _options = options; } + /// + /// Resolves only directories from paths. + /// + /// List of paths. + /// Enumerable of directories. public IEnumerable ResolveDirectories(IEnumerable files) { return Resolve(files.Select(i => new FileSystemMetadata { FullName = i, IsDirectory = true })); } + /// + /// Resolves only files from paths. + /// + /// List of paths. + /// Enumerable of files. public IEnumerable ResolveFiles(IEnumerable files) { return Resolve(files.Select(i => new FileSystemMetadata { FullName = i, IsDirectory = false })); } + /// + /// Resolves audiobooks from paths. + /// + /// List of paths. + /// Enumerable of directories. public IEnumerable ResolveAudioBooks(IEnumerable files) { var groupedDirectoryFiles = files.GroupBy(file => Path.GetDirectoryName(file.Path)); @@ -56,6 +78,11 @@ namespace Emby.Naming.Video } } + /// + /// Resolves videos from paths. + /// + /// List of paths. + /// Enumerable of videos. public IEnumerable Resolve(IEnumerable files) { var resolver = new VideoResolver(_options); -- cgit v1.2.3