diff options
| author | Stepan <ste.martinek+git@gmail.com> | 2020-11-10 19:23:10 +0100 |
|---|---|---|
| committer | Stepan <ste.martinek+git@gmail.com> | 2020-11-10 19:23:10 +0100 |
| commit | 158eff62d75db2d5e6e6f09fbe6e03eac607fc56 (patch) | |
| tree | f6b1aa8221d5b929828968082ff322cd1b4cb346 /Emby.Naming/Video/FileStack.cs | |
| parent | 693760e38ae51b9267f9383c3957df742bb136a6 (diff) | |
Xml-doc part2
Diffstat (limited to 'Emby.Naming/Video/FileStack.cs')
| -rw-r--r-- | Emby.Naming/Video/FileStack.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Emby.Naming/Video/FileStack.cs b/Emby.Naming/Video/FileStack.cs index 75620e961..6519db57c 100644 --- a/Emby.Naming/Video/FileStack.cs +++ b/Emby.Naming/Video/FileStack.cs @@ -4,19 +4,40 @@ using System.Linq; namespace Emby.Naming.Video { + /// <summary> + /// Object holding list of files paths with additional information. + /// </summary> public class FileStack { + /// <summary> + /// Initializes a new instance of the <see cref="FileStack"/> class. + /// </summary> public FileStack() { Files = new List<string>(); } + /// <summary> + /// Gets or sets name of file stack. + /// </summary> public string Name { get; set; } = string.Empty; + /// <summary> + /// Gets or sets list of paths in stack. + /// </summary> public List<string> Files { get; set; } + /// <summary> + /// Gets or sets a value indicating whether stack is directory stack. + /// </summary> public bool IsDirectoryStack { get; set; } + /// <summary> + /// Helper function to determine if path is in the stack. + /// </summary> + /// <param name="file">Path of desired file.</param> + /// <param name="isDirectory">Requested type of stack.</param> + /// <returns>True if file is in the stack.</returns> public bool ContainsFile(string file, bool isDirectory) { if (IsDirectoryStack == isDirectory) |
