mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
4ffa4bca6c
Commands: disableoutput, enableoutput, outputs, tagtypes, update implemented.
20 lines
540 B
C#
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);
|
|
}
|
|
}
|
|
} |