1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-02 00:57:38 +00:00

Each command can format the mpd response. User response is a MpdMessage which conatins the requested command and the formatted response.

This commit is contained in:
glucaci
2016-12-06 18:01:28 +01:00
parent 9212021be6
commit 53325604e8
13 changed files with 250 additions and 270 deletions

View File

@ -1,10 +1,11 @@
using System.Collections.Generic;
namespace LibMpc
{
public interface IMpcCommand
public interface IMpcCommand<T>
{
string Value { get; }
// TODO: Return IMpdResponse and create type-safe input.
object ParseResponse(object response);
IReadOnlyDictionary<string, IList<T>> FormatResponse(IReadOnlyDictionary<string, IList<string>> response);
}
}