From f999ef6f8ca1695259964290e872c361c92560b2 Mon Sep 17 00:00:00 2001 From: Petr Kracik Date: Mon, 6 Jan 2020 12:58:55 +0100 Subject: [PATCH] Implement DatabaseList response list --- Sources/MpcNET/Commands/Database/ListCommand.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/MpcNET/Commands/Database/ListCommand.cs b/Sources/MpcNET/Commands/Database/ListCommand.cs index be0472a..6348598 100644 --- a/Sources/MpcNET/Commands/Database/ListCommand.cs +++ b/Sources/MpcNET/Commands/Database/ListCommand.cs @@ -7,13 +7,14 @@ namespace MpcNET.Commands.Database { using System.Collections.Generic; + using System.Linq; using MpcNET.Tags; /// /// Lists the specified tag. /// https://www.musicpd.org/doc/protocol/database.html. /// - public class ListCommand : IMpcCommand + public class ListCommand : IMpcCommand> { private readonly ITag tag; @@ -41,12 +42,11 @@ namespace MpcNET.Commands.Database /// /// The deserialized response. /// - public string Deserialize(IReadOnlyList> response) + public List Deserialize(IReadOnlyList> response) { - // TODO: - return response.ToString(); + return response.Select(x => x.Value).ToList(); } } // TODO: rescan -} \ No newline at end of file +}