1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00
MpcNET/LibMpc/Commands/IMpcCommand.cs
glucaci 4ffa4bca6c Formatting output responsability of command.
Commands: disableoutput, enableoutput, outputs, tagtypes, update implemented.
2016-12-07 10:34:55 +01:00

20 lines
540 B
C#

using System.Collections.Generic;
using System.Linq;
namespace LibMpc
{
public interface IMpcCommand<T>
{
string Value { get; }
IDictionary<string, T> FormatResponse(IList<KeyValuePair<string, string>> response);
}
internal static class MpdCommandExtensions
{
public static IDictionary<string, string> ToDefaultDictionary(this IList<KeyValuePair<string, string>> items)
{
return items.ToDictionary(item => item.Key, item => item.Value);
}
}
}