mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-01 08:47:36 +00:00
listplaylists command created + test.
This commit is contained in:
23
LibMpc/Types/MpdPlaylist.cs
Normal file
23
LibMpc/Types/MpdPlaylist.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace LibMpc.Types
|
||||
{
|
||||
public class MpdPlaylist
|
||||
{
|
||||
public MpdPlaylist(string name)
|
||||
{
|
||||
name.CheckNotNull();
|
||||
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public DateTime LastModified { get; private set; }
|
||||
|
||||
internal void AddLastModified(string lastModified)
|
||||
{
|
||||
LastModified = DateTime.Parse(lastModified, CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user