From 092240c22f88c17c09f1245fbd43024863c5737d Mon Sep 17 00:00:00 2001 From: glucaci Date: Tue, 20 Dec 2016 15:48:44 +0100 Subject: [PATCH] MpdDirectory contains now only files path. --- LibMpc/MpdDirectoryListing.cs | 10 +++++----- LibMpc/Types/MpdDirectory.cs | 4 ++-- LibMpc/Types/MpdFile.cs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LibMpc/MpdDirectoryListing.cs b/LibMpc/MpdDirectoryListing.cs index cb8b3f9..322d8c7 100644 --- a/LibMpc/MpdDirectoryListing.cs +++ b/LibMpc/MpdDirectoryListing.cs @@ -10,13 +10,13 @@ namespace LibMpc /// public class MpdDirectoryListing { - private readonly ReadOnlyCollection file; + private readonly ReadOnlyCollection file; private readonly ReadOnlyCollection directory; private readonly ReadOnlyCollection playlist; /// /// The list of files in the directory. /// - public ReadOnlyCollection FileList { get { return this.file; } } + public ReadOnlyCollection FileList { get { return this.file; } } /// /// The list of subdirectories in the directory. /// @@ -31,7 +31,7 @@ namespace LibMpc /// The list of files in the directory. /// The list of subdirectories in the directory. /// The list of playlists in the directory. - public MpdDirectoryListing(List file, List directory, List playlist) + public MpdDirectoryListing(List file, List directory, List playlist) { if (file == null) throw new ArgumentNullException("file"); @@ -40,7 +40,7 @@ namespace LibMpc if (playlist == null) throw new ArgumentNullException("playlist"); - this.file = new ReadOnlyCollection(file); + this.file = new ReadOnlyCollection(file); this.directory = new ReadOnlyCollection(directory); this.playlist = new ReadOnlyCollection(playlist); } @@ -50,7 +50,7 @@ namespace LibMpc /// The list of files in the directory. /// The list of subdirectories in the directory. /// The list of playlists in the directory. - public MpdDirectoryListing(ReadOnlyCollection file, ReadOnlyCollection directory, ReadOnlyCollection playlist) + public MpdDirectoryListing(ReadOnlyCollection file, ReadOnlyCollection directory, ReadOnlyCollection playlist) { if (file == null) throw new ArgumentNullException("file"); diff --git a/LibMpc/Types/MpdDirectory.cs b/LibMpc/Types/MpdDirectory.cs index 561288f..a3e4bf5 100644 --- a/LibMpc/Types/MpdDirectory.cs +++ b/LibMpc/Types/MpdDirectory.cs @@ -5,7 +5,7 @@ namespace LibMpc.Types { public class MpdDirectory { - private readonly IList _files = new List(); + private readonly IList _files = new List(); public MpdDirectory(string path) { @@ -19,7 +19,7 @@ namespace LibMpc.Types public string Path { get; } public string Name { get; } - public IEnumerable Files => _files; + public IEnumerable Files => _files; internal void AddFile(string file) { diff --git a/LibMpc/Types/MpdFile.cs b/LibMpc/Types/MpdFile.cs index 22133e1..fc4023d 100644 --- a/LibMpc/Types/MpdFile.cs +++ b/LibMpc/Types/MpdFile.cs @@ -5,7 +5,7 @@ namespace LibMpc.Types /// /// The MpdFile class contains all meta data for a file of the MPD. /// - public class MpdFile : IMpdFile + internal class MpdFile : IMpdFile { private const string TagTime = "Time"; private const string TagArtist = "Artist"; @@ -24,7 +24,7 @@ namespace LibMpc.Types private readonly IDictionary _unknownTags = new Dictionary(); - public MpdFile(string file) + internal MpdFile(string file) { file.CheckNotNull();