1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-01-14 22:18:43 +00:00

Implement DatabaseList response list

This commit is contained in:
Petr Kracik 2020-01-06 12:58:55 +01:00
parent 0edc0c322a
commit f999ef6f8c

View File

@ -7,13 +7,14 @@
namespace MpcNET.Commands.Database namespace MpcNET.Commands.Database
{ {
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using MpcNET.Tags; using MpcNET.Tags;
/// <summary> /// <summary>
/// Lists the specified tag. /// Lists the specified tag.
/// https://www.musicpd.org/doc/protocol/database.html. /// https://www.musicpd.org/doc/protocol/database.html.
/// </summary> /// </summary>
public class ListCommand : IMpcCommand<string> public class ListCommand : IMpcCommand<List<string>>
{ {
private readonly ITag tag; private readonly ITag tag;
@ -41,10 +42,9 @@ namespace MpcNET.Commands.Database
/// <returns> /// <returns>
/// The deserialized response. /// The deserialized response.
/// </returns> /// </returns>
public string Deserialize(IReadOnlyList<KeyValuePair<string, string>> response) public List<string> Deserialize(IReadOnlyList<KeyValuePair<string, string>> response)
{ {
// TODO: return response.Select(x => x.Value).ToList();
return response.ToString();
} }
} }