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:
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user