1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-01 08:47:36 +00:00

MpdDirectory contains now only files path.

This commit is contained in:
glucaci
2016-12-20 15:48:44 +01:00
parent ba83fbd824
commit 092240c22f
3 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@ namespace LibMpc.Types
{
public class MpdDirectory
{
private readonly IList<MpdFile> _files = new List<MpdFile>();
private readonly IList<IMpdFilePath> _files = new List<IMpdFilePath>();
public MpdDirectory(string path)
{
@ -19,7 +19,7 @@ namespace LibMpc.Types
public string Path { get; }
public string Name { get; }
public IEnumerable<MpdFile> Files => _files;
public IEnumerable<IMpdFilePath> Files => _files;
internal void AddFile(string file)
{

View File

@ -5,7 +5,7 @@ namespace LibMpc.Types
/// <summary>
/// The MpdFile class contains all meta data for a file of the MPD.
/// </summary>
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<string, string> _unknownTags = new Dictionary<string, string>();
public MpdFile(string file)
internal MpdFile(string file)
{
file.CheckNotNull();